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

Katebygrace/snowflake expire jobs secretsmanager #1762

Merged
merged 1 commit into from May 17, 2024

Conversation

katebygrace
Copy link
Contributor

@katebygrace katebygrace commented May 8, 2024

Remove calls to other secrets manager scripts in jenkins

Remove calls to secrets manager scripts in shell script
Check and remove the key_path and passphrase_path
Run python script x2
Change calls to python script to include key_file and passphrase_file (note slashes)
rm files

Review vars in analytics secure if there are any others that need to be set



job-configs/SNOWFLAKE_EXPIRE_PASSWORDS_JOB_EXTRA_VARS.yaml

The following two variables are paths to the clone of analytics-secure in a Jenkins workspace, relative to where the expire_user_passwords script is being invoked.

KEY_PATH: '$WORKSPACE/analytics-secure/snowflake/rsa_key_snowflake_task_automation_user.p8'
PASSPHRASE_PATH: '$WORKSPACE/analytics-secure/snowflake/rsa_key_passphrase_snowflake_task_automation_user'
USER: 'SNOWFLAKE_TASK_AUTOMATION_USER'
ACCOUNT: 'edx.us-east-1'

job executes on the 3rd of every 3rd month.

JOB_FREQUENCY: "H H 3 */3 *"
SECURE_BRANCH: 'origin/master'

@katebygrace katebygrace changed the base branch from master to katebygrace/fix-refresh-job May 8, 2024 21:20
@katebygrace katebygrace changed the title Katebygrace/snowflake jobs secretsmanager Katebygrace/snowflake expire jobs secretsmanager May 9, 2024
@katebygrace katebygrace force-pushed the katebygrace/snowflake-jobs-secretsmanager branch from 4fdb208 to 82f3ade Compare May 9, 2024 18:59
Base automatically changed from katebygrace/fix-refresh-job to master May 17, 2024 19:51
@katebygrace katebygrace force-pushed the katebygrace/snowflake-jobs-secretsmanager branch from 82f3ade to 3a01db1 Compare May 17, 2024 20:57
@katebygrace katebygrace merged commit bccebdb into master May 17, 2024
3 checks passed
@katebygrace katebygrace deleted the katebygrace/snowflake-jobs-secretsmanager branch May 17, 2024 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants