Open chetan-dua opened 1 year ago
Server Version: TeamCity Professional 2022.10.3 (build 117072) jetbrains/teamcity-server:2022.10.3 (docker image ID: c0edf4d5ae59)
Vault plugin version: 0.1.119 Agent: jetbrains/teamcity-agent (docker image ID: 45f54a688267)
Documentation referred:
Steps to reproduce:
#!/bin/bash echo SECRET=${SECRET}
Expected Output SECRET="ActualSecrethere"
Actual Output: SECRET=%vault:devops/data/api-keys!/devops-na!/secret%
This is same as variable value itself.
Other options tried:
Build Log:
[07:50:57] : [Step 1/1] Starting: /opt/buildagent/temp/agentTmp/custom_script4451755130190608596 [07:50:57] : [Step 1/1] in directory: /opt/buildagent/work/2b35ac7e0452d98f [07:50:57] : [Step 1/1] VAULT_SUPPORTED=true [07:50:57] : [Step 1/1] SECRET=%vault:devops/data/api-keys!/devops-na!/secret% [07:50:57] : [Step 1/1] AWS_SECRET=%vault:aws/data/creds/developer!/access_key% [07:50:57] : [Step 1/1] Process exited with code 0 [07:50:57] : Publishing internal artifacts
I have read other reported issues in this repo already and the options haven't helped much.
Note that using vault utility on bash works fine though.
Try %vault:devops/data/api-keys!/devops-na/secret%, note that there's only one !/
%vault:devops/data/api-keys!/devops-na/secret%
!/
Server Version: TeamCity Professional 2022.10.3 (build 117072) jetbrains/teamcity-server:2022.10.3 (docker image ID: c0edf4d5ae59)
Vault plugin version: 0.1.119 Agent: jetbrains/teamcity-agent (docker image ID: 45f54a688267)
Documentation referred:
Steps to reproduce:
Expected Output SECRET="ActualSecrethere"
Actual Output: SECRET=%vault:devops/data/api-keys!/devops-na!/secret%
This is same as variable value itself.
Other options tried:
Build Log:
I have read other reported issues in this repo already and the options haven't helped much.
Note that using vault utility on bash works fine though.