You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,14 @@ See:
141
141
--tls-insecure-skip-verify It controls whether a client verifies the server's certificate chain and host name
142
142
--tls-same-client-cert-enable Use only when mutual TLS is enabled on proxy and broker. It controls whether a proxy validates if proxy client certificate exactly matches brokers client cert (tls-client-cert-file)
143
143
144
+
--proxy-listener-tls-client-cert-validate-subject bool Whether to validate client certificate subject (default false)
145
+
--proxy-listener-tls-required-client-subject-common-name string Required client certificate subject common name
146
+
--proxy-listener-tls-required-client-subject-country stringArray Required client certificate subject country
147
+
--proxy-listener-tls-required-client-subject-province stringArray Required client certificate subject province
Sometimes it might be necessary to not only validate that the client certificate is valid but also that the client certificate DN is issued for a concrete use case. This can be achieved using the following set of arguments:
326
+
327
+
```
328
+
--proxy-listener-tls-client-cert-validate-subject bool Whether to validate client certificate subject (default false)
329
+
--proxy-listener-tls-required-client-subject-common-name string Required client certificate subject common name
330
+
--proxy-listener-tls-required-client-subject-country stringArray Required client certificate subject country
331
+
--proxy-listener-tls-required-client-subject-province stringArray Required client certificate subject province
--proxy-listener-tls-required-client-subject-organizational-unit stringArray Required client certificate subject organizational unit
335
+
```
336
+
337
+
By setting `--proxy-listener-tls-client-cert-validate-subject true`, Kafka Proxy will inspect client certificate DN fields for the expected values set with the `--proxy-listener-tls-required-client-*` arguments. The matches are always exact and used together, fo all non empty values. For example, to allow a valid certificate for `country=DE` and `organization=grepplabs`, configure Kafka Proxy in the following way:
0 commit comments