Skip to content

Commit ab9c078

Browse files
add images and more text
1 parent 1209e38 commit ab9c078

File tree

6 files changed

+66
-1
lines changed

6 files changed

+66
-1
lines changed
426 KB
Loading
545 KB
Loading
389 KB
Loading
380 KB
Loading
498 KB
Loading

src/content/docs/privacy-gateway/privacy-proxy-onboarding.mdx

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,74 @@ sidebar:
66

77
---
88

9+
## System overview
10+
911
The Cloudflare Privacy Proxy consists of a generic HTTPS CONNECT (and CONNECT-UDP ) proxy.
1012
These may be used to ensure that knowledge of sensitive user information leaked in web traffic is not only available to those that need it to function.
1113

1214
A high level overview of the system is shown below. Control plane services are shown in orange, whereas dataplane services are shown in blue.
1315

14-
test
16+
![Privacy Proxy system overview](~/assets/images/privacy-gateway/privacy-proxy-system-overview.png)
17+
18+
The following components comprise the Privacy Proxy system:
19+
20+
- **Client**: The end-user making HTTP requests via the Privacy Proxy from within a web browser and/or other supported client.
21+
- **Attester**: The client-facing service that authenticates the validity of end-user accounts, validates entitlements, and requests a PAT from the issuer on behalf of the end-user. Not operated by Cloudflare.
22+
- **Privacy API**: Cloudflare service that issues PATs to the client for redemption against the Privacy Proxy service. This service mints Private Access Tokens (PATs) using the RSA blind signature protocol.
23+
- **Privacy Proxy**: The HTTP CONNECT-based proxy service running on Cloudflare’s edge. This service validates the PAT passed by the client, enforces any double spend prevention necessary for the token. The service handles proxying of the wrapped HTTP request, as well as selection of the egress path and IP.
24+
- **Origin**: The external (target) website for the end-user request.
25+
26+
DNS resolution uses [Cloudflare’s public resolver (1.1.1.1)](/1.1.1.1/) infrastructure for name resolution.
27+
28+
### System architecture
29+
30+
![System architecture](~/assets/images/privacy-gateway/system-architecture.png)
31+
32+
### Client initialization
33+
34+
A client requires configuration data (the region public key) to request tokens. The key is used to initialize the request for blinded tokens from the Privacy API.
35+
36+
The client should periodically refresh this public key, especially after IP address changes, since Cloudflare will use the IP address to map to the region.
37+
38+
This key should be kept in the client session across multiple requests.
39+
40+
![Client initialization](~/assets/images/privacy-gateway/client-initialization.png)
41+
42+
### Token issuance
43+
44+
After the client is configured, it will need privacy tokens in order to make requests.
45+
46+
When the token pool is low/empty, the client can use the stored region public key to create a batch of new blinded token requests to send to the Privacy API through the Token Proxy.
47+
48+
The Privacy API signs the tokens and returns them to the client, which can store them in a pool for later use.
49+
50+
![Token issuance](~/assets/images/privacy-gateway/token-issuance.png)
51+
52+
### Example client code
53+
54+
Cloudflare will provide access to a MASQUE client, which can be used in mobile client code to connect to the MASQUE proxy provided by Cloudflare. For example:
55+
56+
```sh
57+
cargo run --bin quiche-client -- \
58+
--no-verify \
59+
--connect-to masque-relay.cloudflare.com \
60+
--connect-type=HTTP \
61+
https://example.com
62+
```
63+
64+
### HTTP (Web) request flow
65+
66+
Once the client needs to make a connection to a new server, it can connect to the Cloudflare Proxy service and request a connection to the origin with a token in the ` Proxy-Authorization ` HTTP request header.
67+
68+
This connection can be kept alive for multiple requests/responses from the server.
69+
70+
![HTTP request flow](~/assets/images/privacy-gateway/http-request-flow.png)
71+
72+
## Environments
73+
74+
Cloudflare will provide access to both development and production environments.
75+
Credentials are shared across both environments.
76+
77+
| Environment | Endpoint | Description | |
78+
|--------------------- | -------------- |-----------|
79+
| | | |

0 commit comments

Comments
 (0)