-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-example.yaml
97 lines (97 loc) · 2.93 KB
/
config-example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
services:
- serviceName: compute
version: v1
queries:
- resource: networks
gcp_api_call: networks.list
gcp_function_args:
project: <PROJECT_ID>
gcp_log_resource_type: gce_network
field_exclude_filter:
- selfLinkWithId
- networkFirewallPolicyEnforcementOrder
- peerings:
- stateDetails
item_exclude_filter:
- peerings:
name: "servicenetworking-googleapis-com"
- resource: subnetworks
gcp_api_call: subnetworks.aggregatedList
gcp_function_args:
project: <PROJECT_ID>
gcp_log_resource_type: gce_subnetwork
sortFields:
- name
- secondaryIpRanges: rangeName
- resource: privateServicesAccessRanges
gcp_api_call: globalAddresses.list
gcp_function_args:
project: <PROJECT_ID>
filter: purpose=VPC_PEERING
gcp_log_resource_type: gce_reserved_address
- resource: firewalls
gcp_api_call: firewalls.list
gcp_function_args:
project: <PROJECT_ID>
gcp_log_resource_type: gce_firewall_rule
item_exclude_filter:
- name: "^k8s.*"
description: '^{"kubernetes.io/'
- resource: routes
gcp_api_call: routes.list
gcp_function_args:
project: <PROJECT_ID>
gcp_log_resource_type: gce_route
item_exclude_filter:
- name: ".*(peering|default)-route.*"
- description: "k8s-node-route"
field_exclude_filter:
- warnings
- resource: vpnTunnels
gcp_api_call: vpnTunnels.aggregatedList
gcp_function_args:
project: <PROJECT_ID>
gcp_log_resource_type: vpn_tunnel
field_exclude_filter:
- sharedSecretHash
- sharedSecret
- status
- detailedStatus
- serviceName: container
version: v1
queries:
- resource: k8s
gcp_api_call: projects.locations.clusters.list
gcp_function_args:
parent: projects/<PROJECT_ID>/locations/-
gcp_log_resource_type: gke_cluster
items: clusters
field_exclude_filter:
- currentNodeCount
- status
- nodePools:
- status
git:
remote_url: https://github.com/<ORG>/<REPO_NAME>
local_directory: gcp_config
discover_projects: True
#project_list:
# - my-project-ID
excluded_projects:
- excluded-project-ID
change_processor:
scan_interval: 30
service_account_regex: '^(my-terraform-sa-|\d+@|service-\d+).*'
ticket_regex: "^.*?([a-zA-z]{2,3}[-_][0-9]+).*"
ticket_sys_url: "https://my-tickets.com/list"
slack:
channelID: "C123456789A"
repoCommitURL: "https://github.com/<ORG>/<REPO_NAME>/commit"
jira:
url: "https://my.jira.com"
projectKey: "KEY"
terraform:
url: "https://app.terraform.io"
service_workspace_map:
org: my-organization
workspace: ["my-workspace-no1"]