mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-10-02 03:24:42 +08:00
Part of #1756. - Adds a required `MintActorJWTRequest.expiration_seconds`, validated to [300, 3600]. Token exchange (#1661) wants longer-lived subject tokens. - Adds `MintActorJWTResponse.expires_at`, equal to the `exp` claim, so callers like the egress gateway's cache don't have to decode the token. - Changes the subject to `actor/<atespace>/<name>`, matching the path of the actor's SPIFFE ID. The token isn't a JWT-SVID. - Rewrites the `MintActorJWTResponse` comment to match the settled contract. Field 8 skips 2, 3, 4, and 6, which the old ActorIdentity request used. Testing: validation unit tests for the bounds. The functional test checks the lifetime, `expires_at`, and `sub`; it needs Docker, so it hasn't run locally. - [ ] Tests pass - [ ] Appropriate changes to documentation are included in the PR (docs land later in the #1756 series)