feat(adbc): add ADBC Snowflake Auth Related #24118
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
jwt_private_keytojwt_private_key_pathfor clarity.jwt_private_key_pkcs8_valueandjwt_private_key_pkcs8_passwordto support additional JWT authentication methods.I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Checklist
Manual Test Results
Conclusion: the sdk can work with Key Pair Auth
Setup
On snowflake side (for
MYDB.PUBLIC.ALL_TYPES_DEMO)Test On RW Side
Not enough privilege
Protocol error: Failed to create connection: IO: [Snowflake] 390201 (08004): The requested schema does not exist or not authorized. (sqlstate: [48, 56, 48, 48, 52], vendor_code: 390201)PKCS#1
adbc_snowflake.jwt_private_key_pkcs8_password, but will be ignoredNeed to provide both
adbc_snowflake.jwt_private_key_pkcs8_valueandadbc_snowflake.jwt_private_key_pkcs8_password.Otherwise will get
Protocol error: Failed to build database: InvalidArguments: adbc.snowflake.sql.client_option.jwt_private_key_pkcs8_password is not configured (sqlstate: [0, 0, 0, 0, 0], vendor_code: -2147483648)Summary
BEGIN RSA PRIVATE KEY), pass toadbc_snowflake.jwt_private_key_pathas file path.BEGIN PRIVATE KEYorBEGIN ENCRYPTED PRIVATE KEY), pass toadbc_snowflake.jwt_private_key_pkcs8_valueas raw bytes.Documentation
Release note