From 674dd1a3045638577a27dc3b98946a10553c63aa Mon Sep 17 00:00:00 2001 From: Frederic Branczyk Date: Tue, 18 Jul 2023 10:10:45 +0200 Subject: [PATCH] cmd/parca-debuginfo: Allow passing bearer token as env var --- cmd/parca-debuginfo/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/parca-debuginfo/main.go b/cmd/parca-debuginfo/main.go index 2a6e3e5..036a2fa 100644 --- a/cmd/parca-debuginfo/main.go +++ b/cmd/parca-debuginfo/main.go @@ -50,7 +50,7 @@ type flags struct { Upload struct { StoreAddress string `kong:"required,help='gRPC address to sends symbols to.'"` - BearerToken string `kong:"help='Bearer token to authenticate with store.'"` + BearerToken string `kong:"help='Bearer token to authenticate with store.',env='PARCA_DEBUGINFO_BEARER_TOKEN'"` BearerTokenFile string `kong:"help='File to read bearer token from to authenticate with store.'"` Insecure bool `kong:"help='Send gRPC requests via plaintext instead of TLS.'"` InsecureSkipVerify bool `kong:"help='Skip TLS certificate verification.'"`