-
Notifications
You must be signed in to change notification settings - Fork 27
CP-25962: Correct the sendSecretValues chart comment #836
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -200,7 +200,8 @@ config: | |
| clusterDescription: "" | ||
|
|
||
| # Enable sending of Secret values to CyberArk in addition to metadata. | ||
| # Metadata is always sent, but the actual values of Secrets are not sent by default. | ||
| # Metadata is always sent, and Secret values are sent by default too. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The chart's own template does not agree with the default this comment now documents. Today the two only disagree when the key is absent: Helm's
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Confirmed via |
||
| # Set this to false to send metadata only. | ||
| # When enabled, Secret data is encrypted using envelope encryption using | ||
| # a key managed by CyberArk, fetched from the Discovery and Context service. | ||
| sendSecretValues: true | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is one more copy of the same stale claim, and it is stronger than the one you fixed.
docs/datagatherers/k8s-dynamic.md:80still says:With
sendSecretValuesdefaulting totrue,pkg/agent/run.go:170setsencryptSecrets,redactListkeeps thedatafield and adds_encryptedData, so secret data is transmitted (encrypted). A reader who checks the docs to answer "does the agent send my Secret data?" gets opposite answers depending on which file they open.That line also points at
pkg/datagatherer/k8s/fieldfilter.go, which no longer exists — the file moved topkg/datagatherer/k8sdynamic/fieldfilter.go.Out of scope if you want to keep this PR to the chart, but it is the same comment rot and worth sweeping in the same pass.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed both — the file did move, and the claim contradicts run.go's encryptSecrets/_encryptedData path once sendSecretValues defaults true. Fixed in
f368c94: corrected the redact-by-default / encrypt-when-enabled description, fixed the fieldfilter.go link, and pointed at the chart's sendSecretValues doc instead of restating it.