Skip to content

[BUG] SHA-1 hashing should not be used for secret data on owning resource #594

@scartledge

Description

@scartledge

Describe the bug
SHA-1 hashing is used by the Reloader operator to store secret data on an environment variable or annotation of the owning resource. Given the weakness of SHA-1, a stronger hashing algorithm should be used like SHA-2 and SHA-3 with a minimal digest of 256 bits.

To Reproduce
Use the Reloader operator for a secret on a deployment. Depending on the reload strategy, the SHA-1 hashed secret data will be stored on the owning resource in either an environment variable or annotation.

Expected behavior
Use a stronger hashing algorithm when storing secret data on the owning resource.

Screenshots
N/A

Environment

  • Operator Version: v1.0.56
  • Kubernetes/OpenShift Version: 1.27

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions