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

Load private key from env variable #1552

Merged
merged 2 commits into from
Sep 12, 2024
Merged

Conversation

sfc-gh-astus
Copy link
Collaborator

Pre-review checklist

  • I've confirmed that instructions included in README.md are still correct after my changes in the codebase.
  • I've added or updated automated unit tests to verify correctness of my new code.
  • I've added or updated integration tests to verify correctness of my new code.
  • I've confirmed that my changes are working by executing CLI's commands manually on MacOS.
  • I've confirmed that my changes are working by executing CLI's commands manually on Windows.
  • I've confirmed that my changes are up-to-date with the target branch.
  • I've described my changes in the release notes.
  • I've described my changes in the section below.

Changes description

Added new env variable to load private key directly from env.

@sfc-gh-astus sfc-gh-astus requested a review from a team as a code owner September 10, 2024 13:22
@sfc-gh-astus sfc-gh-astus force-pushed the load-private-key-from-env branch 4 times, most recently from 7023113 to d7613ff Compare September 11, 2024 14:42
CONTRIBUTING.md Outdated
Comment on lines 85 to 87
- `SNOWFLAKE_CONNECTIONS_INTEGRATION_PRIVATE_KEY_FILE` (Preferable)
- `SNOWFLAKE_CONNECTIONS_INTEGRATION_PRIVATE_KEY_PATH` (Alternative)
- `SNOWFLAKE_CONNECTIONS_INTEGRATION_PRIVATE_KEY_RAW` (Loads the private key directly from the environment variable)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should be only RAW

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

RELEASE-NOTES.md Outdated
@@ -22,6 +22,7 @@

## New additions
* Added templates expansion of arbitrary files for Native Apps through `templates` processor.
* Added `SNOWFLAKE_..._PRIVATE_KEY_RAW` environment variable to pass private key as a raw string.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should I add this? This is only int tests thing.

@sfc-gh-turbaszek sfc-gh-turbaszek merged commit fdb1cb0 into main Sep 12, 2024
20 of 21 checks passed
@sfc-gh-turbaszek sfc-gh-turbaszek deleted the load-private-key-from-env branch September 12, 2024 07:41
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