File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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} "
You can’t perform that action at this time.
0 commit comments