mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
CI: Remove fetching of bearer auth token from vault (#48)
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
parent
d614e57875
commit
dbcde74724
2 changed files with 2 additions and 4 deletions
|
@ -33,8 +33,7 @@ $env:Path += ";$VaultExtractPath"
|
|||
echo "--- vault version installed is:"
|
||||
vault version
|
||||
|
||||
echo "--- fetching Licensing API Keys from vault"
|
||||
$Env:CHEF_LICENSE_SERVER_API_KEY=vault kv get -field acceptance secret/inspec/licensing/api-key
|
||||
echo "--- fetching License serverl url and keys from vault"
|
||||
$Env:CHEF_LICENSE_SERVER=vault kv get -field acceptance secret/inspec/licensing/server
|
||||
$Env:CHEF_LICENSE_KEY=vault kv get -field acceptance secret/inspec/licensing/license-key
|
||||
|
||||
|
|
|
@ -27,8 +27,7 @@ export VAULT_HOME=$HOME/vault
|
|||
curl --create-dirs -sSLo $VAULT_HOME/vault.zip https://releases.hashicorp.com/vault/$VAULT_VERSION/vault_${VAULT_VERSION}_linux_amd64.zip
|
||||
unzip -o $VAULT_HOME/vault.zip -d $VAULT_HOME
|
||||
|
||||
echo "--- fetching Licensing API Keys from vault"
|
||||
export CHEF_LICENSE_SERVER_API_KEY=$($VAULT_HOME/vault kv get -field acceptance secret/inspec/licensing/api-key)
|
||||
echo "--- fetching License serverl url and keys from vault"
|
||||
export CHEF_LICENSE_SERVER=$($VAULT_HOME/vault kv get -field acceptance secret/inspec/licensing/server)
|
||||
export CHEF_LICENSE_KEY=$($VAULT_HOME/vault kv get -field acceptance secret/inspec/licensing/license-key)
|
||||
if [ -n "${CHEF_LICENSE_KEY:-}" ]; then
|
||||
|
|
Loading…
Reference in a new issue