cruise-automation / k-rail

Kubernetes security tool for policy enforcement
Apache License 2.0
443 stars 54 forks source link

Add namespace to violation text #66

Closed shellw closed 4 years ago

shellw commented 4 years ago

This PR is for adding fixes to the Unique Ingress Host Policy from PR #63. It mainly modifies 2 things:

  1. Uses a map instead of slice for de-duping on namespaces and improving lookup times
  2. Adds the namespaces where the host found to the violationText