Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/drafts/agent-identity/credentials-and-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ ID-JAG makes a refresh token as subject token optional (§4.3: an IdP "MAY addit
6. The SVID passes the [SVID checks](#4-agent-instance-jwt-svid).
7. AS-1 authorizes the combination of client, subject, actor, and target.

**Configured AS-2 issuers.** No AS-2 issuer configured for `mecatl` names the same server as AS-1's issuer, comparing scheme and host case-insensitively, a default port as equal to none, and ignoring a trailing slash. `mecatl` authenticates to both servers with the same key, so a shared issuer would let a client assertion or an ID-JAG meant for one server be accepted by the other. Mecatl refuses such a configuration at startup.
**Configured AS-2 issuers.** No AS-2 issuer configured for `mecatl` is the same issuer as AS-1's, comparing scheme and host case-insensitively, a default port as equal to none, and the path ignoring a trailing slash. `mecatl` authenticates to both servers with the same key, so a shared issuer would let a client assertion or an ID-JAG meant for one server be accepted by the other. Two issuers on one host with different paths are distinct: each server accepts only an `aud` that names its own issuer. Mecatl refuses a shared issuer at startup.

**How AS-1 runs check 6.** AS-1 does not know Mecatl's instance registry. For client `mecatl`, AS-1 calls its pluggable actor-token validator ([stacklok/toolhive#6899](https://github.com/stacklok/toolhive/issues/6899)). AS-1 passes the SVID, the client, and the grant's user: `sub` and `sub_id` from `RT-A42`'s record. Mecatl's validator runs in the broker. It runs the SVID checks, and check 8 checks that the instance's session is open and compares its owner with that `sub_id`. It returns the instance's SPIFFE ID, `spiffe://<trust domain>/agent/<ag_ identifier>`, as the agent ID, and the SVID's `exp`. AS-1 puts the agent ID in `act.sub`, sets `act.iss` to the issuer registered with the validator, the agent trust domain `spiffe://<trust domain>`, and caps the ID-JAG's `exp` at the SVID's `exp`. AS-1 never falls back to its built-in actor-token handling.

Expand Down
Loading