teamcity-hashicorp-vault-plugin icon indicating copy to clipboard operation
teamcity-hashicorp-vault-plugin copied to clipboard

Fetch client_id AND client_secret from Azure Secret backend

Open benjamin-rousseau-shift opened this issue 3 years ago • 0 comments

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 :)

benjamin-rousseau-shift avatar Jan 31 '22 18:01 benjamin-rousseau-shift