This repository has been archived by the owner on May 14, 2020. It is now read-only.
forked from Netflix/repokid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.json.j2
104 lines (104 loc) · 3.27 KB
/
config.json.j2
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
{
"aardvark_api_location": "http://{{ aardvark_host }}/api/1/advisors",
"active_filters": [
"repokid.filters.age:AgeFilter",
"repokid.filters.blocklist:BlocklistFilter",
"repokid.filters.optout:OptOutFilter",
"repokid.filters.exclusive:ExclusiveFilter"
],
"connection_iam": {
"assume_role": "{{ repokid_role }}",
"region": "{{ aws_region }}",
"session_name": "repokid"
},
"dispatcher": {
"from_rr_sns": "RESPONSES_FROM_REPOKID_SNS_ARN",
"region": "{{ aws_region }}",
"session_name": "repokid",
"to_rr_queue": "COMMAND_QUEUE_TO_REPOKID_URL"
},
"dynamo_db": {
"account_number": "",
"assume_role": "",
"endpoint": "{{ dynamodb_endpoint }}",
"region": "{{ dynamodb_region }}",
"session_name": "repokid"
},
"filter_config": {
"AgeFilter": {
"minimum_age": 180
},
"BlocklistFilter": {
"all": [
"qa-web-hidden-shares-ecs-service-task-us-west-2",
"qa-web-hidden-shares-ecs-service-task-us-east-2",
"qa-web-hidden-shares-ecs-service-task-eu-central-1",
"qa-web-hidden-shares-ecs-service-task-ap-northeast-1",
"qa-svc-oauth-v2-ecs-service-task-eu-central-1",
"qa-svc-oauth-v2-ecs-service-task-us-west-2",
"qa-svc-oauth-v2-ecs-service-task-us-east-2",
"qa-svc-oauth-v2-ecs-service-task-ap-northeast-1",
"staging-svc-oauth-v2-ecs-service-task-ap-northeast-1",
"staging-svc-oauth-v2-ecs-service-task-eu-central-1",
"staging-svc-oauth-v2-ecs-service-task-us-east-2",
"staging-svc-oauth-v2-ecs-service-task-us-west-2"
]
},
"ExclusiveFilter": {
"all": [
"*-qa*",
"qa-*",
"*-staging*",
"staging-*"
]
}
},
"hooks": [
"repokid.hooks.loggers"
],
"logging": {
"disable_existing_loggers": "False",
"formatters": {
"standard": {
"format": "%(asctime)s %(levelname)s: %(message)s"
}
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"formatter": "standard",
"level": "INFO",
"stream": "ext://sys.stdout"
},
"file": {
"backupCount": 100,
"class": "logging.handlers.RotatingFileHandler",
"encoding": "utf8",
"filename": "repokid.log",
"formatter": "standard",
"level": "INFO",
"maxBytes": 10485760
}
},
"loggers": {
"repokid": {
"handlers": [
"file",
"console"
],
"level": "INFO",
"propagate": false
}
},
"version": 1
},
"opt_out_period_days": 90,
"repo_requirements": {
"exclude_new_permissions_for_days": 14,
"oldest_aa_data_days": 5
},
"repo_schedule_period_days": 7,
"warnings": {
"unknown_permissions": false
}
}