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

@josvazg josvazg self-assigned this Mar 2, 2023
@josvazg josvazg force-pushed the skip-auto-create-on-flag branch from 07a963b to 37ae31f Compare March 2, 2023 15:01
@josvazg josvazg had a problem deploying to vmware-image-builder March 2, 2023 15:03 — with GitHub Actions Failure
@josvazg josvazg had a problem deploying to vmware-image-builder March 2, 2023 15:03 — with GitHub Actions Error
@josvazg josvazg had a problem deploying to vmware-image-builder March 2, 2023 15:21 — with GitHub Actions Failure
@josvazg josvazg had a problem deploying to vmware-image-builder March 2, 2023 15:21 — with GitHub Actions Failure
@josvazg josvazg had a problem deploying to vmware-image-builder March 2, 2023 16:58 — with GitHub Actions Error
@josvazg josvazg had a problem deploying to vmware-image-builder March 2, 2023 16:58 — with GitHub Actions Error
Signed-off-by: Jose Luis Vazquez Gonzalez <josvaz@vmware.com>
@josvazg josvazg force-pushed the skip-auto-create-on-flag branch from 37ae31f to ac73912 Compare March 2, 2023 17:18
Signed-off-by: Jose Luis Vazquez Gonzalez <josvaz@vmware.com>
@josvazg josvazg force-pushed the skip-auto-create-on-flag branch from f2d971f to b866e6a Compare March 3, 2023 15:54
Signed-off-by: Jose Luis Vazquez Gonzalez <josvaz@vmware.com>
@josvazg josvazg force-pushed the skip-auto-create-on-flag branch from f54fd26 to 5325e94 Compare March 3, 2023 16:23
Co-authored-by: Alejandro Moreno <amorenoc@vmware.com>
Signed-off-by: josvaz <josvaz@vmware.com>
@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

@josvazg josvazg force-pushed the skip-auto-create-on-flag branch from f1958dc to d73a487 Compare March 6, 2023 10:23
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 <josvaz@vmware.com>
Co-authored-by: Alejandro Moreno <amorenoc@vmware.com>
Signed-off-by: josvaz <josvaz@vmware.com>
Signed-off-by: Jose Luis Vazquez Gonzalez <josvaz@vmware.com>
@josvazg josvazg force-pushed the skip-auto-create-on-flag branch from 24788dd to 1e03569 Compare March 6, 2023 10:57
@@ -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