From c9ae15bd95f4fe29a13302431d3439a445172c57 Mon Sep 17 00:00:00 2001 From: Nick Cabatoff Date: Wed, 24 Feb 2021 14:04:23 -0500 Subject: [PATCH] Make metrics access unauthenticated when in dev mode. (#10992) --- changelog/10992.txt | 3 +++ command/server.go | 1 + 2 files changed, 4 insertions(+) create mode 100644 changelog/10992.txt diff --git a/changelog/10992.txt b/changelog/10992.txt new file mode 100644 index 000000000..5b216af8e --- /dev/null +++ b/changelog/10992.txt @@ -0,0 +1,3 @@ +```release-note:improvement +core: dev mode listener allows unauthenticated sys/metrics requests +``` diff --git a/command/server.go b/command/server.go index c9235396e..4d8a9da3d 100644 --- a/command/server.go +++ b/command/server.go @@ -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()