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

Does PGX support automatic certificate rotation? #2201

Open
jsirianni opened this issue Dec 18, 2024 · 1 comment
Open

Does PGX support automatic certificate rotation? #2201

jsirianni opened this issue Dec 18, 2024 · 1 comment

Comments

@jsirianni
Copy link

Is your feature request related to a problem? Please describe.

My certificates are short lived, roughly 3 days.

Describe the solution you'd like

Does PGX support re-reading certificate files when they are updated?

Describe alternatives you've considered

Attempting to use fsnotify to re-construct the Postgres client.

Additional context

Short lived certificates are becoming more common. At the moment, I need to restart my applications in order to consume new certificates.

@jackc
Copy link
Owner

jackc commented Dec 21, 2024

There's nothing builtin. But assuming you are using pgxpool, you may be able to use BeforeConnect to modify the ConnConfig as you see fit.

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

No branches or pull requests

2 participants