Skip to content

Commit

Permalink
Merge pull request #1774 from edx/katebygrace/fix-secrets-3
Browse files Browse the repository at this point in the history
chore: fix secrets
  • Loading branch information
katebygrace authored Jun 24, 2024
2 parents 3c95da4 + 26d30e1 commit 9fbe06e
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions dataeng/resources/amplitude-properties-backfill.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ python amplitude_user_properties_update.py \
--response_table $RESPONSE_TABLE \
--amplitude_operation_name $AMPLITUDE_OPERATION_NAME \
--amplitude_api_key $API_KEY \
--key_file "$(cat "rsa_key_snowflake_task_automation_user")" \
--passphrase_file "$(cat "rsa_key_passphrase_snowflake_task_automation_user")"
--key_file rsa_key_snowflake_task_automation_user \
--passphrase_file rsa_key_passphrase_snowflake_task_automation_user
rm rsa_key_snowflake_task_automation_user
rm rsa_key_passphrase_snowflake_task_automation_user
4 changes: 2 additions & 2 deletions dataeng/resources/snowflake-collect-metrics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ python collect-metrics.py \
--automation_user $SNOWFLAKE_USER \
--account $SNOWFLAKE_ACCOUNT \
--warehouse $SNOWFLAKE_WAREHOUSE \
--key_file "$(cat "rsa_key_snowflake_task_automation_user")" \
--passphrase_file "$(cat "rsa_key_passphrase_snowflake_task_automation_user")"
--key_file rsa_key_snowflake_task_automation_user \
--passphrase_file rsa_key_passphrase_snowflake_task_automation_user


rm rsa_key_snowflake_task_automation_user
Expand Down
4 changes: 2 additions & 2 deletions dataeng/resources/snowflake-demographics-cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ unset PASSPHRASE_PATH
python demographics_cleanup.py \
--user "STITCH_LOADER" \
--account "edx.us-east-1" \
--key_file "$(cat "rsa_key_stitch_loader")" \
--passphrase_file "$(cat "rsa_key_passphrase_stitch_loader")"
--key_file rsa_key_stitch_loader \
--passphrase_file rsa_key_passphrase_stitch_loader


rm rsa_key_stitch_loader
Expand Down
4 changes: 2 additions & 2 deletions dataeng/resources/snowflake-expire-individual-password.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ python expire_user_passwords.py \
--automation_user 'SNOWFLAKE_TASK_AUTOMATION_USER' \
--account 'edx.us-east-1' \
--user_to_expire $USER_TO_EXPIRE \
--key_file "$(cat "rsa_key_snowflake_task_automation_user")" \
--pass_file "$(cat "rsa_key_passphrase_snowflake_task_automation_user")"
--key_file rsa_key_snowflake_task_automation_user \
--pass_file rsa_key_passphrase_snowflake_task_automation_user


rm rsa_key_snowflake_task_automation_user
Expand Down
4 changes: 2 additions & 2 deletions dataeng/resources/snowflake-expire-passwords.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ python3 secrets-manager.py -w -n analytics-secure/snowflake/rsa_key_passphrase_s
python expire_user_passwords.py \
--automation_user 'SNOWFLAKE_TASK_AUTOMATION_USER' \
--account 'edx.us-east-1' \
--key_file "$(cat "rsa_key_snowflake_task_automation_user")" \
--pass_file "$(cat "rsa_key_passphrase_snowflake_task_automation_user")"
--key_file rsa_key_snowflake_task_automation_user \
--pass_file rsa_key_passphrase_snowflake_task_automation_user

rm rsa_key_snowflake_task_automation_user
rm rsa_key_passphrase_snowflake_task_automation_user
4 changes: 2 additions & 2 deletions dataeng/resources/snowflake-public-grants-cleaner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ unset PASSPHRASE_PATH
python snowflake_public_grants_cleaner.py \
--user "STITCH_LOADER" \
--account "edx.us-east-1" \
--key_file "$(cat "rsa_key_stitch_loader")" \
--passphrase_file "$(cat "rsa_key_passphrase_stitch_loader")"
--key_file rsa_key_stitch_loader \
--passphrase_file rsa_key_passphrase_stitch_loader


rm rsa_key_stitch_loader
Expand Down
4 changes: 2 additions & 2 deletions dataeng/resources/snowflake-refresh-snowpipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ python refresh_snowpipe.py \
--table_name $TABLE_NAME \
--delay $DELAY \
--limit $LIMIT \
--key_file "$(cat "rsa_key_snowpipe_user")" \
--passphrase_file "$(cat "rsa_key_passphrase_snowpipe_user")"
--key_file rsa_key_snowpipe_user \
--passphrase_file rsa_key_passphrase_snowpipe_user

rm rsa_key_snowpipe_user
rm rsa_key_passphrase_snowpipe_user
Expand Down
4 changes: 2 additions & 2 deletions dataeng/resources/stitch-snowflake-lag-monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ python3 secrets-manager.py -w -n analytics-secure/snowflake/rsa_key_passphrase_s
python stitch-snowflake-monitoring.py \
--user "STITCH_LOADER" \
--account "edx.us-east-1" \
--key_file "$(cat "rsa_key_stitch_loader")" \
--passphrase_file "$(cat "rsa_key_passphrase_stitch_loader")"
--key_file rsa_key_stitch_loader \
--passphrase_file rsa_key_passphrase_stitch_loader

rm rsa_key_stitch_loader
rm rsa_key_passphrase_stitch_loader

0 comments on commit 9fbe06e

Please sign in to comment.