Skip to content

Commit

Permalink
Make metrics access unauthenticated when in dev mode. (#10992)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncabatoff committed Feb 24, 2021
1 parent 9fc4123 commit 056dd26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/10992.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
core: dev mode listener allows unauthenticated sys/metrics requests
```
1 change: 1 addition & 0 deletions command/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,7 @@ func (c *ServerCommand) Run(args []string) int {
if c.flagDevListenAddr != "" {
config.Listeners[0].Address = c.flagDevListenAddr
}
config.Listeners[0].Telemetry.UnauthenticatedMetricsAccess = true
}

parsedConfig, err := c.parseConfig()
Expand Down

0 comments on commit 056dd26

Please sign in to comment.