apisix icon indicating copy to clipboard operation
apisix copied to clipboard

request help: How to do that make apisix not strictly abide by the SNI protocol

Open StretchV opened this issue 5 years ago • 8 comments

Issue description

Environment

  • apisix version (cmd: apisix version): 2.5

When the HTTPS passes Alibaba cloud's WAF, the SNI protocol is lost and apisix directly reports an error of sni

StretchV avatar Jul 29 '21 02:07 StretchV

This is a known bug of aliyun's WAF. It doesn't proxy the SNI even in 2021.

spacewander avatar Jul 29 '21 03:07 spacewander

Can apisix add a switch to control whether apixis is strictly SNI

StretchV avatar Jul 29 '21 03:07 StretchV

My suggestion is to use another cloud vendor which WAF works in a modern way. It's technically impossible to load certificates dynamically without knowing the SNI, unless you can deploy your own TLS handshake protocol.

spacewander avatar Jul 29 '21 03:07 spacewander

There are many historical reasons why the exchange WAF cost is too high,What I mean is to return a default without getting SNI instead of directly returning it, like ingress

StretchV avatar Jul 29 '21 03:07 StretchV

Duplicate of https://github.com/apache/apisix/issues/3147 See my suggestion in https://github.com/apache/apisix/issues/3147#issuecomment-752039772. The thing may change since it is written a half year ago. If you submit a PR we can accept it.

spacewander avatar Jul 29 '21 03:07 spacewander

My suggestion is to use another cloud vendor which WAF works in a modern way. It's technically impossible to load certificates dynamically without knowing the SNI, unless you can deploy your own TLS handshake protocol.

AliCloud is the largest cloud vendor in China, and changing the WAF is no longer just a software issue, but an enterprise capital issue.

Are there other better ways, such as allowing users to configure their own default certificates, rather than just rejecting them and thus making them unavailable?

eddycjy avatar Jul 29 '21 03:07 eddycjy

I already provide a suggestion about how to do that.

Duplicate of #3147 See my suggestion in #3147 (comment). The thing may change since it is written a half year ago. If you submit a PR we can accept it.

spacewander avatar Jul 29 '21 03:07 spacewander

Also, it is a piece of good news for Tencent cloud and Huawei cloud, and other cloud vendors. If Aliyun WAF doesn't even support proxying SNI in 2021, why not take a look at other cloud vendors which probably do better?

spacewander avatar Jul 29 '21 04:07 spacewander