Skip to content

Commit

Permalink
SNOW-1862674: update readme for signature verification (#2124)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-aling authored Dec 18, 2024
1 parent 1dc673f commit 343cc4b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Source code is also available at: https://github.com/snowflakedb/snowflake-conne
- v3.12.5(TBD)
- Added a feature to limit the sizes of IO-bound ThreadPoolExecutors during PUT and GET commands.
- Adding support for the new PAT authentication method.
- Updated README.md to include instructions on how to verify package signatures using `cosign`.

- v3.12.4(December 3,2024)
- Fixed a bug where multipart uploads to Azure would be missing their MD5 hashes.
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,26 @@ conn = snowflake.connector.connect(
conn.telemetry_enabled = False
```

## 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-connector-python/#files
- Download the signature files from the release tag, replace the version number with the version you are verifying:
- https://github.com/snowflakedb/snowflake-connector-python/releases/tag/v3.12.2
- Verify signature:
````bash
# replace the version number with the version you are verifying
./cosign verify-blob snowflake_connector_python-3.12.2.tar.gz \
--key snowflake-connector-python-v3.12.2.pub \
--signature resources.linux.snowflake_connector_python-3.12.2.tar.gz.sig

Verified OK
````

## NOTE

Expand Down

0 comments on commit 343cc4b

Please sign in to comment.