Hi, has anyone setup mTLS and token auth on the br...
# kubernetes
g
Hi, has anyone setup mTLS and token auth on the broker before? I'm looking for examples or guidance on setting up mTLS for external clients and token auth for internal Pulsar components. I'm using the https://github.com/apache/pulsar-helm-chart to deploy to K8s. I've set the auth providers like below.
Copy code
authenticationProviders: org.apache.pulsar.broker.authentication.AuthenticationProviderToken,org.apache.pulsar.broker.authentication.AuthenticationProviderTLS
However, I am running into an issue where the
KubernetesSecretsTokenAuthProvider
cannot find the token that is already mounted on the broker when the embedded function worker is spinning up a separate function pod. When I had the JWT auth enabled and set, the
pf-secret-<id> (ca.pem and TOKEN)
, the volume, and volume mount were automatically created as part of the creation of the function. As I understood it, the embedded function worker on the broker inherits the permission of the broker and should have access to create those secrets. The broker actually shows logs of the function pod attempting connection with both the token and the TLS certs. Both methods fail because there is no secret mounting. Thanks in advance!