Skip to content

Fix concurrent credential saves losing updates - #192

Open
Liam-Doodson wants to merge 6 commits into
mainfrom
fix/concurrent-save-data-loss
Open

Fix concurrent credential saves losing updates#192
Liam-Doodson wants to merge 6 commits into
mainfrom
fix/concurrent-save-data-loss

Conversation

@Liam-Doodson

@Liam-Doodson Liam-Doodson commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixed a bug where removing and re-adding a credential with the same name within a single process could silently lose the re-added credential. Credential mutations (add, remove, set-default, token update/clear) now read the credentials file fresh, apply their one change, and write back immediately, instead of reconciling a cached snapshot against disk.

Impact

Users adding, removing, or updating credentials will no longer see a credential silently disappear when a remove and a re-add of the same name happen within one process.

@Liam-Doodson
Liam-Doodson force-pushed the fix/concurrent-save-data-loss branch from 0b0a523 to 02aec8d Compare August 20, 2026 15:50
Comment thread common/clicfg/credentials/credentials_test.go Outdated
@Liam-Doodson
Liam-Doodson marked this pull request as ready for review August 21, 2026 15:02
@Liam-Doodson
Liam-Doodson requested a review from a team as a code owner August 21, 2026 15:02
@Liam-Doodson
Liam-Doodson requested a review from risset August 21, 2026 15:02
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