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

get_certkey_parsed: Pass stale certificate if getting certificate from storage fails #80

Closed
nizar-m opened this issue Sep 23, 2022 · 2 comments

Comments

@nizar-m
Copy link
Contributor

nizar-m commented Sep 23, 2022

If file-system is used as storage for cert, the only reason why getting certificate from storage fails is because the certificate does not exist in the first place. If it is a storage system like vault, it can fail due to networking errors, timeout due to vault being busy etc. Not serving a certificate when this happens would result in HTTPS connection errors.

So it makes sense that we provide stale certificate from cache, if it is present, when the request to get certificate from storage fails. Just logging errors would be enough. This way we can improve the reliability of the HTTPS requests.

@fffonion
Copy link
Owner

That's good idea @nizar-m ! I will draft a PR.

@fffonion
Copy link
Owner

This is now implemented and will be included in next release : )

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