feat(providers): store refresh credentials in credential drivers - #2801
Open
mrunalp wants to merge 3 commits into
Open
feat(providers): store refresh credentials in credential drivers#2801mrunalp wants to merge 3 commits into
mrunalp wants to merge 3 commits into
Conversation
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
mrunalp
requested review from
a team,
derekwaynecarr and
sjenning
as code owners
August 19, 2026 00:32
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
|
Label |
Collaborator
Author
|
/ok to test 0541d45 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Store provider refresh secrets through the gateway's active credential driver instead of embedding them in refresh-state records. This keeps OAuth refresh tokens, client secrets, service-account private keys, temporary AWS source credentials, and minted access tokens behind driver-owned handles while preserving the existing refresh CLI workflow.
Related Issue
Closes #2797
Changes
Testing
mise run pre-commitpassesmise run cipassesgogand OpenClawThe manual E2E used a loopback-only Vault 1.20.4 dev container and an isolated Podman gateway. Existing refresh inputs migrated into Vault, forced rotation succeeded without accumulating stale access-token objects, the Gmail probe succeeded before and after rotation, and OpenClaw returned
EMAIL_ACCESS_OKwithout receiving the refresh token.Checklist