forked from conduktor/kafka-security-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.conf
180 lines (162 loc) · 5.36 KB
/
application.conf
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
ksm {
debug = false
debug = ${?KSM_DEBUG}
extract {
enable = false
enable = ${?KSM_EXTRACT_ENABLE}
format = csv
format = ${?KSM_EXTRACT_FORMAT}
}
num.failed.refreshes.before.notification = 1
num.failed.refreshes.before.notification = ${?KSM_NUM_FAILED_REFRESHES_BEFORE_NOTIFICATION}
refresh.frequency.ms = 10000
refresh.frequency.ms = ${?KSM_REFRESH_FREQUENCY_MS}
readonly = true
readonly = ${?KSM_READONLY}
}
parser {
csv {
delimiter = ","
delimiter = ${?ACL_PARSER_CSV_DELIMITER}
}
}
authorizer {
class = "kafka.security.auth.SimpleAclAuthorizer"
class = ${?AUTHORIZER_CLASS}
admin-client-config {
// options below needed when AUTHORIZER_CLASS is "io.conduktor.ksm.compat.AdminClientAuthorizer"
// see org.apache.kafka.clients.admin.AdminClientConfig for more options
"client.id" = "kafka-security-manager"
"client.id" = ${?ADMIN_CLIENT_ID}
"bootstrap.servers" = ${?ADMIN_CLIENT_BOOTSTRAP_SERVERS}
"security.protocol" = ${?ADMIN_CLIENT_SECURITY_PROTOCOL}
"sasl.jaas.config" = ${?ADMIN_CLIENT_SASL_JAAS_CONFIG}
"sasl.mechanism" = ${?ADMIN_CLIENT_SASL_MECHANISM}
"ssl.key.password" = ${?ADMIN_CLIENT_SSL_KEY_PASSWORD}
"ssl.keystore.location" = ${?ADMIN_CLIENT_SSL_KEYSTORE_LOCATION}
"ssl.keystore.password" = ${?ADMIN_CLIENT_SSL_KEYSTORE_PASSWORD}
"ssl.truststore.location" = ${?ADMIN_CLIENT_SSL_TRUSTSTORE_LOCATION}
"ssl.truststore.password" = ${?ADMIN_CLIENT_SSL_TRUSTSTORE_PASSWORD}
}
config {
"zookeeper.connect" = "localhost:2181"
"zookeeper.connect" = ${?AUTHORIZER_ZOOKEEPER_CONNECT}
"zookeeper.connection.timeout.ms" = ${?AUTHORIZER_CONNECTION_TIMEOUT_MS}
"zookeeper.session.timeout.ms" = ${?AUTHORIZER_SESSION_TIMEOUT_MS}
"zookeeper.set.acl" = "false"
"zookeeper.set.acl" = ${?AUTHORIZER_ZOOKEEPER_SET_ACL}
}
}
source {
// we default to a no "source" acl
class = "io.conduktor.ksm.source.NoSourceAcl"
class = ${?SOURCE_CLASS}
file {
filename = "example/acls.csv"
filename = ${?SOURCE_FILE_FILENAME}
}
github {
user = "conduktor"
user = ${?SOURCE_GITHUB_USER}
repo = "kafka-security-manager"
repo = ${?SOURCE_GITHUB_REPO}
filepath = "example/acls.csv"
filepath = ${?SOURCE_GITHUB_FILEPATH}
branch = "master"
branch = ${?SOURCE_GITHUB_BRANCH}
hostname = "api.github.com"
// hostname for private github is: hostname/api/v3
hostname = ${?SOURCE_GITHUB_HOSTNAME}
auth {
// of the form username:password or username:token
basic = ${?SOURCE_GITHUB_BASIC}
// oauth2 token or SAML token
token = ${?SOURCE_GITHUB_TOKEN}
}
}
gitlab {
repoid = ${?SOURCE_GITLAB_REPOID}
filepath = "example/acls.csv"
filepath = ${?SOURCE_GITLAB_FILEPATH}
branch = "master"
branch = ${?SOURCE_GITLAB_BRANCH}
hostname = "gitlab.com"
// hostname for private gitlab is: $hostname/api/v4
hostname = ${?SOURCE_GITLAB_HOSTNAME}
accesstoken = ${?SOURCE_GITLAB_ACCESSTOKEN}
}
s3 {
region = ${?SOURCE_S3_REGION}
bucketname = ${?SOURCE_S3_BUCKETNAME}
objectkey = ${?SOURCE_S3_OBJECTKEY}
}
bitbucket-server {
hostname = "localhost"
hostname = ${?SOURCE_BITBUCKET_SERVER_HOSTNAME}
port = "7990"
port = ${?SOURCE_BITBUCKET_SERVER_PORT}
protocol = "http"
protocol = ${?SOURCE_BITBUCKET_SERVER_PROTOCOL}
project = "KAF"
project = ${?SOURCE_BITBUCKET_SERVER_PROJECT}
repo = "kafka-acls"
repo = ${?SOURCE_BITBUCKET_SERVER_REPO}
filepath = "acls.csv"
filepath = ${?SOURCE_BITBUCKET_SERVER_FILEPATH}
branch = ${?SOURCE_BITBUCKET_SERVER_BRANCH}
auth {
username = ${?SOURCE_BITBUCKET_SERVER_AUTH_USERNAME}
password = ${?SOURCE_BITBUCKET_SERVER_AUTH_PASSWORD}
}
}
bitbucket-cloud {
api {
url = "https://api.bitbucket.org/2.0"
url = ${?SOURCE_BITBUCKET_CLOUD_API_URL}
}
organization = ${?SOURCE_BITBUCKET_CLOUD_ORGANIZATION}
repo = "kafka-acls"
repo = ${?SOURCE_BITBUCKET_CLOUD_REPO}
filepath = "acls.csv"
filepath = ${?SOURCE_BITBUCKET_CLOUD_FILEPATH}
auth {
username = ${?SOURCE_BITBUCKET_CLOUD_AUTH_USERNAME}
password = ${?SOURCE_BITBUCKET_CLOUD_AUTH_PASSWORD}
}
}
http {
url = ${?SOURCE_HTTP_URL}
parser = "csv"
parser = ${?SOURCE_HTTP_PARSER}
method = "GET"
method = ${?SOURCE_HTTP_METHOD}
auth {
type = "NONE"
type = ${?SOURCE_HTTP_AUTH_TYPE}
googleiam {
service-account = ""
service-account = ${?SOURCE_HTTP_AUTH_GOOGLEIAM_SERVICE_ACCOUNT}
service-account_key = ""
service-account-key = ${?SOURCE_HTTP_AUTH_GOOGLEIAM_SERVICE_ACCOUNT_KEY}
target-audience = ""
target-audience = ${?SOURCE_HTTP_AUTH_GOOGLEIAM_TARGET_AUDIENCE}
}
}
}
}
notification {
class = "io.conduktor.ksm.notification.ConsoleNotification"
class = ${?NOTIFICATION_CLASS}
console {
}
slack {
// https://hooks.slack.com/services/etc/etc/etc
webhook = ${?NOTIFICATION_SLACK_WEBHOOK}
username = "Kafka Security Manager"
username = ${?NOTIFICATION_SLACK_USERNAME}
icon = "https://cdn.iconscout.com/public/images/icon/free/png-512/kafka-logo-brand-3f2f9aed5b9ae1e2-512x512.png"
icon = ${?NOTIFICATION_SLACK_ICON}
channel = "general"
channel = ${?NOTIFICATION_SLACK_CHANNEL}
}
}