-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get proxy-listener tls to work #170
Comments
Please provide:
|
CertsThe cert, key, and ca file are generated by someone else for me off an internal ca. If there is anything I can extract from it that would be helpful. Here is part of it for reference as shown by
And here is the same info from the ca cert:
Not working partsErrors on
Errors on
Proxy config when using tls for proxy client: ./kafka-proxy server \
--bootstrap-server-mapping "127.0.0.1:19001,0.0.0.0:30001" \
--bootstrap-server-mapping "127.0.0.1:19002,0.0.0.0:30002" \
--bootstrap-server-mapping "127.0.0.1:19003,0.0.0.0:30003" \
--bootstrap-server-mapping "127.0.0.1:19004,0.0.0.0:30004" \
--bootstrap-server-mapping "127.0.0.1:19005,0.0.0.0:30005" \
--bootstrap-server-mapping "127.0.0.1:19006,0.0.0.0:30006" \
--bootstrap-server-mapping "127.0.0.1:19007,0.0.0.0:30007" \
--bootstrap-server-mapping "127.0.0.1:19008,0.0.0.0:30008" \
--bootstrap-server-mapping "127.0.0.1:19009,0.0.0.0:30009" \
--bootstrap-server-mapping "127.0.0.1:19010,0.0.0.0:30010" \
--bootstrap-server-mapping "127.0.0.1:19011,0.0.0.0:30011" \
--bootstrap-server-mapping "127.0.0.1:19012,0.0.0.0:30012" \
--bootstrap-server-mapping "127.0.0.1:19013,0.0.0.0:30013" \
--dial-address-mapping "127.0.0.1:19001,was-dc2-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19002,was-dc2-kafka-2.example.net:9091" \
--dial-address-mapping "127.0.0.1:19003,was-dc2-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19004,nyc-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19005,nyc-kafka-2.example.net:9091" \
--dial-address-mapping "127.0.0.1:19006,nyc-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19007,dfw-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19008,dfw-kafka-2.example.net:9091" \
--dial-address-mapping "127.0.0.1:19009,dfw-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19010,atl-at2-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19011,atl-at2-kafka-2.example.net:9091" \
--dial-address-mapping "127.0.0.1:19012,chi-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19013,chi-kafka-2.example.net:9091" \
--proxy-listener-tls-enable \
--proxy-listener-ca-chain-cert-file /Users/gene.liverman/.ssh/ca-certs.pem \
--proxy-listener-cert-file /Users/gene.liverman/.ssh/user-cert.pem \
--proxy-listener-key-file /Users/gene.liverman/.ssh/user-key.pem \
--proxy-listener-key-password $FLOW_CERT_PW \
--tls-enable \
--tls-ca-chain-cert-file /Users/gene.liverman/.ssh/ca-certs.pem \
--tls-client-cert-file /Users/gene.liverman/.ssh/user-cert.pem \
--tls-client-key-file /Users/gene.liverman/.ssh/user-key.pem \
--tls-client-key-password $FLOW_CERT_PW \
--debug-enable
[global_tags]
[agent]
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = "0s"
debug = true
logtarget = "stderr"
hostname = ""
omit_hostname = false
[[outputs.kafka]]
brokers = [
"127.0.0.1:30001",
"127.0.0.1:30002",
"127.0.0.1:30003",
"127.0.0.1:30004",
"127.0.0.1:30005",
"127.0.0.1:30006",
"127.0.0.1:30007",
"127.0.0.1:30008",
"127.0.0.1:30009",
"127.0.0.1:30010",
"127.0.0.1:30011",
"127.0.0.1:30012",
"127.0.0.1:30013"
]
topic = "private.test.gene.metrics"
version = "3.7.0"
routing_tag = "host"
compression_codec = 2
insecure_skip_verify = false
tls_ca = "/Users/gene.liverman/.ssh/ca-certs.pem"
tls_cert = "/Users/gene.liverman/.ssh/user-cert.pem"
tls_key = "/Users/gene.liverman/.ssh/user-key.pem"
tls_key_pwd = "uncross-dimity-smutch-dual"
[[inputs.prometheus]]
urls = ["http://127.0.0.1:9100/metrics"]
Working partsThe one that works and does not throw any errors is when I don't do tls from the proxy client. That proxy config is below: ./kafka-proxy server \
--bootstrap-server-mapping "127.0.0.1:19001,0.0.0.0:30001" \
--bootstrap-server-mapping "127.0.0.1:19002,0.0.0.0:30002" \
--bootstrap-server-mapping "127.0.0.1:19003,0.0.0.0:30003" \
--bootstrap-server-mapping "127.0.0.1:19004,0.0.0.0:30004" \
--bootstrap-server-mapping "127.0.0.1:19005,0.0.0.0:30005" \
--bootstrap-server-mapping "127.0.0.1:19006,0.0.0.0:30006" \
--bootstrap-server-mapping "127.0.0.1:19007,0.0.0.0:30007" \
--bootstrap-server-mapping "127.0.0.1:19008,0.0.0.0:30008" \
--bootstrap-server-mapping "127.0.0.1:19009,0.0.0.0:30009" \
--bootstrap-server-mapping "127.0.0.1:19010,0.0.0.0:30010" \
--bootstrap-server-mapping "127.0.0.1:19011,0.0.0.0:30011" \
--bootstrap-server-mapping "127.0.0.1:19012,0.0.0.0:30012" \
--bootstrap-server-mapping "127.0.0.1:19013,0.0.0.0:30013" \
--dial-address-mapping "127.0.0.1:19001,was-dc2-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19002,was-dc2-kafka-2.example.net:9091" \
--dial-address-mapping "127.0.0.1:19003,was-dc2-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19004,nyc-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19005,nyc-kafka-2.example.net:9091" \
--dial-address-mapping "127.0.0.1:19006,nyc-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19007,dfw-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19008,dfw-kafka-2.example.net:9091" \
--dial-address-mapping "127.0.0.1:19009,dfw-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19010,atl-at2-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19011,atl-at2-kafka-2.example.net:9091" \
--dial-address-mapping "127.0.0.1:19012,chi-kafka-1.example.net:9091" \
--dial-address-mapping "127.0.0.1:19013,chi-kafka-2.example.net:9091" \
--tls-enable \
--tls-ca-chain-cert-file /Users/gene.liverman/.ssh/ca-certs.pem \
--tls-client-cert-file /Users/gene.liverman/.ssh/user-cert.pem \
--tls-client-key-file /Users/gene.liverman/.ssh/user-key.pem \
--tls-client-key-password $FLOW_CERT_PW \
--debug-enable In this scenario, the [global_tags]
[agent]
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = "0s"
debug = true
logtarget = "stderr"
hostname = ""
omit_hostname = false
[[outputs.kafka]]
brokers = [
"127.0.0.1:30001",
"127.0.0.1:30002",
"127.0.0.1:30003",
"127.0.0.1:30004",
"127.0.0.1:30005",
"127.0.0.1:30006",
"127.0.0.1:30007",
"127.0.0.1:30008",
"127.0.0.1:30009",
"127.0.0.1:30010",
"127.0.0.1:30011",
"127.0.0.1:30012",
"127.0.0.1:30013"
]
topic = "private.test.gene.metrics"
version = "3.7.0"
routing_tag = "host"
compression_codec = 2
[[inputs.prometheus]]
urls = ["http://127.0.0.1:9100/metrics"] |
I'm trying to use the same cert & key for both the listener side and the sending side of kafka-proxy and in telegraf. These are the same certs you made work in #168. Should the setup below work, or am I missing something?
I feel like I am missing something.
The text was updated successfully, but these errors were encountered: