hi-rustin commented on issue #20367:
URL: https://github.com/apache/pulsar/issues/20367#issuecomment-1556796358

   Without KOP:
   ```diff
   version: '3.5'
   
   services:
     standalone:
       container_name: standalone
       hostname: localhost
       image: streamnative/sn-pulsar:2.11.1.1
       command: >
         bash /waitForOAuth.sh
       environment:
   -    allowAutoTopicCreationType: partitioned
   -     brokerDeleteInactiveTopicsEnabled: "false"
   -    saslAllowedMechanisms: OAUTHBEARER
   -    kopOauth2AuthenticateCallbackHandler: 
io.streamnative.pulsar.handlers.kop.security.oauth.OauthValidatorCallbackHandler
   -    kopOauth2ConfigFile: /conf/kop-handler.properties
   -    PULSAR_PREFIX_messagingProtocols: kafka
   -    PULSAR_PREFIX_kafkaListeners: SASL_PLAINTEXT://0.0.0.0:9092
   -    PULSAR_PREFIX_kafkaAdvertisedListeners: SASL_PLAINTEXT://10.2.7.27:19092
         PULSAR_PREFIX_brokerEntryMetadataInterceptors: 
org.apache.pulsar.common.intercept.AppendIndexMetadataInterceptor
         PULSAR_PREFIX_authenticationEnabled: true
         PULSAR_PREFIX_authenticationProviders: 
org.apache.pulsar.broker.authentication.AuthenticationProviderToken
         PULSAR_PREFIX_brokerClientAuthenticationPlugin: 
org.apache.pulsar.client.impl.auth.oauth2.AuthenticationOAuth2
         PULSAR_PREFIX_brokerClientAuthenticationParameters: 
"{\"type\":\"client_credentials\",\"privateKey\":\"/conf/client_credentials.json\",\"issuerUrl\":\"https://trial-2125918.okta.com/oauth2/default\",\"scope\":
 \"pulsar\", \"audience\": \"api://default\"}"
         PULSAR_PREFIX_tokenSecretKey: "file:///pulsar/my-secret.key"
         LOGGING_LEVEL: debug
       ports:
         - 6650:6650
         - 8080:8080
         - 19092:9092
       volumes:
         - ./client_credentials.json:/conf/client_credentials.json
         - ./kop-handler.properties:/conf/kop-handler.properties
         - ./waitForOAuth.sh:/waitForOAuth.sh
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to