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

Keycloak installation race condition #27

Open
davgordo opened this issue Sep 17, 2024 · 0 comments
Open

Keycloak installation race condition #27

davgordo opened this issue Sep 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@davgordo
Copy link
Contributor

Sometimes, when installing the platform, the Keycloak certificate has not been issued yet before the Keycloak instance starts, but Keycloak starts anyway and does not present a valid certificate.

The problem is that when a certificate secret name is configured in the Keycloak CR, like this:
https://github.com/contract-first-idp/platform-components/blob/main/charts/keycloak/templates/keycloak.yaml#L13
The Keycloak instance does not wait for that secret to exist. Depending on how fast cert-manager issues the certificate, Keycloak may start up without the secret data.

For now, the resolution is to simply delete the Keycloak pod and allow it to be replaced. Long term, it would be nice to prevent this condition somehow.

@davgordo davgordo added the bug Something isn't working label Sep 17, 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

No branches or pull requests

1 participant