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

Fix error message on secret/cm update failure #863

Merged
merged 1 commit into from
Nov 2, 2021

Conversation

jcmoraisjr
Copy link
Owner

Acme functionality needs permission to create or update secrets when a new certificate is issued, and also to save the client's private key. This permission isn't added in the default configuration. The func that creates or updates the secret should return an error if anything went wrong, but the variable that has the error instance was being redeclared inside the if block, and was always returning nil even if an error (eg missing permission) occur.

The same is happening with ConfigMap, which is used to save the challenge token.

Acme functionality needs permission to create or update secrets when a
new certificate is issued, and also to save the client's private key.
This permission isn't added in the default configuration. The func that
creates or updates the secret should return an error if anything went
wrong, but the variable that has the error instance was being redeclared
inside the if block, and was always returning nil even if an error (eg
missing permission) occur.

The same is happening with ConfigMap, which is used to save the
challenge token.
@jcmoraisjr jcmoraisjr merged commit eb0dc09 into master Nov 2, 2021
@jcmoraisjr jcmoraisjr deleted the jm-fix-err-secret branch November 2, 2021 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant