Skip to content

Multi-policy conflict check — two policies that contradict each other #419

Closed

Description

@shubhamkataria2005

As an engineer whose firewall has rules from more than one team, I want to know when one team's policy forbids what another's requires.

What it does

load_policy() refuses a policy that contradicts itself (#322), but it reads one file at a time. Two policies can each be consistent and still contradict each other once applied together. This compares two policies in both directions.

Acceptance criteria

  • Both directions: A's prohibitions against B's requirements, and B's against A's
  • Every rule is named with its file, because both may have a "rule 1"
  • Same comparison as within one policy, so the two checks cannot disagree
  • Undecidable pairs are reported, never dropped
  • A command line that exits 1 on a conflict
  • Mutation-tested

Depends on

#387.


Epic: Policy | Assigned: @shubhamkataria2005

Raised for Studio 6 as one of ten features in my area (policy compliance and change impact). Comment here if you disagree with the scope; the acceptance criteria are what I will build to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or requestlayer: analysisLayer 1 — Batfish orchestration, checks, the pipelinephase: 3Market readiness -- what stands between us and a product someone could buy.policy-compliancesize: SDays. One person, one PR.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions