Skip to content

Broker audit write order: follow-ups from the design review #2998

Done

Description

@rdimitrov

Follow-ups from the last review of #2984, the broker's audit write order. None of them blocks it. Line references are at 00ae95c, in docs/drafts/agent-identity/.

The 503 repeat rule

  • implementation.md:300 still keys the rule on "previous open of that host session". Like credentials-and-lifecycle.md:326 and :956, it should key on the verified owner, whichever host session each open used, with schedule setup and renewal counting too.
  • credentials-and-lifecycle.md:326 names what keeps the window (token_used) and what ends it (a successful open). It should also say what other failures do, and whether a successful schedule setup or renewal ends it.
  • The write-order rows for session open and for schedule setup (audit.md:132, :136) should point to the 503 exception on a repeat.
  • A client cannot tell this 503 from any other identity_broker_unavailable: the code is the same and the body has no cause. Replace the cause-specific advice with one rule a client can follow: after a 503 on an open that presented a token, refresh the token before retrying.

The deleted-host-session mark

Outcomes table

  • The ID-JAG issuance row (audit.md:57) allows denied "when a broker check refused it". Broker checks run before AS-1 and are recorded as a denied decision, so no ID-JAG record exists for them. denied should cover AS-1's refusal only.
  • The Decision row's error for a record that was not accepted reads as if the decision record carries it. Per audit.md:61, the superseding refusal does. Reword the row.

Refs #2541, #2984

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions