Skip to content

config: add OAuth2 token_url_file#944

Open
dtrejod wants to merge 1 commit into
prometheus:mainfrom
dtrejod:dt/addtokenurlfile
Open

config: add OAuth2 token_url_file#944
dtrejod wants to merge 1 commit into
prometheus:mainfrom
dtrejod:dt/addtokenurlfile

Conversation

@dtrejod

@dtrejod dtrejod commented Jul 7, 2026

Copy link
Copy Markdown

Adds a token_url_file field to the OAuth2 HTTP client config, alongside the existing token_url config. The token URL is read from the file when the OAuth2 token source is (re)built, so deploy-time-injected values (e.g. Helm-managed files, mounted Secrets/ConfigMaps) work without needing the URL to be known at config-authoring time.

Exactly one of token_url or token_url_file must be set. Configs that set both, or neither, fail validation.

See prometheus/alertmanager#4759

Signed-off-by: Devin Trejo <dtrejo@palantir.com>
@dtrejod dtrejod force-pushed the dt/addtokenurlfile branch from 84afbe2 to 9052284 Compare July 7, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant