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

SNOW-1758365 Update README.md to include instructions on how to verify package signatures using cosign. #574

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions DESCRIPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Snowflake Documentation is available at:

Source code is also available at:
<https://github.com/snowflakedb/snowflake-sqlalchemy>
# Unreleased Notes
- Update README.md to include instructions on how to verify package signatures using cosign.

# Release Notes
- v1.7.3(January 15, 2025)
Expand Down
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,28 @@ dynamic_test_table_1 = DynamicTable(
- Direct data insertion into Dynamic Tables is not supported.


## Verifying Package Signatures

To ensure the authenticity and integrity of the Python package, follow the steps below to verify the package signature using `cosign`.

**Steps to verify the signature:**
- Install cosign:
- This example is using golang installation: [installing-cosign-with-go](https://edu.chainguard.dev/open-source/sigstore/cosign/how-to-install-cosign/#installing-cosign-with-go)
- Download the file from the repository like pypi:
- https://pypi.org/project/snowflake-sqlalchemy/#files
- Download the signature files from the release tag, replace the version number with the version you are verifying:
- https://github.com/snowflakedb/snowflake-sqlalchemy/releases/tag/v1.7.3
- Verify signature:
````bash
# replace the version number with the version you are verifying
./cosign verify-blob snowflake_sqlalchemy-1.7.3-py3-none-any.whl \
--certificate snowflake_sqlalchemy-1.7.3-py3-none-any.whl.crt \
--certificate-identity https://github.com/snowflakedb/snowflake-sqlalchemy/.github/workflows/python-publish.yml@refs/tags/v1.7.3 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--signature snowflake_sqlalchemy-1.7.3-py3-none-any.whl.sig
Verified OK
````

## Support

Feel free to file an issue or submit a PR here for general cases. For official support, contact Snowflake support at:
Expand Down
Loading