Skip to content
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

chore: Use secrets manager to pull decryption keys. #1789

Merged
merged 1 commit into from
Nov 7, 2024
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
6 changes: 1 addition & 5 deletions dataeng/resources/remote-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@ for DEPLOYMENT in edx edge; do
# First, fetch the decryption key for the given deployment.
#
# FYI: in bash, double carets after a variable name capitalizes the string.
vault kv get \
-version=${REMOTE_CONFIG_DECRYPTION_KEYS_VAULT_KV_VERSION} \
-field=PROD_${DEPLOYMENT^^}_PRIVATE_KEY \
${REMOTE_CONFIG_DECRYPTION_KEYS_VAULT_KV_PATH} \
>${DECRYPTION_KEY_PATH}
aws secretsmanager get-secret-value --secret-id remote-config/prod-decryption-keys --region us-east-1 --query SecretString --output text | jq -r ".PROD_${DEPLOYMENT^^}_PRIVATE_KEY" >${DECRYPTION_KEY_PATH}

# Now that we have the decryption key, decrypt lms and studio configs:
asym_crypto_yaml decrypt-encrypted-yaml \
Expand Down
Loading