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: fix secrets #1774

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
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
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
Loading