Skip to content

Conversation

@Jennifer88huang-zz
Copy link
Contributor

Fixes #7421

Motivation

The sidebar.json file is not updated, so the content added in the .md file is not displayed on website.

Modifications

  1. Update the sidebar.
  2. Update some technical description, to be more clear and concise.

@Jennifer88huang-zz Jennifer88huang-zz changed the title Update sidebar.json for proxy-sni [WIP] Add sidebar for "Pulasr SNI routing with ATS" content Jul 7, 2020
@Jennifer88huang-zz Jennifer88huang-zz self-assigned this Jul 7, 2020
@Jennifer88huang-zz Jennifer88huang-zz added doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. release/2.6.1 labels Jul 7, 2020
@Jennifer88huang-zz Jennifer88huang-zz added this to the 2.7.0 milestone Jul 7, 2020
@Jennifer88huang-zz
Copy link
Contributor Author

I haven't finished refining yet, please do not review the content currently.

Pulsar clients support [SNI routing protocol](https://github.com/apache/pulsar/wiki/PIP-60:-Support-Proxy-server-with-SNI-routing), so you can connect to brokers through the proxy. You learn how to set up the ATS proxy and the Pulsar client to enable SNI routing, and connect Pulsar client to the broker through the ATS proxy.
Pulsar clients support [SNI routing protocol](https://github.com/apache/pulsar/wiki/PIP-60:-Support-Proxy-server-with-SNI-routing), so you can connect to brokers through the proxy. You learn how to set up the ATS proxy, enable SNI routing, and connect Pulsar client to the broker through the ATS proxy.

### ATS-SNI Routing in Pulsar
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has to be 3rd level header and not main header.

```

#### Pulsar geo-replication with SNI routing
## Pulsar geo-replication with SNI routing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again it has to be sub-section and therefore we kept it 4-level header.

@Jennifer88huang-zz
Copy link
Contributor Author

@rdhabalia thank you very much for your advice. I'll ping you when I finish the structure and content refining.

@Jennifer88huang-zz
Copy link
Contributor Author

@rdhabalia Thank you again for your advice. I've finished refining the content. PTAL again, thank you.
Meanwhile, I've adopted your original heading styles, and you can have a preview of the output on our website. When we use three and four level headings, it will not displayed on the navigation (right side). It's not easy for users to find info. I suggest we use two or three heading. That's why i'm trying to adjust your structure.
image

You can also check examples on Layer 4 Routing. They use 2 or 3 level headings. It provides readers direct view on the main content.
image

So if you agree, we can work together to refine the structure.

@Jennifer88huang-zz Jennifer88huang-zz changed the title [WIP] Add sidebar for "Pulasr SNI routing with ATS" content Add sidebar for "Pulasr SNI routing with ATS" content Jul 9, 2020
@Jennifer88huang-zz
Copy link
Contributor Author

@Anonymitaet Thanks for your reviewing.
@rdhabalia do you have any suggestion on the structure?

Copy link
Contributor

@Huanli-Meng Huanli-Meng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leave my comments, PTAL

A proxy server is an intermediary server that forwards requests from multiple clients to different servers across the Internet. The proxy server acts as a "traffic cop" in both forward and reverse proxy scenarios, and benefits your system such as load balancing, performance, security, auto-scaling, and so on.

A proxy server is an intermediary server that forwards requests from multiple clients to different servers across the Internet. The proxy server acts as a "traffic cop" in both forward and reverse proxy scenarios, and brings various benefits to your system such as load balancing, performance, security, auto-scaling, etc. There are already many proxy servers available in the market which are fast and scalable. More importantly, these proxy servers cover various essential security aspects that are needed by large organizations to securely share their confidential data over the network. Pulsar provides a proxy implementation which acts as a reverse proxy and creates a gateway in front of brokers. However, pulsar does not supports using other proxies such as Apache Traffic Server (ATS), HAProxy, Nginx, and Envoy. These proxies are more scalable and secured. Most of these proxy-servers support **SNI routing** which is used to route traffic to a destination without terminating the SSL connection. Routing at layer 4 provides greater transparency because the outbound connection is determined by examining the destination address in the client TCP packets.
The proxy in Pulsar acts as a reverse proxy, and creates a gateway in front of brokers. Proxies such as Apache Traffic Server (ATS), HAProxy, Nginx, and Envoy are not supported in Pulsar. These proxy-servers support **SNI routing**. SNI routing is used to route traffic to a destination without terminating the SSL connection. Routing at layer 4 provides greater transparency because the outbound connection is determined by examining the destination address in the client TCP packets.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change "routing at layer 4" to Layer 4 routing or Layer 4 SIN routing to make it consistent all through the document?


To support SNI routing, you need to configure two files: `records.conf` and `ssl_server_name.conf`.

The [records.config](https://docs.trafficserver.apache.org/en/latest/admin-guide/files/records.config.en.html) file is located in the `/usr/local/etc/trafficserver/` directory by default. The file lists configurable variables used by the Apache Traffic Server.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the above, "Apache Traffic Server" is abbreviated to "ATS", so here should be an abbreviation.


- `records.conf`:
The [records.config fil](https://docs.trafficserver.apache.org/en/latest/admin-guide/files/records.config.en.html) (By default, it is located in `/usr/local/etc/trafficserver/`.) is a list of configurable variables used by the Apache Traffic Server and we have to update this file with TLS port (`http.server_ports`) on which proxy can listen and proxy certs (`ssl.client.cert.path` and `ssl.client.cert.filename`) for secure TLS tunneling. We also have to configure a range of server ports (`http.connect_ports`) that can be used for tunneling to the broker. If Pulsar brokers are listening on ports 4443 and 6651 then add the brokers’ service port in http.connect_ports configuration.
To configure the `records.config` files, complete the following steps.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is a step, there should be an ordered list instead of unordered list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. release/2.6.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants