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

fix: OB-37389 Obfuscate secrets inside Secret previous configuration #102

Merged
merged 1 commit into from
Oct 6, 2024

Conversation

obs-gh-enricogiorio
Copy link
Collaborator

@obs-gh-enricogiorio obs-gh-enricogiorio commented Oct 4, 2024

Secret entities not only contain secrets in data, but might also contain
an annotation that represents the previous configuration for this
Secret, including the secrets. Drop such annotation

@@ -8,6 +8,16 @@ const (
RedactedSecretValue = "REDACTED"
)

var keysMightContainSecret map[string]struct{}

func init() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you don't need these anymore?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

Secret entities not only contain secrets in data, but might also contain
an annotation that represents the previous configuration for this
Secret, including the secrets. Drop such annotation
@obs-gh-enricogiorio obs-gh-enricogiorio merged commit 94fbb4f into main Oct 6, 2024
8 checks passed
@obs-gh-enricogiorio obs-gh-enricogiorio deleted the enrico/obfuscateSecrets branch November 4, 2024 19:51
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