Skip to content

Task grants: end-to-end refusal test through production wiring #1041

Description

@jeremi

Follow-up to #1029.

Some live task grant tests build clients by hand, for example BREG's status client with .with_audience. A wiring defect that only real deployments hit can then pass CI: the missing status assertion audience fixed in #1029 escaped this way.

Add one end-to-end test in which Casework, ThunderID, BREG and Evidence are configured only through the maintained tooling and runtime configuration, with no hand-built clients, and an officer approves a grant for one agent and one household:

  • A read of the approved household succeeds; a read of another household is refused
  • The same assertion exchanged by a different registered client yields a token that BREG and Evidence refuse
  • After revocation in Casework, a grant-bound BREG write is refused
  • A re-exchange after registry_grant_exp yields a token that BREG and Evidence refuse (crates/registry-evidence-client/tests/against_a_real_deployment.rs already covers Evidence; reuse it)
  • The test runs in CI, or its README states where it runs and why

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions