Skip to content

Commit

Permalink
chore: fix retirement job
Browse files Browse the repository at this point in the history
JIRA:CLOUDSEC-12
  • Loading branch information
katebygrace committed Jun 26, 2024
1 parent 9fbe06e commit bfb1166
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions dataeng/resources/snowflake-user-retirement-status-cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ source "${PYTHON_VENV}/bin/activate"
cd $WORKSPACE/analytics-tools/snowflake
make requirements

source secrets-manager.sh analytics-secure/job-configs/SNOWFLAKE_USER_RETIREMENT_STATUS_CLEANUP_JOB_EXTRA_VARS KEY_PATH
source secrets-manager.sh analytics-secure/job-configs/SNOWFLAKE_USER_RETIREMENT_STATUS_CLEANUP_JOB_EXTRA_VARS PASSPHRASE_PATH
source secrets-manager.sh analytics-secure/job-configs/SNOWFLAKE_USER_RETIREMENT_STATUS_CLEANUP_JOB_EXTRA_VARS USER
source secrets-manager.sh analytics-secure/job-configs/SNOWFLAKE_USER_RETIREMENT_STATUS_CLEANUP_JOB_EXTRA_VARS ACCOUNT
python3 secrets-manager.py -w -n analytics-secure/snowflake/rsa_key_stitch_loader.p8 -v rsa_key_stitch_loader
python3 secrets-manager.py -w -n analytics-secure/snowflake/rsa_key_passphrase_stitch_loader -v rsa_key_passphrase_stitch_loader

python retirement_cleanup.py \
--key_path $WORKSPACE/analytics-secure/$KEY_PATH \
--passphrase_path $WORKSPACE/analytics-secure/$PASSPHRASE_PATH \
--user $USER \
--account $ACCOUNT
--account $ACCOUNT \
--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 bfb1166

Please sign in to comment.