Skip to content

Commit

Permalink
web: skip authorization on /metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Dec 29, 2020
1 parent 1a596e0 commit e62693e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/web/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ func newEcho(targetFactory target.Factory) *echo.Echo {
Skipper: func(c echo.Context) bool {
conf := config.Get()
return c.Path() == "/healthcheck" ||
c.Path() == "/metrics" ||
(conf.APIUsername == "" && conf.APIPassword == "")
},
Validator: func(user, pass string, c echo.Context) (bool, error) {
Expand Down

0 comments on commit e62693e

Please sign in to comment.