Skip to content

test: pin the access matrix of the redesign #224

In progress

Description

@uniqueg

Slice T1 of the access control redesign (design: TESK auth redesign, section 2 matrix, section 8 test plan, section 9.1 slice plan; D-388, D-407, D-408, D-409, D-420). Sibling of #222 (T3a, token validator).

What

An access-matrix test suite that pins the target behaviour of the redesign and becomes its acceptance suite:

  • the caller x operation matrix of the design as data in src/integration-test/resources/access-matrix/matrix.txt, and an integration test parametrised over it: one test per row, caller variant and operation (service info, create, get in three views, list, cancel);
  • the variants the design names next to the table: stamped owner <iss>|<sub> and actor on create, missing and foreign tasks alike (404, same requests), page tokens of other owners (400), service info with serviceInfoPublic: false, and the per-operation variants of D-407 (all operations at the decision service, list scopes all/none, a widening policy, failing closed and open);
  • a mock OpenID Connect provider (tokens with issuer, audience, expiry, algorithm, key and act as each row needs), a mock decision service (stand-in for the tes-authz reference policy, with failure modes, recording requests) and a mock Kubernetes API;
  • runs against the current code: cells the code doesn't meet yet are listed in pending.csv with the slice that makes them pass (T2, T3b, T4a, T4b, T6) and today's status; their tests are strict expected failures (they fail once the code meets the target, until the line is removed).

Done when

  • ./mvnw clean verify passes with the suite on dev (100 % coverage gate unchanged, as only tests are added);
  • docs/development.md describes the suite and how later slices update pending.csv.

Activity

  1. added
    priority: high
    status: in progress
    on Nov 25, 2026
  2. self-assigned this
    on Nov 25, 2026
  3. added
    type: testing
    workload: hours
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: highstatus: in progresstype: testingworkload: hours

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions