Andrea Cosentino created CAMEL-27917:
----------------------------------------
Summary: camel-hashicorp-vault: reload the TLS key store and trust
store when their file changes
Key: CAMEL-27917
URL: https://issues.apache.org/jira/browse/CAMEL-27917
Project: Camel
Issue Type: Improvement
Components: camel-hashicorp-vault
Reporter: Andrea Cosentino
Assignee: Andrea Cosentino
Fix For: 4.25.0
The TLS stores of the HashiCorp Vault client ({{keyStore}} and {{trustStore}},
from CAMEL-25675) are read once, when the client is created, and the properties
function and the secret refresh task keep their client for the life of the
CamelContext. Client certificates are often short-lived and rotated in place
(Vault PKI with the Vault agent, cert-manager). After the first certificate
expires, the cert login fails, and on a Vault that requires client certificates
every request fails, until a restart. The component documentation says so today.
Proposal: reload the key store and the trust store when their file changes,
checked when a new TLS connection is made, and drop the cached TLS sessions
when they are reloaded, so that the next connection presents the new
certificate. No new option.
Raised in the review of apache/camel#29619.
_Claude Code on behalf of oscerd_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)