CRL Implementation for Vault API Client

The Vault Go API client (github.com/hashicorp/vault/api) currently does not check if the Vault server’s TLS certificate was revoked. TLSConfig supports CACert, CACertBytes, CAPath, ClientCert/ClientKey, TLSServerName, and Insecure, but there is no CRLPath, CRLBytes, or hook to plug in custom revocation-checking logic (source: api/client.go, TLSConfig struct and configureTLS()).

If a server certificate is revoked (compromised key, decommissioned node, etc.), Go API clients using vault/api will continue to trust it until it expires, since the standard crypto/tls/crypto/x509 chain verification does not check CRLs unless the application wires that up itself.

Can we accept this as a feature? Is there any feedback that should be considered?

I would suggest posting this as a GitHub issue on the repo, should get more eyes on the idea there.

Hi @jonathanfrappier, thanks for replying

I have opened an issue, along with a draft implementation, a while ago and could see that the discuss forum is more active

Please find the link to the issue and PR below:

Issue - api: support client-side CRL validation of the Vault server's TLS certificate · Issue #32092 · hashicorp/vault · GitHub

PR - CRL implementation by shub-est · Pull Request #32106 · hashicorp/vault · GitHub

Looking forward to any comments or feedback