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

Allow to disable secret auto-recreation #1118

Merged
merged 6 commits into from
Mar 6, 2023

Conversation

josvazg
Copy link
Collaborator

@josvazg josvazg commented Mar 2, 2023

Description of the change

Add a new recreate flag, on by default, that when switched off allows to opt in for lost backward compatibility after the introduction of automatic secret recreation by PR #963.

Benefits

Some low privilege environment do not allow users to watch secrets, so this will allow them to still install sealed secrets just by using the new recreate flag set to false.

Possible drawbacks

It is still a manual fix, as we want it to be a explicit opt in. Also the error about lack of permissions for watching secrets will not point you to this flag. But still this flag should help as it skips secrets watching completely.

Applicable issues

Additional information

Reported at #1064

Signed-off-by: Jose Luis Vazquez Gonzalez <[email protected]>
Signed-off-by: Jose Luis Vazquez Gonzalez <[email protected]>
Signed-off-by: Jose Luis Vazquez Gonzalez <[email protected]>
helm/sealed-secrets/templates/deployment.yaml Outdated Show resolved Hide resolved
helm/sealed-secrets/values.yaml Outdated Show resolved Hide resolved
pkg/controller/controller_test.go Outdated Show resolved Hide resolved
pkg/controller/controller_test.go Outdated Show resolved Hide resolved
helm/sealed-secrets/README.md Outdated Show resolved Hide resolved
carvel/package.yaml Outdated Show resolved Hide resolved
Co-authored-by: Alejandro Moreno <[email protected]>
Signed-off-by: josvaz <[email protected]>
@josvazg
Copy link
Collaborator Author

josvazg commented Mar 6, 2023

$ helm template helm/sealed-secrets/ --set skipRecreate=true |grep args -A 5
          args:
            - --update-status
            - --skip-recreate
            - --key-prefix
            - "sealed-secrets-key"
          image: docker.io/bitnami/sealed-secrets-controller:v0.19.5

pkg/controller/main.go Outdated Show resolved Hide resolved
alvneiayu
alvneiayu previously approved these changes Mar 6, 2023
Copy link
Collaborator

@alvneiayu alvneiayu left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Jose Luis Vazquez Gonzalez <[email protected]>
helm/sealed-secrets/values.yaml Outdated Show resolved Hide resolved
pkg/controller/controller_test.go Outdated Show resolved Hide resolved
pkg/controller/controller_test.go Outdated Show resolved Hide resolved
Co-authored-by: Alejandro Moreno <[email protected]>
Signed-off-by: josvaz <[email protected]>
Signed-off-by: Jose Luis Vazquez Gonzalez <[email protected]>
@@ -56,6 +56,12 @@ secretName: "sealed-secrets-key"
## @param updateStatus Specifies whether the Sealed Secrets controller should update the status subresource
##
updateStatus: true
## @param skipRecreate Specifies whether the Sealed Secrets controller should skip recreating removed secrets
## Setting it to false allows to optionally restore backward compatibility in low priviledge
Copy link
Contributor

Choose a reason for hiding this comment

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

Just noticed this small typo ^^
This message is talking about the case in which skipRecreate is actually set to true

Copy link
Contributor

Choose a reason for hiding this comment

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

Fixed per #1371

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.

PR #963 unintentional backwards compatibility break
4 participants