Skip to content

Deprecating SHA-1 as hashing algorithm in the attributesprocessor #5576

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

Closed
HuBaX opened this issue Oct 4, 2021 · 5 comments
Closed

Deprecating SHA-1 as hashing algorithm in the attributesprocessor #5576

HuBaX opened this issue Oct 4, 2021 · 5 comments
Labels
bug Something isn't working processor/attributes Attributes processor Stale

Comments

@HuBaX
Copy link

HuBaX commented Oct 4, 2021

Is your feature request related to a problem? Please describe.
My organization wants to obscure the content of some attributes in spans for privacy reasons. However, the attributes that contain sensitive data should not be deleted. They want to be able to recognize a correlation between certain values and an error case despite the obscured data. At the moment it is possible to hash certain attributes by the attributesprocessor. SHA-1 is used as the hashing algorithm here even though it is officially insecure. However, to ensure privacy, my organization would like to use a secure hashing method. I also don't understand why SHA-1 is used for attribute hashing in the first place.

Describe the solution you'd like
I would like to discuss if it makes sense to offer a secure hashing method besides SHA-1 or even to replace SHA-1 completely with it. If it comes to the decision to use a more secure hashing method I would like to implement this new functionality.

This is a "repost" of a discussion I wanted to start a few weeks ago since no one seems to read the discussions.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2022

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

@github-actions github-actions bot added the Stale label Nov 7, 2022
@atoulme atoulme added processor/attributes Attributes processor bug Something isn't working labels Mar 11, 2023
@github-actions
Copy link
Contributor

Pinging code owners for processor/attributes: @boostchicken. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@atoulme
Copy link
Contributor

atoulme commented Mar 12, 2023

What hashing algo would you like?

codeboten pushed a commit that referenced this issue Mar 24, 2023
Stop using sha-1, a deprecated hashing algorithm which triggers security reports, and use sha2-256 instead.

Link to tracking Issue:
Fixes #4759 and #5576
@github-actions github-actions bot removed the Stale label Apr 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jun 1, 2023

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label Jun 1, 2023
@atoulme
Copy link
Contributor

atoulme commented Jun 1, 2023

SHA-2 is now on by default. We can close.

@atoulme atoulme closed this as completed Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working processor/attributes Attributes processor Stale
Projects
None yet
Development

No branches or pull requests

2 participants