Azure CI/CD with Client Credentials

Hi,

I’m wondering if there is a way to store client ID and secret when you are running your test in azure pipeline? Now all is stored in profile but that’s not highly recommended because of security. I want to fetch the client credentials from keyvault if possible ?

Thanks for all help.

Br
Henrik

hi,

you can use .yaml or .properties files for those id’s


https://mkyong.com/java/java-properties-file-examples/
Or
if you will to use crypto values then you can use Java Secure Hashing

Hi,

I can’t decrypt or encrypt because i store the secret key in the code. Read from Yaml or properties are not an option for us. Do you have any example of fetching the client credentials from keyvault in azure? Is that possible even?

Br
Henrik Bjerkelund

hi,

never used this kind of “keyvault in azure”
and you are not able to save your secrets in somewhere else?