Skip to content

Commit

Permalink
Merge pull request #49 from caruccio/patch-1
Browse files Browse the repository at this point in the history
Restricts service check for type=LoadBalancer only
  • Loading branch information
dorukozturk authored Oct 11, 2023
2 parents f5fab1f + e435c78 commit e06c78b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardeneks/namespace_based/security/network_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def check(self, namespaced_resources: NamespacedResources):
offenders = []
for service in namespaced_resources.services:
annotations = service.metadata.annotations
if annotations:
if service.spec.type == 'LoadBalancer' and annotations:
ssl_cert = (
"service.beta.kubernetes.io/aws-load-balancer-ssl-cert"
in annotations
Expand Down

0 comments on commit e06c78b

Please sign in to comment.