Skip to content

Commit

Permalink
fix pd cert allowed cn description (#17259) (#17265)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Apr 30, 2024
1 parent abeea4b commit ea06bb8
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 @@ -138,16 +138,17 @@ summary: 了解如何为 TiDB 集群内各组件间开启加密传输。

如希望进行组件调用者身份认证,需要在生证书时通过 `Common Name` 标识证书使用者身份,并在被调用者配置检查证书 `Common Name` 列表来检查调用者身份。

> **注意:**
>
> 目前 PD 的 `cert-allowed-cn` 配置项只能设置一个值。因此所有认证对象的 `commonName` 都要设置成同一个值。

- TiDB

在 `config` 文件或命令行参数中设置:

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

- TiKV
Expand All @@ -156,9 +157,7 @@ summary: 了解如何为 TiDB 集群内各组件间开启加密传输。

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

- PD
Expand All @@ -167,7 +166,7 @@ summary: 了解如何为 TiDB 集群内各组件间开启加密传输。

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

- TiFlash(从 v4.0.5 版本开始引入)
Expand All @@ -176,14 +175,14 @@ summary: 了解如何为 TiDB 集群内各组件间开启加密传输。

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

在 `tiflash-learner.toml` 文件中设置:

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

## 证书重新加载
Expand Down

0 comments on commit ea06bb8

Please sign in to comment.