nodece opened a new pull request, #21013:
URL: https://github.com/apache/pulsar/pull/21013

   ### Motivation
   
   When authentication tls is enabled, the standalone cannot be running:
   ```
   2023-08-15T15:23:26,736+0200 [main] INFO  
org.apache.pulsar.functions.worker.WorkerUtils - Create Pulsar Admin to service 
url http://localhost:8080/: authPlugin = 
org.apache.pulsar.client.impl.auth.AuthenticationTls, authParams = 
{"tlsCertFile":"/Users/alex/Desktop/pulsar/apache-pulsar-3.0.0-tls/conf/tls-certs/client.cert.pem","tlsKeyFile":"/Users/alex/Desktop/pulsar/apache-pulsar-3.0.0-tls/conf/tls-certs/client.key-pk8.pem"},
 tlsTrustCerts = 
/Users/alex/Desktop/pulsar/apache-pulsar-3.0.0-tls/conf/tls-certs/ca.cert.pem, 
allowTlsInsecureConnection = false, enableTlsHostnameVerification = false
   2023-08-15T15:23:26,910+0200 [pulsar-web-48-15] WARN  
org.apache.pulsar.broker.web.AuthenticationFilter - [127.0.0.1] Failed to 
authenticate HTTP request: Authentication required
   2023-08-15T15:23:26,918+0200 [pulsar-web-48-15] INFO  
org.eclipse.jetty.server.RequestLog - 127.0.0.1 - - [15/Aug./2023:15:23:26 
+0200] "PUT /admin/v2/persistent/public/functions/assignments HTTP/1.1" 401 0 
"-" "Pulsar-Java-v3.0.0" 12
   ```
   
   The service URL is incorrect, which should be https://localhost:8081, not 
http://localhost:8080.
   
   ### Modifications
   
   - Fix check URL condition
   
   ### Verifying this change
   
   - [x] Make sure that the change passes the CI checks.
   
   Added a pulsar standalone with the authenticationTls test.
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->


-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to