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

Generated authentication secret is not removed on uninstall #25

Open
ryanemerson opened this issue Nov 4, 2021 · 2 comments
Open

Generated authentication secret is not removed on uninstall #25

ryanemerson opened this issue Nov 4, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@ryanemerson
Copy link
Contributor

No description provided.

@ryanemerson ryanemerson added the bug Something isn't working label Nov 4, 2021
ryanemerson added a commit to ryanemerson/infinispan-helm-charts that referenced this issue Nov 4, 2021
@dmvolod
Copy link
Member

dmvolod commented Nov 5, 2021

@ryanemerson I don't remember why this annotation added, but probably can take a side effect. More detail tests in CI with install/update/uninstall and resource validation after these stages need to be implemented

annotations:
    "helm.sh/resource-policy": no-update

@ryanemerson
Copy link
Contributor Author

@dmvolod Thanks for commenting. From what I can see in the helm docs, "no-update" isn't a valid value for the helm.sh/resource-policy annotation, the only option is "keep" https://helm.sh/docs/howto/charts_tips_and_tricks/#tell-helm-not-to-uninstall-a-resource.

Maybe I was too quick to remove this annotation though, as removing the Secret during a chart upgrade would result in new user credentials being generated and any user applications being broken on upgrade.

I think I should revert the commit and update the annotation value to be "keep". We will then need to update the docs to state that the generated Secret needs to be manually uninstalled.

Ideally what we require is the ability to keep a resource during update/rollback but remove on delete, however this doesn't seem to exist helm/helm#7839 😞.

@fabriziosta FYI, it looks like we won't be able to remove the secret after all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants