mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-18 18:38:08 -05:00
Make metrics access unauthenticated when in dev mode. (#10992)
This commit is contained in:
parent
9fc412306d
commit
056dd26fa8
2 changed files with 4 additions and 0 deletions
3
changelog/10992.txt
Normal file
3
changelog/10992.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:improvement
|
||||
core: dev mode listener allows unauthenticated sys/metrics requests
|
||||
```
|
||||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue