Skip to content

Commit

Permalink
fix pd cert allowed cn description (#17397)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfxsd authored Apr 30, 2024
1 parent f3ce2a9 commit 791b808
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions enable-tls-between-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,17 @@ The Common Name is used for caller verification. In general, the callee needs to

To verify component caller's identity, you need to mark the certificate user identity using `Common Name` when generating the certificate, and to check the caller's identity by configuring the `Common Name` list for the callee.

> **Note:**
>
> Currently the `cert-allowed-cn` configuration item of the PD can only be set to one value. Therefore, the `commonName` of all authentication objects must be set to the same value.

- TiDB

Configure in the configuration file or command-line arguments:

```toml
[security]
cluster-verify-cn = [
"TiDB-Server",
"TiKV-Control",
]
cluster-verify-cn = ["TiDB"]
```

- TiKV
Expand All @@ -176,9 +177,7 @@ To verify component caller's identity, you need to mark the certificate user ide

```toml
[security]
cert-allowed-cn = [
"TiDB-Server", "PD-Server", "TiKV-Control", "RawKvClient1",
]
cert-allowed-cn = ["TiDB"]
```

- PD
Expand All @@ -187,7 +186,7 @@ To verify component caller's identity, you need to mark the certificate user ide

```toml
[security]
cert-allowed-cn = ["TiKV-Server", "TiDB-Server", "PD-Control"]
cert-allowed-cn = ["TiDB"]
```

- TiFlash (New in v4.0.5)
Expand All @@ -196,14 +195,14 @@ To verify component caller's identity, you need to mark the certificate user ide

```toml
[security]
cert_allowed_cn = ["TiKV-Server", "TiDB-Server"]
cert_allowed_cn = ["TiDB"]
```

Configure in the `tiflash-learner.toml` file:

```toml
[security]
cert-allowed-cn = ["PD-Server", "TiKV-Server", "TiFlash-Server"]
cert-allowed-cn = ["TiDB"]
```

## Reload certificates
Expand Down

0 comments on commit 791b808

Please sign in to comment.