Closed venkateshdomakonda closed 3 months ago
VaultTemplate
is bound to RestOperations
. You can implement your own ClientHttpRequestFactory
that applies different client settings/clients per request/endpoint.
SSL settings are propagated into the HTTP client so there is no on-demand reconfiguration.
Hello @mp911de
I am considering to recreate the ClientFactoryWrapper by creating a new SslConfiguration with the desired cipher suites during runtime, particularly when there's a need to update cipher suites, which may occur infrequently, perhaps once or twice during the application's lifespan.
May I know your opinion on whether this approach seems viable and if there are any potential concerns or considerations I should be aware of ?
Regards, Venkat
Occasional updates are fine. Either a proxied ClientHttpRequestFactory
or a custom ClientHttpRequestFactory
implementation that delegates to the currently active ClientHttpRequestFactory
(holding the configured client) ist the best approach as VaultTemplate
operates on top of RestTemplate
. ClientFactoryWrapper
is a Spring Vault-specific type that isn't wired directly into RestTemplate
.
Hello,
I am using the CryptoConfiguration class, which extends AbstractVaultConfiguration, to provide a custom SslConfiguration for Vault communication. This configuration is currently set statically.
`
`
`
}
`
Could you please advise on the recommended approach to achieve dynamic cipher suite configuration(using SslConfiguration) for Vault communication within the current setup ?