You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cd01138
Browse filesBrowse the repository at this point in the historyBrowse files
fix(auth): keep explicit-root operations isolated through activation and rollback (#131519)
* fix(auth): keep explicit state roots isolated through activation
Carry canonical local and shared store ownership through persistence, publication, secrets activation, and rollback. Preserve newer local bookkeeping without importing credentials or migration state from another root.
Fixes#131366.
* fix(auth): defer alias discovery until profile ordering needs it
Keep config-only auth profile staging independent of unrelated plugin state while preserving canonical alias ordering and mixed-mode promotion. Cover isolated mock staging against future and invalid outer stores.
* test(secrets): verify cold profiles omit credential fields
Copy file name to clipboardExpand all lines: docs/auth-credential-semantics.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,8 @@ Non-portable profiles remain available through the shared read-through base unle
61
61
62
62
`openclaw agent exec` preserves the original shared-store root when switching to temporary run state. Its bounded credential scope reads portable `api_key` and `token` profiles from that shared store without persisting copies; the configured agent's local profiles still win. Shared OAuth profiles are excluded from this temporary scope, even with `copyToAgents: true`, so the run does not acquire another refresh owner. `--auth-env-only` disables stored credential access entirely.
63
63
64
+
Auth writes that explicitly select a state directory, including isolated QA staging, use that directory's shared store for ownership and OAuth deduplication. Their runtime publication and rollback retain the same owner; another process-local state root is not an inherited base. An unrelated outer database may be older, newer, or unreadable without blocking an isolated write, but an unreadable or newer database in the selected target still fails closed. Writes without an explicit state directory retain the normal ambient state and agent-directory configuration.
65
+
64
66
## Config-only auth routes
65
67
66
68
`auth.profiles` entries with `mode: "aws-sdk"` are routing metadata, not stored credentials. They are valid when the target provider uses `models.providers.<id>.auth: "aws-sdk"`, the route the plugin-owned Amazon Bedrock setup writes. These profile ids may appear in `auth.order` and session overrides even when no matching entry exists in the credential store.
0 commit comments