Skip to content

Audit ACLs ​

OVN ACLs are ordered by priority, and a higher-priority rule that already matches all traffic makes a lower-priority rule unreachable. Northwatch's ACL audit finds these shadowed and conflicting rules so you can spot dead security policy.

The audit is part of the debug capability, on by default.

Run the audit ​

bash
curl -s http://localhost:8080/api/v1/debug/acl-audit

The result enumerates ACLs with their priority, direction, match and action, and reports three finding types:

  • shadow (error): a rule can never match because a higher-priority rule with the same or a broader match takes a different action.
  • conflict (warning): two rules have overlapping but contradictory matches.
  • redundant (warning): two rules have an identical match and action.

Rules are compared only within the same attachment scope, meaning the owning logical switch or port group, and the same direction; an ACL attached to nothing is never compared. Findings are capped at 500: past the cap the audit stops and sets truncated: true, so the reported findings are a prefix, not the complete set.

Browse the raw ACL state ​

To inspect ACLs, port groups and address sets directly:

bash
curl -s http://localhost:8080/api/v1/nb/acls
curl -s http://localhost:8080/api/v1/nb/port-groups
curl -s http://localhost:8080/api/v1/nb/address-sets

With OpenStack enrichment on, a port group maps to a security group and an address set maps to a security-group remote reference, so the audit reads in terms of your tenant's security groups. See Enrich with OpenStack.

Search for a specific rule ​

To find every ACL whose match references an IP or address set, use Omnisearch:

bash
curl -s 'http://localhost:8080/api/v1/search?q=10.0.0.0/24'