[BUG] Static way of using Azure key vault #23591
Labels
azure-spring
All azure-spring related issues
azure-spring-jca
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
KeyVault
Service
This issue points to a problem in the service.
Milestone
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Every time I need use Azure key vault key store, for example, I want to program an https web client. I have to program like this:
This means 1 My code can only work with Azure key vault key store in runtime. 2 I have to code for Azure key vault. All are frustrating!
Describe the solution you'd like
A clear and concise description of what you want to happen.
My code has nothing to do with Azure key vault key store in development.
For example, the above code is changed to remain like this:
This code can work with Azure key vault key store in runtime if I run my code via command line and add proper system properties via -D. So please support the static way of using Azure Key vault key store. Please refer to https://docs.oracle.com/javase/8/docs/technotes/guides/security/crypto/CryptoSpec.html#ProviderInstalling
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I tried to my code via command line to connect an https web server that uses key vault key store:
java --module-path ./azure-security-keyvault-jca-2.0.0-beta.1.jar --add-modules com.azure.security.keyvault.jca -Dsecurity.overridePropertiesFile=true -Djava.security.properties==./java.security -Djavax.net.ssl.trustStoreType=AzureKeyVault -Dazure.keyvault.uri=<mykeyvaultURI> -Dazure.keyvault.tenant-id=<myTeanantID> -Dazure.keyvault.client-id=<myClientID> -Dazure.keyvault.client-secret=<mySecretValue> MyCodeMainClass
. But i got the following dead loop:Additional context
Add any other context or screenshots about the feature request here.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: