Skip to content

Use single keyring service name with hashed account keys#2833

Open
sfc-gh-mborins wants to merge 1 commit intomainfrom
mborins/unified-keyring-service
Open

Use single keyring service name with hashed account keys#2833
sfc-gh-mborins wants to merge 1 commit intomainfrom
mborins/unified-keyring-service

Conversation

@sfc-gh-mborins
Copy link
Copy Markdown
Contributor

  1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Fixes #NNNN

  2. Fill out the following pre-review checklist:

    • I am adding a new automated test(s) to verify correctness of my new code
    • I am adding new logging messages
    • I am adding a new telemetry message
    • I am modifying authorization mechanisms
    • I am adding new credentials
    • I am modifying OCSP code
    • I am adding a new dependency
  3. Please describe how your code solves the related issue.

    Please write a short description of how your code change solves the related issue.

  4. (Optional) PR for stored-proc connector:

KeyringTokenCache previously created a separate keychain item per token type, causing multiple macOS password prompts per auth flow. Consolidate all tokens under a single service name (com.snowflake.connector.python) so they share one Keychain ACL entry. The account field now stores a SHA-256 hash of the key to avoid exposing plaintext host/user in the OS credential store.

Legacy entries are auto-migrated on first read and the old item is deleted.

KeyringTokenCache previously created a separate keychain item per token type,
causing multiple macOS password prompts per auth flow. Consolidate all tokens
under a single service name (com.snowflake.connector.python) so they share one
Keychain ACL entry. The account field now stores a SHA-256 hash of the key to
avoid exposing plaintext host/user in the OS credential store.

Legacy entries are auto-migrated on first read and the old item is deleted.

.... Generated with [Cortex Code](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code)

Co-Authored-By: Cortex Code <noreply@snowflake.com>
@sfc-gh-mborins sfc-gh-mborins requested a review from a team as a code owner March 27, 2026 19:11
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.

1 participant