Andrea Cosentino created CAMEL-24639:
----------------------------------------
Summary: camel-http: implement SecretRotationAware to refresh
credentials on rotation
Key: CAMEL-24639
URL: https://issues.apache.org/jira/browse/CAMEL-24639
Project: Camel
Issue Type: Sub-task
Components: camel-http
Reporter: Andrea Cosentino
Sub-task of CAMEL-24636.
Adopt the {{SecretRotationAware}} SPI in camel-http.
{{HttpComponent}} can hold a shared {{HttpClientConnectionManager}} and a
{{HttpClientConfigurer}}, and component-level authentication options are
resolved from property placeholders once at configure time. A context reload
clears the endpoint registry but leaves the component and its connection
manager in place, so rotated credentials are not picked up.
On {{onSecretRotation}} the component should re-resolve its authentication
configuration and refresh the credentials provider used by the client, so that
subsequent requests authenticate with the new secret without recreating the
shared connection manager.
Note that endpoint-level options are re-resolved as a side effect of the
endpoint registry being cleared; this sub-task is specifically about
component-level and shared-client state.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)