feat(egress): intercept OAuth token endpoints and inject stored access tokens
The egress proxy now holds a Kit's OAuth tokens on the host. A refresh carrying the sentinel refresh token goes upstream with the org's stored one; a successful response is written to the State Store and returned to the container with sentinels only. Requests to the Kit's resource hosts carrying the sentinel access token get the stored one. The org's token set is read or written only for a run whose credential carries the service, so a Kit declaring a service never reaches the org secret by itself. The launcher grants a bound OAuth service without a config secret, and Register refuses a required OAuth credential when no harness secret store is wired. A provider that does not rotate refresh tokens keeps the stored one. Part of archie-core-egkf.7 (#1208). Credential-file rendering and per-binding concurrency remain.
This commit is contained in:
1 parent
f44d18e476
commit
d6e769ab4c
10 files changed
+658
-13
No files matched your search
@@ -59,4 +59,7 @@ changing it breaks `errors.Is` on the client silently.
|
||||
admin-only State Store RPCs. The EDA store seals them with the binding cipher's
|
||||
keyring and a separate `HarnessSecretDomain`. OAuth writes require a configured
|
||||
binding encryption key; the legacy binding plaintext fallback does not apply.
|
||||
The proxy interception and setup terminal are separate harness slices.
|
||||
The daemon's egress proxy (`internal/infrastructure/egress/oauth.go`) is the
|
||||
only daemon consumer: for a run granted the service it swaps sentinels for the
|
||||
stored tokens and writes every refresh back. The setup terminal is a separate
|
||||
harness slice.
|
||||
Reference in new issue
Block a user