You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/07/06 08:55:19 UTC
[GitHub] [pulsar] fantapsody opened a new issue, #16416: The pulsar-admin doesn't set SNI properly when `tlsEnableHostnameVerification` is `false`
fantapsody opened a new issue, #16416:
URL: https://github.com/apache/pulsar/issues/16416
**Describe the bug**
The async-http-client used in pulsar-admin doesn't set SNI properly when `tlsEnableHostnameVerification` is `false`, see https://github.com/AsyncHttpClient/async-http-client/blob/master/client/src/main/java/org/asynchttpclient/netty/ssl/DefaultSslEngineFactory.java#L65. This will fail https requests that rely on SNI routing, like a pulsar cluster deployed behind an istio gateway.
The behavior was introduced in the PR https://github.com/apache/pulsar/pull/15824 since the async-http-client doesn't split the flag for SNI header and hostname verification. @michaeljmarshall
**To Reproduce**
Set `tlsEnableHostnameVerification` to `false` in the `client.conf`, and use pulsar-admin to operate a pulsar cluster behind the istio gateway.
**Expected behavior**
The pulsar-admin should set the SNI header properly.
**Screenshots**
N/A
**Desktop (please complete the following information):**
- OS: MAC OS X
**Additional context**
--
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-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] michaeljmarshall commented on issue #16416: The pulsar-admin doesn't set SNI properly when `tlsEnableHostnameVerification` is `false`
Posted by GitBox <gi...@apache.org>.
michaeljmarshall commented on issue #16416:
URL: https://github.com/apache/pulsar/issues/16416#issuecomment-1177053671
@fantapsody - can you please provide the stack trace for the error you're seeing?
--
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-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] codelipenghui closed issue #16416: The pulsar-admin doesn't set SNI properly when `tlsEnableHostnameVerification` is `false`
Posted by GitBox <gi...@apache.org>.
codelipenghui closed issue #16416: The pulsar-admin doesn't set SNI properly when `tlsEnableHostnameVerification` is `false`
URL: https://github.com/apache/pulsar/issues/16416
--
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-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] fantapsody commented on issue #16416: The pulsar-admin doesn't set SNI properly when `tlsEnableHostnameVerification` is `false`
Posted by GitBox <gi...@apache.org>.
fantapsody commented on issue #16416:
URL: https://github.com/apache/pulsar/issues/16416#issuecomment-1186655598
@michaeljmarshall The admin command doesn't give too much useful information:
```
./bin/pulsar-admin --admin-url https://$HOST --auth-params $TOKEN --auth-plugin org.apache.pulsar.client.impl.auth.AuthenticationToken tenants list
null
Reason: java.util.concurrent.CompletionException: org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector$RetryException: Could not complete the operation. Number of retries has been exhausted. Failed reason: https://xxx:443
```
--
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-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] github-actions[bot] commented on issue #16416: The pulsar-admin doesn't set SNI properly when `tlsEnableHostnameVerification` is `false`
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #16416:
URL: https://github.com/apache/pulsar/issues/16416#issuecomment-1217383026
The issue had no activity for 30 days, mark with Stale label.
--
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-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org