-
Notifications
You must be signed in to change notification settings - Fork 97
enable opt-in to redact Secret data from Object status #193
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
Conversation
Signed-off-by: rladdukodiraghav <[email protected]>
Signed-off-by: rladdukodiraghav <[email protected]>
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.
Looking great, thanks @ravilr 🙌
@turkenh looks like the CI jobs are failing since minimum go version in go.mod was updated to 1.21. Does https://github.com/crossplane-contrib/provider-kubernetes/blob/main/.github/workflows/ci.yml#L13 needs update to 1.21.7 ? Thanks. |
Yes, I think I forgot it in my previous PR. It would be great if you could do it here 🙏 |
Signed-off-by: rladdukodiraghav <[email protected]>
Done. |
Description of your changes
Fixes #178
Adds a new flag
--sanitize-secrets
when set in controllerConfig/deploymentRuntimeConfig of provider-kubernetes, redacts the Secret data from Objectstatus.atProvider.manifest
.the new redact behavior is off by default so as to not break any existing compositions relying on
status.atProvider.manifest.data
for patches. Usages meant to shuttling observed secret data to/from remote/control-plane clusters can be updated to usespec.references[].patchesFrom
orspec.connectionDetails
and avoid leaking secret data to Object MR status resources.I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested
make test
andmake e2e
Updating the provider-kubernetes's deploymentRuntimeConfig with below additional arg:
will reconcile any existing and new Object resources managing Secrets to have their
status.atProvider.manifest.data
redacted: