8000 [gitlab] Get secrets from vault by nhulston · Pull Request #620 · DataDog/datadog-lambda-js · GitHub
[go: up one dir, main page]

Skip to content
8000

[gitlab] Get secrets from vault #620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions .gitlab/scripts/get_secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,11 @@ fi

printf "Getting AWS External ID...\n"

EXTERNAL_ID=$(aws ssm get-parameter \
--region us-east-1 \
--name "ci.datadog-lambda-js.$EXTERNAL_ID_NAME" \
--with-decryption \
--query "Parameter.Value" \
--out text)
EXTERNAL_ID=$(vault kv get -field=$EXTERNAL_ID_NAME kv/k8s/gitlab-runner/datadog-lambda-js/secrets)

printf "Getting DD API KEY...\n"

export DD_API_KEY=$(aws ssm get-parameter \
--region us-east-1 \
--name ci.datadog-lambda-js.dd-api-key \
--with-decryption \
--query "Parameter.Value" \
--out text)
export DD_API_KEY=$(vault kv get -field=dd-api-key kv/k8s/gitlab-runner/datadog-lambda-js/secrets)

printf "Assuming role...\n"

Expand Down
Loading
0