Skip to content

fix(credentials): fall back on native store misses - #457

Merged
jdodson merged 4 commits into
mainfrom
jbd_credential_store_not_found_fix
Nov 5, 2026
Merged

jdodson merged 4 commits into
mainfrom
jbd_credential_store_not_found_fix

Conversation

@jdodson

@jdodson jdodson commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Logs surfaced credential lookup errors when no matching credential existed in the native store. GUS ticket W-24157168 tracks the fix: treat confirmed misses as absent credentials and continue to .netrc, while keeping genuine store failures reportable.

WHY

A missing credential in the native OS store is expected for users who authenticate through .netrc or another existing source. Treating that miss as a failure creates misleading monitoring events and obscures genuine credential-store problems.

WHAT

  • Treat confirmed missing credentials as absent on Linux, macOS, and Windows, without reporting them to monitoring.
  • Preserve the synchronous credential-handler API and existing .netrc fallback.
  • Keep genuine store failures reportable. On Linux, a locked match remains an error even when unlocked matches also exist; skip secret lookup in that case.
  • Add regression coverage for misses, fallback, telemetry, and Linux keyring outcomes.

Type of Change

Breaking Changes (major semver update)

  • Add a ! after your change type to denote a change that breaks current behavior

Feature Additions (minor semver update)

  • feat: Introduces a new feature to the codebase

Patch Updates (patch semver update)

  • fix: Bug fix
  • deps: Dependency upgrade
  • revert: Revert a previous commit
  • chore: Change that does not affect production code
  • refactor: Refactoring existing code without changing behavior
  • test: Add/update/remove tests

Testing

CI should suffice

Screenshots (if applicable)

Related Issues

GUS work item: https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07EE00002kRaVmYAK/view

@jdodson
jdodson requested a review from a team as a code owner November 3, 2026 00:48
breaking synchronous callers. Restrict child environments and redact
unsafe Windows credential diagnostics. Add fallback and privacy tests.
confirmed absence to fall back to .netrc without telemetry.
Preserve the synchronous handler API and prioritize locked Linux matches.
Comment thread package.json Resolved
@jdodson
jdodson merged commit ce8004d into main Nov 5, 2026
16 checks passed
@jdodson
jdodson deleted the jbd_credential_store_not_found_fix branch November 5, 2026 23:35
@eablack eablack mentioned this pull request Nov 13, 2026
1 of 7 tasks
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.

2 participants