-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Make KeyVaultJcaProvider can work when keyvault-uri is not set. #22488
Make KeyVaultJcaProvider can work when keyvault-uri is not set. #22488
Conversation
chenrujun
commented
Jun 24, 2021
- Make KeyVaultJcaProvider can work when keyvault-uri is not set.
- Delete unused property: azure.keyvault.aad-authentication-url
- Reuse the code in test.
- Rename KeyVaultProperties to AzureKeyVaultProperties.
- Add AzureCertPathProperties.
2. Delete unused property: azure.keyvault.aad-authentication-url 3. Reuse the code in test. 4. Rename KeyVaultProperties to AzureKeyVaultProperties. 5. Add AzureCertPathProperties.
Hi, @lzc-1997-abel . |
/azp run java - spring - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/check-enforcer override |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* @see <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-configuration-metadata.html">Metadata</a> | ||
*/ | ||
@EnableConfigurationProperties({ AzureCertPathProperties.class }) | ||
@ConfigurationProperties("azure.cert-path") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should discuss this property name, azure.cert-path.custom
seems not a clear name to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current property name is the conclusion discussed with @gavinfish
Refs: #21611 (comment)
return; | ||
} | ||
|
||
putEnvironmentPropertyToSystemProperty(environment, "azure.keyvault.aad-authentication-url"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest to add a warning message in log to warn users still having this property configed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's not necessary, because:
- If customer use
azure-spring-boot-starter-keyvault-certificates
,azure.keyvault.aad-authentication-url
never exist inKeyVaultProperties.java
, so customer never know this property exists.
- If customer use
azure-security-keyvault-jca
, this already written in changelog:
@@ -27,11 +27,6 @@ | |||
@Override | |||
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) { | |||
|
|||
if (environment.getProperty("azure.keyvault.uri") == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any side effect with this remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No side effect, I think.