pvillard31 commented on PR #11963: URL: https://github.com/apache/nifi/pull/11963#issuecomment-7109374326
Thanks @dan-s1, I pushed a commit that addresses what can be addressed with the current versions: - `StandardHashiCorpVaultCommunicationService`: the VaultClient is now built with `VaultClient.builder().requestFactory(...)` instead of a `RestTemplate`. - `StandardTokenRevocationResponseClient`: switched from RestOperations to RestClient. - `ClientRegistrationConfiguration`: replaced `MappingJackson2HttpMessageConverter` with `JacksonJsonHttpMessageConverter`, and added the Jackson 3 jackson-databind dependency to nifi-web-security. The remaining RestTemplate/RestOperations warnings in `nifi-web-security` can't be removed yet. Spring Security 7.2.0 still only accepts `RestOperations` in `NimbusJwtDecoder.withJwkSetUri(...).restOperations(...)` for retrieving the JWK Set, and in `DefaultOAuth2UserService.setRestOperations(...)` for the user info request. Upstream is tracking this in spring-projects/spring-security#19027 and #18832. The alternative would be for NiFi to implement its own JWK Set retrieval and caching, and its own user info service. I'd rather not take on that security-sensitive code, so I suggest we keep these until Spring Security offers RestClient alternatives. There is also a non-removal [deprecation] warning in HashiCorpVaultConfiguration for getRestTemplateFactory(). In Spring Vault 4.1.2, the authentication methods in EnvironmentVaultConfiguration are still built from that factory, so the override is still needed to apply NiFi's TLS and timeout settings. That should be resolvable once Spring Vault 4.2.0 is released. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
