From 8c4dd2ecd1ce243918eabe288a31d520a870ef0e Mon Sep 17 00:00:00 2001 From: ti-srebot <66930949+ti-srebot@users.noreply.github.com> Date: Fri, 18 Dec 2020 19:44:00 +0800 Subject: [PATCH] Add TiFlash security configuration (#5094) (#5130) * cherry pick #5094 to release-4.0 Signed-off-by: ti-srebot * Apply suggestions from code review Co-authored-by: JaySon Co-authored-by: JaySon --- tiflash/tiflash-configuration.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tiflash/tiflash-configuration.md b/tiflash/tiflash-configuration.md index e9ce47498abd..d68a3592eefc 100644 --- a/tiflash/tiflash-configuration.md +++ b/tiflash/tiflash-configuration.md @@ -81,6 +81,15 @@ minmax_index_cache_size = 5368709120 # 数据块 min-max 索引的内存 cache dt_enable_logical_split = true # 存储引擎的 segment 分裂是否使用逻辑分裂。使用逻辑分裂可以减小写放大,提高写入速度,但是会造成一定的空间浪费。默认为 true max_memory_usage = 0 # 单次 coprocessor 查询过程中,对中间数据的内存限制,单位为 byte,默认为 0,表示不限制 max_memory_usage_for_all_queries = 0 # 所有查询过程中,对中间数据的内存限制,单位为 byte,默认为 0,表示不限制 + +## 安全相关配置,从 v4.0.5 开始生效 +[security] + ## 包含可信 SSL CA 列表的文件路径。如果你设置了该值,`cert_path` 和 `key_path` 中的路径也需要填写 + # ca_path = "/path/to/ca.pem" + ## 包含 PEM 格式的 X509 certificate 文件路径 + # cert_path = "/path/to/tiflash-server.pem" + ## 包含 PEM 格式的 X509 key 文件路径 + # key_path = "/path/to/tiflash-server-key.pem" ``` ### 配置文件 tiflash-learner.toml