You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| CADENCE_GRPC_TLS_CA_FILE | Path to root CA certificate file for enabling one-way TLS on gRPC connections | '' |
24
25
25
26
Note: To connect `cadence-web` to multiple clusters, you will need to add comma-delimted entries for `CADENCE_GRPC_PEERS`, `CADENCE_GRPC_SERVICES_NAMES` & `CADENCE_CLUSTERS_NAMES` for each cluster (each cluster values are grouped by their index within the Comma-delimited lists).
26
27
@@ -39,6 +40,33 @@ The latest version of `cadence-web` is included in the `cadence` composed docker
39
40
docker-compose -f docker/docker-compose.yml up
40
41
```
41
42
43
+
### Using TLS for gRPC
44
+
45
+
You can run cadence-web with secure gRPC TLS communication by passing your CA certificate file to the container and configure the environment variable accordingly.
46
+
47
+
#### Steps to Pass the Certificate File in Docker
48
+
49
+
1.**Prepare your CA certificate file:**
50
+
Ensure you have the root CA file (e.g., `ca.pem`) accessible on your host machine.
51
+
52
+
2.**Mount the certificate file into the container:**
53
+
Use Docker volume mounting (`-v` or `--volume`) to make the certificate file available inside the container at a known path.
54
+
55
+
3.**Set the `CADENCE_GRPC_TLS_CA_FILE` environment variable to the mounted certificate path:**
56
+
57
+
Example command (for Linux):
58
+
59
+
```bash
60
+
docker run -it --rm \
61
+
-p 8088:8088 \
62
+
-v /path/on/host/ca.pem:/etc/certs/ca.pem:ro \
63
+
-e CADENCE_GRPC_TLS_CA_FILE=/etc/certs/ca.pem \
64
+
ubercadence/server:master-auto-setup
65
+
```
66
+
67
+
- Replace `/path/on/host/ca.pem` with the actual location of your CA certificate on the host system.
68
+
-`CADENCE_GRPC_TLS_CA_FILE` must point to the path inside the container where the certificate is mounted.
69
+
42
70
### Building & developing cadence-web
43
71
44
72
`cadence-web` requires node `v18` or greater to be able to run correctly.
@@ -98,12 +126,13 @@ You can customize the YAML file or reuse configurations from the [cadence reposi
98
126
After running `cadence`, start `cadence-web` for development using one of the previous methods ([Running development environment](#running-development-environment), [VSCode Dev Containers](#using-vscode-dev-containers))
0 commit comments