Repository navigation
Conversation
Draft RFC 0019 for splitting credential storage and token refresh out of the gateway into a credential issuer with separate CredentialStore, CredentialRefresh, and TokenMinter contracts, and mTLS between the gateway and a remote issuer. Refs ai-openshell#4358 Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
Store gateway-internal secrets in the issuer with explicit owner kinds, describe the library crate and service binary that provide embedded and remote modes, and record the persistence extraction decision. Refs ai-openshell#4358 Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
|
RFC numbering heads-up: this RFC currently uses 0019, which is already taken by the repository migration RFC (#4426). 0020 (#4564) and 0021 (#4721) are also in use, and 0022 has just been assigned to #5200. This RFC should probably use 0023, which means renaming the folder to |
RFC 0019 through 0022 are already assigned to other proposals. Refs ai-openshell#4358 Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
Decide the issuer persistence question: the issuer defines a secret object store and a refresh-state store, implemented by gateway adapters in embedded mode and by the issuer binary in remote mode, with shared contract tests. Refs ai-openshell#4358 Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
Replace automatic first-start migration with operator opt-in activation behind enable_versioned_credentials, and record the rules activation must follow: validate every record before the first incompatible write, mark the boundary durably, allow abandoning a failed preparation, and make rollback explicit. Turn embedded-to-remote conversion into an open question, since ai-openshell#5315 proposes choosing the issuer mode at initial deployment. Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
|
This pull request has had no activity for 14 days and is now marked stale. |
|
Clean split between storage/refresh and delivery. Looking at how an out-of-band operator approval / CIBA login extension (e.g., signed short-lived operator grants or OAuth device/CIBA flows, which Non-goals defers to a follow-on extension) would build on
Happy to prototype a CIBA / signed-operator-grant |
Summary
Draft RFC 0023 proposes splitting credential storage and token refresh out of the gateway into a credential issuer. The issuer can run embedded (the default) or as a remote service on another cluster. The gateway keeps provider semantics, workspace authorization, and delivery to supervisors.
Related Issue
Refs #4358
This RFC covers the storage, refresh minting, and stale-credential reporting parts of #4358. Interactive OAuth login flows are listed as a non-goal and an open question, so this PR does not close the issue. The RFC number is 0023 because 0019 through 0022 are already assigned.
Changes
rfc/0023-credential-issuer-service/README.mdindraftstate.CredentialStore(put, delete, and batch resolve with versions and cache TTL),CredentialRefresh(refresh grants), andTokenMinter(stateless plugins for custom refresh strategies).Release Notes
Testing
mise run markdown:lint: Markdown and Mermaid lint)The local pre-commit hook was skipped for this commit. Its Rust lockfile check fails locally because of an sccache error, on lockfiles this PR does not change.
Checklist