Skip to content

Commit 343cc4b

Browse files
authored
SNOW-1862674: update readme for signature verification (#2124)
1 parent 1dc673f commit 343cc4b

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

DESCRIPTION.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Source code is also available at: https://github.com/snowflakedb/snowflake-conne
1111
- v3.12.5(TBD)
1212
- Added a feature to limit the sizes of IO-bound ThreadPoolExecutors during PUT and GET commands.
1313
- Adding support for the new PAT authentication method.
14+
- Updated README.md to include instructions on how to verify package signatures using `cosign`.
1415

1516
- v3.12.4(December 3,2024)
1617
- Fixed a bug where multipart uploads to Azure would be missing their MD5 hashes.

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,26 @@ conn = snowflake.connector.connect(
8282
conn.telemetry_enabled = False
8383
```
8484

85+
## Verifying Package Signatures
86+
87+
To ensure the authenticity and integrity of the Python package, follow the steps below to verify the package signature using `cosign`.
88+
89+
**Steps to verify the signature:**
90+
- Install cosign:
91+
- 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)
92+
- Download the file from the repository like pypi:
93+
- https://pypi.org/project/snowflake-connector-python/#files
94+
- Download the signature files from the release tag, replace the version number with the version you are verifying:
95+
- https://github.com/snowflakedb/snowflake-connector-python/releases/tag/v3.12.2
96+
- Verify signature:
97+
````bash
98+
# replace the version number with the version you are verifying
99+
./cosign verify-blob snowflake_connector_python-3.12.2.tar.gz \
100+
--key snowflake-connector-python-v3.12.2.pub \
101+
--signature resources.linux.snowflake_connector_python-3.12.2.tar.gz.sig
102+
103+
Verified OK
104+
````
85105

86106
## NOTE
87107

0 commit comments

Comments
 (0)