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

[tls] Provide an option to reload TLS certificates. #428

Merged
merged 6 commits into from Aug 1, 2023
Merged

Conversation

manugarg
Copy link
Contributor

@manugarg manugarg commented Jul 31, 2023

Couple of things for the records:

  • File cache is maintained by the file name. If multiple probes are using the same certificate, they will all access the same content, and they will all take the read lock, but read locks are cheap.
  • Certificate reload may get triggered sporadically if multiple probes (or targets) use the same certificate but specify different reload interval. This is unlikely and quite harmless I think, so not trying to solve that.

@manugarg manugarg merged commit c686c0c into master Aug 1, 2023
10 checks passed
@manugarg manugarg deleted the tls_reload branch August 1, 2023 23:52
manugarg added a commit that referenced this pull request Aug 7, 2023
Previous PR (#428) added caching only for certificate files. This one caches parse certificates.
robpickerill pushed a commit to robpickerill/cloudprober that referenced this pull request Aug 7, 2023
Previous PR (cloudprober#428) added caching only for certificate files. This one caches parse certificates.
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

Successfully merging this pull request may close these issues.

None yet

2 participants