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

[cert handler] don't fail on vault.clear() failures #100

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

PietroPasotti
Copy link
Contributor

Issue

Fixes #95

Solution

don't raise when calling Secret.remove_all_revisions fails with SecretNotFound.

Context

Unclear exactly what's causing this, as the _SecretVaultBackend already catches SecretNotFound and initializes a fresh secret in that case. It's odd that two lines later info-get on that fresh secret raises SecretNotFound again.
Discussion with juju is ongoing to see whether we can find out what's going on.

Testing Instructions

Attempt to repro #95 and see if it's fixed

@PietroPasotti PietroPasotti changed the base branch from main to sed-i-patch-1 June 19, 2024 13:22
@PietroPasotti PietroPasotti merged commit c073982 into sed-i-patch-1 Jun 19, 2024
13 checks passed
@PietroPasotti PietroPasotti deleted the fix-vault-on-secret-removed branch June 19, 2024 13:27
sed-i added a commit that referenced this pull request Jun 19, 2024
* [cert handler] do not observe rel broken directly
* codespell ignore assertIn
* [cert handler] don't fail on vault.clear() failures (#100)

---------

Co-authored-by: PietroPasotti <starfire.daemon@gmail.com>
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.

Encounter a SecretNotFoundError when removing relation with certificates operator (when using CertHandler)
2 participants