teamcity-hashicorp-vault-plugin
teamcity-hashicorp-vault-plugin copied to clipboard
Fetch client_id AND client_secret from Azure Secret backend
Using the Teamcity plugin I am trying to login to azure using a dynamic service principal however it does not seem possible because it needs to return two parameters : "client_id" and "client_secret"
I tried to do :
%vault:azure/creds/role1!/client_id% %vault:azure/creds/role1!/client_secret%
in two different parameters. But it generates two service principals. I tried to concatenate it in one like so "%vault:azure/creds/role1!/client_id%,%vault:azure/creds/role1!/client_secret%" but it did the same thing. I tried to read this path instead "%vault:azure/creds/role1%" but it did not return anything and returned an error.
Is what I'm trying to do something possible or I am completely on the wrong track ?
Thank you :)