Question
Tata Consultancy Services
Tata Consultancy Services
GB
Tata Consultancy Services
Posted: Oct 19, 2023
Last activity: Nov 1, 2023
Last activity: 1 Nov 2023 10:49 EDT
Solved
External Kafka Connection: Authentication
We would like to connect to the external Kafka cluster via OAuth 2.0 OpenID Connect authentication.
As per the below article, we didn't see any option for OAuth 2.0 authentication in kafka rule instance.
https://docs-previous.pega.com/decision-management/87/creating-kafka-configuration-instance
Is it possible to authenticate via OAuth 2.0 open id connect authentication in Pega via Kafka rule instance?
***Edited by Moderator Marije to add Capability tags***
@Vaisakh.V.A I haven't tried, but referencing the documentation from Confluent.
In the data instance, give Host and Port address as your Bootstrap Server and associated port, and give below information in your propeties file. The main differenciator is sasl.mechanism=OAUTHBEARER
security.protocol=SASL_SSL
sasl.oauthbearer.token.endpoint.url=https://myidp.example.com/oauth2/default/v1/token
sasl.login.callback.handler.class=org.apache.kafka.common.security.oauthbearer.secured.OAuthBearerLoginCallbackHandler
sasl.mechanism=OAUTHBEARER
sasl.jaas.config= \
org.apache.kafka.common.security.oauthbearer.OAuthBearerLoginModule required \
clientId='<client ID>' \
scope='<Requested Scope>' \
clientSecret='<Client Secret>' \
extension_logicalCluster='<Cluster ID>' \
extension_identityPoolId='<Pool ID>';