Skip to content

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 <weaver.alex.d@gmail.com>
@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
This was referenced Mar 7, 2025
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