mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-03 12:07:54 +00:00
Make metrics access unauthenticated when in dev mode. (#10992)
This commit is contained in:
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 != "" {
|
if c.flagDevListenAddr != "" {
|
||||||
config.Listeners[0].Address = c.flagDevListenAddr
|
config.Listeners[0].Address = c.flagDevListenAddr
|
||||||
}
|
}
|
||||||
|
config.Listeners[0].Telemetry.UnauthenticatedMetricsAccess = true
|
||||||
}
|
}
|
||||||
|
|
||||||
parsedConfig, err := c.parseConfig()
|
parsedConfig, err := c.parseConfig()
|
||||||
|
|||||||
Reference in New Issue
Block a user