-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: use TLS lib v4 to manage certs #385
base: main
Are you sure you want to change the base?
Conversation
lib/charms/tls_certificates_interface/v4/tls_certificates.py
Dismissed
Show dismissed
Hide dismissed
lib/charms/tls_certificates_interface/v4/tls_certificates.py
Dismissed
Show dismissed
Hide dismissed
lib/charms/tls_certificates_interface/v4/tls_certificates.py
Dismissed
Show dismissed
Hide dismissed
lib/charms/tls_certificates_interface/v4/tls_certificates.py
Dismissed
Show dismissed
Hide dismissed
I believe the test failures are unrelated to this PR, but I don't have permission to re-run them. Specifically, |
Hey Daniel, thanks a lot for this PR! I'll take a look at the tests :) |
acc3db3
to
a1abcd7
Compare
So the failing upgrade test seemed to be a result of removing the peer relation (a1abcd7). It seems as though Juju sometimes "informs" the charm this relation is being removed before the code is actually refreshed. This caused the old code (cert_handler) to fail as the relation it was expecting to exist no longer existed. The possible paths forward AFAICT:
|
I'll ask to prioritize this in the next pulse! |
Issue
Closes #326
Reduce the code that must be managed by the o11y team.
Solution
Use the latest version of the TLS Interface Library (V4)
Context
The new version of the library attempts to encapsulate the boilerplate code needed to manage TLS certificates. This should largely (or entirely) replace cert_handler in most projects.
I'm making this PR to show how easy it should be to upgrade. I hope that using this as a template, you will be able to retire
cert_handler
entirely from every project. If not, please provide feedback on what could be improved!Testing Instructions
Since I am largely unfamiliar with the project, I have relied on the e2e tests.
Upgrade Notes
This change will force a new private key for the charm and therefore request a new certificate. If the certificate is manually issued, it may need to be re-issued upon upgrade.