KafkaUser with tls-external #6328
seemasanjaisinghani
started this conversation in
General
Replies: 1 comment 8 replies
-
Please format the examples as code to make them readable. And please make sure to share the actual values and not just some templates. Without that it is hard to understand what re you actually doing. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here is our configuration :
We have configured brokerCertChainAndKey: in kafkaCluster.yaml
The certificates we are using for brokerCertChaninAnd key are generated from GOogle CAS
----------------------->
apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
metadata:
name: {{ .Values.kafka_cluster_name }}
spec:
clusterCa:
generateCertificateAuthority: {{ .Values.kafka_generate_cert }}
clientsCa:
generateCertificateAuthority: {{ .Values.kafka_generate_client_cert }}
kafka:
version: 2.8.0
replicas: {{ .Values.kafka_replicas }}
logging:
type: inline
loggers:
kafka.authorizer.logger: "DEBUG"
authorization:
type: simple
listeners:
port: 9092
type: internal
tls: false
port: 9094
type: loadbalancer
tls: true
authentication:
type: tls
configuration:
brokerCertChainAndKey:
secretName: kafka-gcp-cert-2
certificate: tls.crt
key: tls.key
loadBalancerSourceRanges:
- {{ .Values.kafka_listeners_external_load_balancer_source_ranges }}
<----------------------------------
We have created KafkaUser.yaml with authentication:tls-external
---------------------------------------->
apiVersion: kafka.strimzi.io/v1beta1
kind: KafkaUser
metadata:
name: acl-user1
labels:
strimzi.io/cluster: test-cluster
spec:
authentication:
type: tls-external
authorization:
type: simple
acls:
- resource:
type: topic
name: kafka-cert-topic
patternType: literal
operation: Read
host: ""
- resource:
type: topic
name: kafka-cert-topic
patternType: literal
operation: Describe
host: ""
- resource:
type: group
name: my-group
patternType: literal
operation: Read
host: "*"
<-------------------------------------------------
For user CN=acl-user1, we have our on prem certs generated with same CN name as user.
When the user CN=acl-user1, tries to communicate with kafka, which truststore/CA does it verify the keystore of KafkaUser?
Beta Was this translation helpful? Give feedback.
All reactions