Record authenticated caller in the decision envelope.
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Build and Publish Container Image / build-and-push (push) Successful in 1m0s

FLEX-WP-0023-T04: provenance.caller is additive (mode required;
principal/audience/not_after when a token was reviewed). TokenReview
keeps the JWT exp. request_digest is unchanged because the caller is
not binding material.

Assistant: grok
Assistant-Session: 01a09dc1-b21e-77e1-919e-fcad2f82b267
This commit is contained in:
tegwick 2026-09-14 04:44:07 +02:00
parent e62c0cfc36
commit ca070df32d
15 changed files with 344 additions and 35 deletions

View file

@ -31,7 +31,7 @@ func TestOpenRouterNativeCallerBoundary(t *testing.T) {
if err != nil {
t.Fatal(err)
}
err = auth.Authorize(context.Background(), "Bearer synthetic-caller", tc.systems)
_, err = auth.Authorize(context.Background(), "Bearer synthetic-caller", tc.systems)
if tc.denied && !errors.Is(err, ErrForbidden) {
t.Fatalf("want forbidden, got %v", err)
}