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 9d2e2b1d09
commit c9ae15bd95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()