Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document that the hash exposed in alertmanager_config_hash is not cryptographically strong #4210

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

alexweav
Copy link
Contributor

This hash is presented to operators to track the contents of the Alertmanager config file.

The method used to calculate the hash takes only the lower 48 bits of an MD5 hash, in order to stuff the hash into the metric value.

Although this is probably obvious to many operators, I think it's worth documenting that this method isn't cryptographically strong and that collisions are common, to add an extra layer of discouragement for anybody from trying to use this metric for secure purposes.

Signed-off-by: Alex Weaver <[email protected]>
@alexweav alexweav force-pushed the alexweav/document-config-hash branch from 5b75856 to 6f063ef Compare January 16, 2025 14:44
@gotjosh gotjosh merged commit fa65edb into prometheus:main Jan 17, 2025
11 checks passed
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.

2 participants