Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
Fix instance_network_interface_violations mapping (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrindisi authored and blueandgold committed Aug 18, 2017
1 parent 42b15bf commit bd897ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Expand Up @@ -198,9 +198,9 @@
SELECT * FROM groups_violations_{0};
"""

SELECT_IAP_VIOLATIONS = """
SELECT_INSTANCE_NETWORK_INTERFACE_VIOLATIONS = """
SELECT * FROM violations_{0}
WHERE violation_type = 'IAP_VIOLATION';
WHERE violation_type = 'INSTANCE_NETWORK_INTERFACE_VIOLATION';
"""

BACKEND_SERVICES = """
Expand Down
3 changes: 2 additions & 1 deletion google/cloud/security/common/data_access/violation_map.py
Expand Up @@ -43,5 +43,6 @@
'groups_violations': sd.SELECT_GROUPS_VIOLATIONS.format,
'policy_violations': sd.SELECT_POLICY_VIOLATIONS.format,
'iap_violations': sd.SELECT_IAP_VIOLATIONS.format,
'instance_network_interface_violations': sd.SELECT_IAP_VIOLATIONS.format
'instance_network_interface_violations': (
sd.SELECT_INSTANCE_NETWORK_INTERFACE_VIOLATIONS.format),
}
2 changes: 1 addition & 1 deletion google/cloud/security/scanner/scanners/scanners_map.py
Expand Up @@ -18,7 +18,7 @@
'bigquery_acl_violations': 'violations',
'buckets_acl_violations': 'violations',
'cloudsql_acl_violations': 'violations',
'forwarding_rule_violations' : 'violations',
'forwarding_rule_violations': 'violations',
'groups_violations': 'groups_violations',
'instance_network_interface_violations': 'violations',
'policy_violations': 'violations',
Expand Down

0 comments on commit bd897ed

Please sign in to comment.