-
Notifications
You must be signed in to change notification settings - Fork 148
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
Customize the http client builder #675
Comments
See also spring-projects/spring-vault#760 |
Applying customizations in the early application startup (before starting |
So, do you mean that even for using the new method you added in https://github.com/spring-projects/spring-vault/issues/760 : createHttpAsyncClientBuilder, Ok for the access of PropertySources/Environment , i'm going to see with @mhalbritter what it's possible to do. |
Normally an |
Ideally, we could create an The alternative could be a customization hook in Spring Cloud Vault via It basically boils down to being able to customize |
Hello,
As i have already mentioned the need to configure http client connection TTL for spring cloud vault (#660), i need to find the good way to do it.
You gave us a way to do it : https://gist.github.com/mp911de/157e6ae14ba6bb3565c36b425d3d83b7
However, even if the class HttpComponents become public, there is no method getBuilder()
Here is the static class HttpComponents in ClientHttpRequestFactoryFactory :
The only method available from this static class HttpComponents is usingHttpComponents but this method need some parameters (clientOptions and SslConfiguration) and return ClientHttpRequestFactory
This method does not let configure the HttpClientBuilder and from Spring Boot main method.
How could we get the clientOptions and SslConfiguration which necessitate to inject VaultProperties.
This is a code i have done, do you have a better way before wait for the change apply in new spring vault core version about visibility of HttpComponents ?
Here is the code i have done :
there are some missing parts, how inject VaultProperties data to configure the ClientOption and SslConfiguration before run the application as you its done in spring vault ?
I will need to use multiple properties from spring configuration application as value of connectionTimeToLive, retry flag, .. and retrieve these properties does not seem be possible because spring context is not yes defined
Thank you.
The text was updated successfully, but these errors were encountered: