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

CA is not being regenerated when configured common name changes #132

Closed
simskij opened this issue Apr 10, 2024 · 0 comments · Fixed by #140
Closed

CA is not being regenerated when configured common name changes #132

simskij opened this issue Apr 10, 2024 · 0 comments · Fixed by #140
Labels
bug Something isn't working

Comments

@simskij
Copy link
Member

simskij commented Apr 10, 2024

Describe the bug

CA is not being regenerated when configured common name changes

To Reproduce

  1. deploy this charm and relate it to something with a webserver, like traefik.
  2. openssl s_client <address>
  3. check CA Common Name
  4. change the common name using juju config
  5. wait for things to settle
  6. openssl s_client <address>
  7. check CA Common name

Expected behavior

for the CA, and all the certs, to be regenerated using the new CA common name

Screenshots

Logs

it says it's doing all of the things in the log, but in reality nothing changes.

unit-ssc-0: 14:57:28 INFO juju.worker.uniter.operation ran "config-changed" hook (via hook dispatching script: dispatch)
unit-ssc-0: 14:57:29 INFO juju.worker.uniter.operation ran "secret-changed" hook (via hook dispatching script: dispatch)
unit-ssc-0: 14:57:30 INFO juju.worker.uniter.operation ran "secret-remove" hook (via hook dispatching script: dispatch)
unit-ssc-0: 14:57:59 INFO unit.ssc/0.juju-log Root certificates generated and stored.
unit-ssc-0: 14:57:59 INFO unit.ssc/0.juju-log Revoked all previously issued certificates.
unit-ssc-0: 14:57:59 INFO unit.ssc/0.juju-log Generated certificate for relation 37
unit-ssc-0: 14:57:59 INFO juju.worker.uniter.operation ran "update-status" hook (via hook dispatching script: dispatch)
unit-ssc-0: 14:58:00 INFO juju.worker.uniter.operation ran "secret-changed" hook (via hook dispatching script: dispatch)
unit-ssc-0: 14:58:01 INFO juju.worker.uniter.operation ran "secret-remove" hook (via hook dispatching script: dispatch)

Environment

  • Charm / library version (if relevant):
  • Juju version (output from juju --version):
  • Cloud Environment:
  • Kubernetes version (output from kubectl version --short):

Additional context

@simskij simskij added the bug Something isn't working label Apr 10, 2024
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

Successfully merging a pull request may close this issue.

1 participant