-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Enable lightweight scanning option (#136)
* feat: Enable lightweight scanning option We use a predefined schema to select the most interesting fields for printing. User can enable it with -ls flag. Additionally * Requests are now timed out by 120 seconds * Impersonation is now disabled by default * Unwrapped several unnecessary lists in responses * Fixes extra null output in GCS scanning results * [tests] Relaxing and updating unit tests * [tests] Printing error file on failure ( Related to #135
- Loading branch information
Showing
11 changed files
with
2,489 additions
and
2,465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,27 @@ | ||
[ | ||
[ | ||
{ | ||
"id": "1199893578059967130", | ||
CHECK "name": "test-policy", | ||
CHECK "enableInboundForwarding": true, | ||
CHECK "description": "A test policy", | ||
CHECK "networks": [ | ||
{ | ||
"id": "1199893578059967130", | ||
CHECK "name": "test-policy", | ||
CHECK "enableInboundForwarding": true, | ||
CHECK "description": "A test policy", | ||
CHECK "networks": [ | ||
{ | ||
CHECK "networkUrl": "https://www.googleapis.com/compute/v1/projects/test-gcp-scanner/global/networks/test-vpc", | ||
CHECK "kind": "dns#policyNetwork" | ||
} | ||
], | ||
CHECK "alternativeNameServerConfig": { | ||
CHECK "targetNameServers": [ | ||
{ | ||
CHECK "networkUrl": "https://www.googleapis.com/compute/v1/projects/test-gcp-scanner/global/networks/test-vpc", | ||
CHECK "kind": "dns#policyNetwork" | ||
CHECK "ipv4Address": "8.8.8.8", | ||
CHECK "forwardingPath": "private", | ||
CHECK "ipv6Address": "", | ||
CHECK "kind": "dns#policyAlternativeNameServerConfigTargetNameServer" | ||
} | ||
], | ||
CHECK "alternativeNameServerConfig": { | ||
CHECK "targetNameServers": [ | ||
{ | ||
CHECK "ipv4Address": "8.8.8.8", | ||
CHECK "forwardingPath": "private", | ||
CHECK "ipv6Address": "", | ||
CHECK "kind": "dns#policyAlternativeNameServerConfigTargetNameServer" | ||
} | ||
], | ||
CHECK "kind": "dns#policyAlternativeNameServerConfig" | ||
}, | ||
"enableLogging": false, | ||
CHECK "kind": "dns#policy" | ||
} | ||
] | ||
CHECK "kind": "dns#policyAlternativeNameServerConfig" | ||
}, | ||
"enableLogging": false, | ||
CHECK "kind": "dns#policy" | ||
} | ||
] |
Oops, something went wrong.