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

[Bug]: fix(example): schedule for re-generate client cert (postgresql , cockroach) #310

Open
2 tasks done
panapol-p opened this issue Feb 6, 2025 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@panapol-p
Copy link
Contributor

Preflight Checklist

  • I could not find a solution in the documentation, the existing issues or discussions
  • I have joined the ZITADEL chat

Version

all version

App version

all version

Describe the problem caused by this bug

In the charts for 2-postgres-secure and 4-cockroach-secure, we have observed an issue where certificates expire within one year. The database certificates are automatically generated by CockroachDB and PostgreSQL, but the client certificates do not have an automatic renewal function to regenerate them before they expire.

Could we consider adding functionality to automatically generate new client certificates prior to expiration? This would help prevent any service interruptions caused by expired certificates.

To reproduce

1.Shorten the Client Certificate Lifetime:
Modify the client certificate expiration in the file zitadel-cert-job.yaml to reduce its validity period.

2.Deploy the Chart:
Deploy the chart with the updated client certificate expiration settings.

3.Wait for Certificate Expiration:
Allow the system to run until the client certificate reaches its (shortened) expiration time.

4.Observe the Failure:
After the certificate expires, the client will be unable to connect, and Zitadel will crash.

Logs

No response

Expected behavior

The system should automatically re-create the client certificate before it expires, ensuring that Zitadel continues to operate normally without crashing.

Relevant Configuration

No response

Additional Context

No response

@panapol-p panapol-p added the bug Something isn't working label Feb 6, 2025
@panapol-p panapol-p changed the title [Bug]: fix(example): schedule for re-generate ckient cert (postgresql , cockroach) [Bug]: fix(example): schedule for re-generate cสient cert (postgresql , cockroach) Feb 6, 2025
@panapol-p panapol-p changed the title [Bug]: fix(example): schedule for re-generate cสient cert (postgresql , cockroach) [Bug]: fix(example): schedule for re-generate client cert (postgresql , cockroach) Feb 6, 2025
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