Skip to content

Commit dcb3fed

Browse files
committed
new vault token for tests
1 parent 47793e7 commit dcb3fed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gocd/pipeline.gocd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pipelines:
77
git:
88
type: configrepo
99
secure_variables:
10-
VAULT_TOKEN: "AES:cfOqIgg44MdPN15Nj5T1pg==:hME/TpUAo6d2E9DjQI/iEjQzf2i0+Cswp5YCZX6Oz3YA1gVGwzTh1vDRM22StcQV"
10+
VAULT_TOKEN: "AES:xoiDEkXQTL3ZExKW5T7CHQ==:0k/Yc7eHxhkcwFwAKRup/vS2+lql1t5m2Cfbe7K7oTgWg4NjbHOYvmD3M/sdWV4H"
1111
stages:
1212
- test:
1313
clean_workspace: true

tasks

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ case "${command}" in
6565
--file secret-ops.tar.gz
6666
;;
6767
generate_vault_token)
68-
vault_token=$(vault token create -ttl=48h -policy=gocd -field token -metadata gocd_renew=true)
68+
vault_token=$(vault token create -orphan -ttl=48h -policy=gocd -field token -metadata gocd_renew=true)
6969
secured_token_gocd=$(secret_ops::encrypt_with_gocd_top "${vault_token}")
7070
echo "Generated token: ${vault_token} and encrypted by GoCD server"
7171
secret_ops::insert_vault_token_gocd_yaml "${secured_token_gocd}"

0 commit comments

Comments
 (0)