Merge pull request #3442 from gravitl/release-v0.90.0

check for service type and protocol on bi directional policies
This commit is contained in:
Abhishek K 2025-05-20 09:17:46 +05:30 committed by GitHub
commit 35ddfc7a90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1411,7 +1411,7 @@ func checkIfAnyPolicyisUniDirectional(targetNode models.Node) bool {
if !acl.Enabled {
continue
}
if acl.AllowedDirection == models.TrafficDirectionBi {
if acl.AllowedDirection == models.TrafficDirectionBi && acl.Proto == models.ALL && acl.ServiceType == models.Any {
continue
}
if acl.Proto != models.ALL || acl.ServiceType != models.Any {