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 script + test #1756

Merged
merged 1 commit into from
Apr 15, 2024
Merged

Conversation

katebygrace
Copy link
Contributor

@katebygrace katebygrace commented Apr 11, 2024

This PR

  • Fixes the secrets-manager script so you can either call it with -w or --whole_file to get the whole secret file (for private keys)
  • Adds it into the refresh snowpipe job as a place to test, calling the actual private keys/passphrase from secrets maanager and not just providing the path.

@katebygrace katebygrace force-pushed the katebygrace/fix-secrets-manager-script branch from d5feabf to bb30682 Compare April 11, 2024 15:27
--key_path $WORKSPACE/analytics-secure/$KEY_PATH \
--passphrase_path $WORKSPACE/analytics-secure/$PASSPHRASE_PATH \
--user $USER \
--user 'SNOWPIPE' \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to do this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nah, but we arent going to call the extra_vars unless we really need to, so i replaced all of the vars

--schema $SCHEMA \
--account $ACCOUNT \
--account 'edx.us-east-1' \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the user, I think we can leave that as is.

@katebygrace
Copy link
Contributor Author

add a comment on how to call it

@katebygrace katebygrace merged commit 1af59b6 into master Apr 15, 2024
3 checks passed
@katebygrace katebygrace deleted the katebygrace/fix-secrets-manager-script branch April 15, 2024 20:12
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.

2 participants