Skip to content

Commit

Permalink
Add warning if /env endpoint is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tshak committed Jun 26, 2023
1 parent a689384 commit 673304c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func main() {
addRoute("exit", exitHandler)
addRoute("status", statusHandler)
if rc.EnableEnv {
logger.Println("WARNING: /env is enabled. This may expose sensitive information.")
addRoute("env", envHandler)
}

Expand Down

0 comments on commit 673304c

Please sign in to comment.