Skip to content

Commit 173f948

Browse files
authored
tiproxy: add note about reloading certificates once an hour (#21171)
1 parent 876e92f commit 173f948

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

enable-tls-between-components.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,10 @@ aliases: ['/docs-cn/dev/enable-tls-between-components/','/docs-cn/dev/how-to/sec
245245

246246
## 证书重新加载
247247

248-
- 如果 TiDB 集群部署在本地的数据中心,TiDB、PD、TiKV、TiFlash、TiCDC、TiProxy 和各种 client 在每次新建相互通讯的连接时都会重新读取当前的证书和密钥文件内容,实现证书和密钥的重新加载,无需重启 TiDB 集群。
248+
- 如果 TiDB 集群部署在本地的数据中心,TiDB、PD、TiKV、TiFlash、TiCDC 和各种 client 在每次新建相互通讯的连接时都会重新读取当前的证书和密钥文件内容,实现证书和密钥的重新加载,无需重启 TiDB 集群。
249+
250+
- TiProxy 每小时会从磁盘重新加载一次证书。
251+
249252
- 如果 TiDB 集群部署在自己管理的 Cloud,TLS 证书的签发需要与云服务商的证书管理服务集成,TiDB、PD、TiKV、TiFlash、TiCDC、TiProxy 组件的 TLS 证书支持自动轮换,无需重启 TiDB 集群。
250253

251254
## 证书有效期

tiproxy/tiproxy-configuration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ server_configs:
222222

223223
### security
224224

225+
> **注意:**
226+
>
227+
> TiProxy 每小时会从磁盘重新加载一次证书。因此,磁盘上证书文件的变更最多可能需要一小时才能生效。
228+
225229
在 `[security]` 部分有四个名称不同的 TLS 对象,它们共享相同的配置格式和字段,但是不同名称对象的字段解释可能不同。
226230

227231
```toml

0 commit comments

Comments
 (0)