You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(policy): stabilize endpoint conflict diagnostics in policy lint #5882
I use openshell policy lint to check sandbox policy files locally. While reviewing #5358, I ran the command several times on the same YAML to check how it reported a conflict between two network rules.
Problem Statement
The two rules below match the same host and port. One uses the default TLS mode and the other sets tls: skip. Lint rejects the file every time. Some runs list alpha first and others list zeta first. The TLS values swap with the rule names. If the policy has several conflicts, the order of the pairs can change too. The gateway uses the same endpoint conflict check.
The same conflict can show up as a change when comparing lint output from two CI runs of the same policy.
Acceptance Criteria
Repeated lint and gateway checks of the same policy keep the order of conflicts and the order of the rules within each conflict stable.
An integration test checks that offline lint and gateway CreateSandbox without providers reject the same YAML and report the same conflict details. The gateway returns FailedPrecondition.
Activity