You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2021/02/18 05:54:30 UTC

[GitHub] [trafficserver] masaori335 opened a new pull request #7533: Add server_name option to proxy.config.ssl.client.sni_policy

masaori335 opened a new pull request #7533:
URL: https://github.com/apache/trafficserver/pull/7533


   To forward SNI in particular with the Partial Blind Tunnel case. It's almost the same as ` proxy.config.ssl.client.sni_policy=host` + `proxy.config.url_remap.pristine_host_hdr=1`, but we can't rely on `host` in the Partial Blind Tunnel case.


----------------------------------------------------------------
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.

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



[GitHub] [trafficserver] masaori335 merged pull request #7533: Add server_name option to proxy.config.ssl.client.sni_policy

Posted by GitBox <gi...@apache.org>.
masaori335 merged pull request #7533:
URL: https://github.com/apache/trafficserver/pull/7533


   


----------------------------------------------------------------
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.

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



[GitHub] [trafficserver] masaori335 commented on a change in pull request #7533: Add server_name option to proxy.config.ssl.client.sni_policy

Posted by GitBox <gi...@apache.org>.
masaori335 commented on a change in pull request #7533:
URL: https://github.com/apache/trafficserver/pull/7533#discussion_r595601556



##########
File path: proxy/http/HttpSM.cc
##########
@@ -4874,6 +4874,8 @@ HttpSM::get_outbound_sni() const
     int len;
     char const *ptr = t_state.hdr_info.server_request.host_get(&len);
     zret.assign(ptr, len);
+  } else if (ua_txn && !strcmp(policy, "server_name"_tv)) {
+    zret.assign(ua_txn->get_netvc()->get_server_name(), ts::TextView::npos);

Review comment:
       If the policy is not empty, unfortunately, yes. I agree with we should avoid these `strcmp` with fixed strings except `@...` format.
   
   https://docs.trafficserver.apache.org/en/latest/admin-guide/files/records.config.en.html?highlight=proxy.config.ssl.client.sni_policy#proxy-config-ssl-client-sni-policy




----------------------------------------------------------------
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.

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



[GitHub] [trafficserver] zwoop commented on pull request #7533: Add server_name option to proxy.config.ssl.client.sni_policy

Posted by GitBox <gi...@apache.org>.
zwoop commented on pull request #7533:
URL: https://github.com/apache/trafficserver/pull/7533#issuecomment-800582356






----------------------------------------------------------------
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.

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



[GitHub] [trafficserver] zwoop commented on a change in pull request #7533: Add server_name option to proxy.config.ssl.client.sni_policy

Posted by GitBox <gi...@apache.org>.
zwoop commented on a change in pull request #7533:
URL: https://github.com/apache/trafficserver/pull/7533#discussion_r595509611



##########
File path: proxy/http/HttpSM.cc
##########
@@ -4874,6 +4874,8 @@ HttpSM::get_outbound_sni() const
     int len;
     char const *ptr = t_state.hdr_info.server_request.host_get(&len);
     zret.assign(ptr, len);
+  } else if (ua_txn && !strcmp(policy, "server_name"_tv)) {
+    zret.assign(ua_txn->get_netvc()->get_server_name(), ts::TextView::npos);

Review comment:
       Hmmm, are we actually strcmp()'ing these policy strings (from the yaml) on every request??




----------------------------------------------------------------
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.

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