-
Notifications
You must be signed in to change notification settings - Fork 8
/
SampleCureIAM.yaml
107 lines (103 loc) · 2.55 KB
/
SampleCureIAM.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
98
99
100
101
102
103
104
105
106
107
# production file
plugins:
gcpCloud:
plugin: CureIAM.plugins.gcp.gcpcloud.GCPCloudIAMRecommendations
params:
key_file_path: cureiamSA.json
filestore:
plugin: CureIAM.plugins.files.filestore.FileStore
gcpIamProcessor:
plugin: CureIAM.plugins.gcp.gcpcloudiam.GCPIAMRecommendationProcessor
params:
mode_scan: true
mode_enforce: false
enforcer:
key_file_path: cureiamSA.json
blocklist_projects:
- project-a
- project-b
- project-c
blocklist_accounts:
allowlist_account_types:
- user
- group
- serviceAccount
blocklist_account_types:
- None
min_safe_to_apply_score_user: 60
min_safe_to_apply_score_group: 60
min_safe_to_apply_score_SA: 60
esstore:
plugin: CureIAM.plugins.elastic.esstore.EsStore
params:
# Change http to https later if your elastic are using https
scheme: http
host: es-host.com
port: 9200
index: cureiam-stg
username: <<username>>
password: <<password>>
audits:
IAMAudit:
clouds:
- gcpCloud
processors:
- gcpIamProcessor
stores:
- filestore
- esstore
run:
- IAMAudit
logger:
version: 1
disable_existing_loggers: true
formatters:
main:
format: "[%(asctime)s][%(process)s][%(processName)s][%(threadName)s] - %(levelname)s
%(name)s:%(lineno)d - %(message)s"
datefmt: "%Y-%m-%d %H:%M:%S"
standard:
format: "[%(process)s][%(processName)s][%(threadName)s] %(message)s"
datefmt: "%Y-%m-%d %H:%M:%S"
handlers:
main:
formatter: main
class: logging.StreamHandler
stream: ext://sys.stdout
console:
formatter: standard
class: logging.StreamHandler
stream: ext://sys.stdout
rich:
formatter: standard
class: rich.logging.RichHandler
file:
formatter: standard
class: logging.handlers.TimedRotatingFileHandler
filename: "/tmp/CureIAM.log"
when: midnight
encoding: utf8
backupCount: 5
loggers:
'':
handlers:
- file
- main
level: INFO
propagate: false
CureIAM.plugins.gcp.gcpcloudiam:
handlers:
- rich
level: INFO
propagate: false
__main__:
handlers:
- file
- main
level: INFO
propagate: false
schedule: "14:00"