From bfb11665420cc0bd3bf608fc377cc9fe098b385a Mon Sep 17 00:00:00 2001 From: katebygrace Date: Wed, 26 Jun 2024 13:59:58 -0400 Subject: [PATCH] chore: fix retirement job JIRA:CLOUDSEC-12 --- .../snowflake-user-retirement-status-cleanup.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/dataeng/resources/snowflake-user-retirement-status-cleanup.sh b/dataeng/resources/snowflake-user-retirement-status-cleanup.sh index b4507b93e..9e535703c 100644 --- a/dataeng/resources/snowflake-user-retirement-status-cleanup.sh +++ b/dataeng/resources/snowflake-user-retirement-status-cleanup.sh @@ -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