Skip to content

Follow-up: ALLOW/DENY conflict + precedence resolution #2435

Closed

Description

@omerboehm

Mirrors s-and-p-team/cortex#124.

Parent

Deferred follow-up to the ALLOW/DENY Feature (linked as parent sub-issue). Design reference: s-and-p-team/cortex#115.

What to build

Add conflict / precedence resolution for ALLOW-vs-DENY collisions.

The initial ALLOW/DENY work assumes no conflict: no (role, scope) is ever both ALLOW and DENY for the same subject, so DENY simply subtracts and there is no tie-break to reason about. This issue tracks lifting that assumption — defining and enforcing precedence when a subject reaches the same scope via a cross-role ALLOW and a DENY (e.g. deny-wins vs. specificity-based resolution), across model, PCE derivation, and generated Rego.

This is deliberately deferred and depends on the base two-sided model being in place.

Acceptance criteria

  • A precedence policy for cross-role ALLOW-vs-DENY collisions is defined and documented.
  • PCE derivation and generated Rego enforce it consistently at every gate.
  • Tests cover the collision cases the no-conflict assumption previously excluded.

Blocked by

  • The base ALLOW/DENY Feature (model + PCE + PDP writer) must land first.

Assisted-By: Claude (Anthropic AI) [email protected]

Parent: #2413

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions