Make metrics access unauthenticated when in dev mode. (#10992)

This commit is contained in:
Nick Cabatoff
2021-02-24 14:04:23 -05:00
committed by GitHub
parent 9fc412306d
commit 056dd26fa8
2 changed files with 4 additions and 0 deletions

3
changelog/10992.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:improvement
core: dev mode listener allows unauthenticated sys/metrics requests
```

View File

@@ -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()