Alertmanager: reject file-based http_headers in tenant configs - #7767
Merged
Conversation
Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
friedrichg
force-pushed
the
reject-http-headers-files
branch
from
August 14, 2026 22:41
7b5a013 to
7b493c1
Compare
…-files Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
friedrichg
force-pushed
the
reject-http-headers-files
branch
from
August 15, 2026 06:47
23bb7b8 to
c24022b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does: Rejects
http_config.http_headers.<NAME>.filesin per-tenant Alertmanager configs.prometheus/common'sheadersRoundTripperreads those paths at notification time and injects the contents into a request whose URL the tenant also controls, so a tenant with Alertmanager API access could disclose files readable by the Alertmanager process.http_headerswas the one setting missing from the*_filedenylist thatvalidateReceiverHTTPConfigalready applies.Only
Filesis rejected.ValuesandSecretsare inline literals and keep working.Affects v1.18.0 through v1.21.1. Only deployments with
-alertmanager.enable-api=trueare exposed.Tracked in GHSA-hq3h-j634-grmc.
Draft until the advisory is published. The CHANGELOG entry is intentionally non-specific and should be expanded with the CVE id at that point.