Skip to content

auth: true routes can't reach audit readiness: fixtures can't sign in, waivers are ignored, and 403s give no reason #914

Closed

Description

@jimhoyd

Found by the #841 trial (#909). Both proof-style sites finished with ready: false.

Observed:

  • No signed-in fixtures: request fixtures can't hold a session, so every method of an auth: true store mount gets only 401/403 and stays in uncovered-route-methods.
  • Waivers ignored: coveredElsewhere waivers for GET, POST, PUT, PATCH and DELETE are listed under ignoredWaivers, because no method is covered normally.
  • HEAD: can't be covered at all.
  • Coverage rules undocumented: a 200 case with no body assertion didn't count as coverage until expectBody was added, and the report didn't say why.
  • Origin coupling: unsafe fixture requests without an Origin get 403 rather than 401. Fixtures written for one --origin fail under audit --origin <another>. The failure shows only the status mismatch, with no reason code.

Expected:

  • A supported way to run authenticated fixtures, for example a test-principal fixture field honoured by the operator host, or a waiver path for fully gated mounts.
  • Fixtures can reference the configured origin.
  • Refusals carry a reason code.
  • The coverage rules are documented.
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