Skip to content
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

Document how to share JAAS configuration accross clusters #2491

Open
nbarrientos opened this issue Jun 14, 2024 · 3 comments
Open

Document how to share JAAS configuration accross clusters #2491

nbarrientos opened this issue Jun 14, 2024 · 3 comments
Assignees

Comments

@nbarrientos
Copy link

nbarrientos commented Jun 14, 2024

HI,

If I'm interpreting the documentation correctly, the JAAS configuration to talk to a Kafka cluster say using GSSAPI has to be specified in cluster-api's application.properties via the key:

clusterid.kafkasasl.jaasconfig.gssapi

However, I've declared a JAAS configuration like this (sorry, pseudoconfig Helm/K8s configmap):

  jaas: |
    KafkaAdminClient {
      com.sun.security.auth.module.Krb5LoginModule required
      useKeyTab=true
      storeKey=true
      serviceName={{ .Values.auth.serviceName }}
      keyTab="{{ .Values.auth.keytabPath }}"
      principal="{{ .Values.auth.keytabPrincipal }}";
    };
    KafkaClient {
      com.sun.security.auth.module.Krb5LoginModule required
      useKeyTab=true
      storeKey=true
      serviceName={{ .Values.auth.serviceName }}
      keyTab="{{ .Values.auth.keytabPath }}"
      principal="{{ .Values.auth.keytabPrincipal }}";
    };

that I feed to the cluster-api component via:

          command: ["java"]
          args:
            - "-Djava.security.auth.login.config=/config/jaasclient.conf"
            - "-jar"
            - "klaw-cluster-api.jar"

and it seems to work. This is convenient in our case as we share the same conn credentials that Klaw uses to talk to all our clusters.

Would it make sense to add this to the docs? (maybe to the FAQ?) I can submit a MR if you fancy.

Thanks.

@aindriu-aiven
Copy link
Contributor

@muralibasani Would you be able to look at this?

@aindriu-aiven
Copy link
Contributor

@nbarrientos Thank you for your contribution I think it definitely makes sense to add to the docs, I've just asked Murali to look at it because this is an area he has a bit more hands on experience.

Sorry for the delay in getting back to you we really appreciate your feedback and input!

@muralibasani muralibasani self-assigned this Jun 20, 2024
@muralibasani
Copy link
Contributor

muralibasani commented Jun 20, 2024

@nbarrientos yes that would work too and any other ssl properties as well, just that they are not part of klaw configs, someone has to administer them.

If you like to submit a MR, pls feel free to. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants