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

Add OCSP stapling #936

Open
crabique opened this issue Jun 27, 2022 · 1 comment
Open

Add OCSP stapling #936

crabique opened this issue Jun 27, 2022 · 1 comment

Comments

@crabique
Copy link

What are you trying to do

HAProxy supports OCSP stapling to provide certificate status along with the server certificate during TLS handshake, this speeds up synchronous clients and also helps protect site visitors' privacy as they are not making OCSP requests themselves.

Certificate requester may even explicitly specify OCSP Must-Staple option as part of the CSR and the certificate will not work unless an OCSP object is provided along with the issued certificate (at least in browsers that properly implement it, e.g. Firefox).

Would be great if HAProxy ingress had some integration to automate OCSP stapling responses for all ingress objects with certificates.

What HAProxy Ingress should do or how it should behave differently

HAProxy allows for configuration of OCSP stapling in two ways: statically via an .ocsp file next to the certificate, and dynamically via the runtime API.

However, those OCSP objects usually have a TTL of about ~7 days, so there would need to be some sort of a background worker that renews them at certain intervals.

Ideally, this feature would be configurable as both global flag and explicit ingress object annotations for some granular control.

Hopefully, this could be implemented 🙂

@crabique
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants