Skip to content

Supervision: the "same signed response" on a retry goes stale under a freshness window #258

Open

Description

@xmuruaga

draft-hardt-aauth-supervision.md at 70d6737:

  • L316 (Idempotence): "A repeated supervision request under an sdi the SS has already answered MUST be answered with the same decision, and where the SS signs, the same signed response."
  • L342 (Signed Decisions): "The PS MUST verify the signature against the key set the SS's metadata names, and MUST verify that the id in the response's Signature-Key is the issuer of the SS it called. A signed response that fails either check is treated as server_error."

draft-hardt-oauth-aauth-protocol.md at 70d6737:

  • L2246 (Verification (Server)): "Verify the created parameter is present and within the server's signature validity window of the server's current time. The default window is 60 seconds"
  • L2274 (Freshness and Replay): "A verifier that first sees a signed artifact after a delay [...] applies its own policy for how much created-to-verification skew it accepts."

The same signed response carries the created of the first answer. Signed Decisions does not say whether the PS applies a freshness window to it, and L2274 leaves the skew to the verifier's own policy. A PS that applies its request window to responses rejects a retried answer once the window has passed, and per L342 treats it as server_error. The PS retrying after an outage, which is the case Idempotence exists for, is the one that hits it. Re-signing the stored decision with a fresh created would fix the delivery but is no longer "the same signed response". (Reproduced by a lifecycle test retrying 301 s after an answer: https://github.com/xmuruaga/aauth-supervision-server, docs/findings.md F6.)

Ask: In Signed Decisions (L342), add: "The PS does not apply a freshness window to a decision response: a retried request is answered with the original signed response (#idempotence)." Also: Idempotence says what a repeated request gets but not what a different request under an answered sdi gets, and an SS that keys its replay on (iss, sdi) alone would hand one act's allow to another; one sentence in Idempotence (L316) would close it: "A request under an sdi the SS has answered that differs from the request it answered MUST be rejected with invalid_request."

Activity

  1. joshuagay commented on Nov 4, 2026

    @joshuagay

    draft-hardt-aauth-supervision.md at 70d6737:

    • L316 (Idempotence): "A repeated supervision request under an sdi the SS has already answered MUST be answered with the same decision, and where the SS signs, the same signed response."
    • L340 (Signed Decisions): "A decision returned at a pending URL is a response to the PS's GET, and its ;req components bind it to that poll; the binding to the supervision request is the sdi in the body."
    • L342 (Signed Decisions): "A signed response that fails either check is treated as server_error."

    This adds a second case where the same signed response fails, with no freshness window involved. When the decision came at a pending URL, its @path;req names the pending URL, and it has no content-digest;req because it answered a GET. Sent again in answer to a repeated POST to the decision endpoint, it does not verify against that request, and the PS treats it as server_error.

    Ask: Have the SS answer a repeated request with the same decision, signed for the repeated request, and keep the stored signed response as the record of the request it first answered. That covers this case and the retry case above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions