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
When the Network Policy is enabled using calico as the driver, instead of azure, the accurics.azure.NS.382 is marked as failed, when Calico is a valid Security Policy.
- rule_name: networkPolicyEnabled
description: Ensure AKS cluster has Network Policy configured.
rule_id: accurics.azure.NS.382
How to Reproduce:
Declare an Azure Kubernetes Cluster with network_policy=calico
I know go does not have an in operator, just wanted to show the possible solution, it would need to be implemented. I am not a go developer myself but could try to send a PR if you think this is the way to go.
For anyone looking an in python-like operator for go, you could implement this using
Symptom:
When the Network Policy is enabled using
calico
as the driver, instead ofazure
, the accurics.azure.NS.382 is marked as failed, when Calico is a valid Security Policy.How to Reproduce:
network_policy=calico
Possible Solution
I think the issue is in the block in the line 6:
If it can check with an OR operation or an IN operation to check if it is whether
azure
orcalico
would fix it.I know go does not have an
in
operator, just wanted to show the possible solution, it would need to be implemented. I am not a go developer myself but could try to send a PR if you think this is the way to go.For anyone looking an
in
python-like operator for go, you could implement this usingSource: https://stackoverflow.com/a/15323988/2399397
The text was updated successfully, but these errors were encountered: