Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zh,en: update tls config #228

Merged
merged 18 commits into from
Aug 17, 2020
Merged

zh,en: update tls config #228

merged 18 commits into from
Aug 17, 2020

Conversation

GMHDBJD
Copy link
Collaborator

@GMHDBJD GMHDBJD commented Aug 14, 2020

What is changed, added or deleted? (Required)

add tls config in source config file and task config file.

Which DM version(s) do your changes apply to? (Required)

  • master (the latest development version, including v2.0 changes for now)
  • v1.0 (TiDB DM 1.0 versions)

What is the related PR or file link(s)?

  • This PR is translated from:
  • Other reference link(s):

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Have version specific changes
  • Might cause conflicts

@ireneontheway ireneontheway added status/PTAL This PR is ready for reviewing. translation/welcome Waits for a contributor to translate this PR to docs-dm/zh or docs-dm/en. v2.0 This PR/issue applies to TiDB DM v2.0. labels Aug 14, 2020
@ireneontheway ireneontheway added translation/no-need The changes in this PR don't need to be translated. and removed translation/welcome Waits for a contributor to translate this PR to docs-dm/zh or docs-dm/en. labels Aug 14, 2020
Copy link
Contributor

@ireneontheway ireneontheway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-srebot
Copy link
Contributor

@ireneontheway,Thanks for your review. However, LGTM is restricted to Reviewers or higher roles.See the corresponding SIG page for more information. Related SIGs: docs(slack).

Copy link
Contributor

@ireneontheway ireneontheway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest LGTM

en/task-configuration-file-full.md Outdated Show resolved Hide resolved
Co-authored-by: ireneontheway <48651140+ireneontheway@users.noreply.github.com>
Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 14, 2020
@csuzhangxc
Copy link
Member

BTW @GMHDBJD we also support to set TLS config for DM components, do we need to update docs too?

@GMHDBJD
Copy link
Collaborator Author

GMHDBJD commented Aug 14, 2020

Will add a TLS tutorials later. PTAL again.

Comment on lines 34 to 36
ssl-ca: "/path/to/ca.pem"
ssl-cert: "/path/to/cert.pem"
ssl-key: "/path/to/key.pem"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the config format is TOML, not YAML here.

Comment on lines 28 to 30
ssl-ca: "/path/to/ca.pem"
ssl-cert: "/path/to/cert.pem"
ssl-key: "/path/to/key.pem"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto.

Comment on lines 33 to 36
ssl-ca: "/path/to/ca.pem"
ssl-cert: "/path/to/cert.pem"
ssl-key: "/path/to/key.pem"
cert-allowed-cn = ["dm"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto.

Comment on lines 26 to 28
ssl-ca: "/path/to/ca.pem"
ssl-cert: "/path/to/cert.pem"
ssl-key: "/path/to/key.pem"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto.

@@ -47,3 +51,7 @@ join = ""
| `advertise-peer-urls` | DM-master 向外界宣告的对等 URL。默认为 `peer-urls` 的值。|
| `initial-cluster` | 初始集群中所有 DM-master 的 `advertise-peer-urls` 的值。|
| `join` | 集群里已有的 DM-master 的 `advertise-peer-urls` 的值。如果是新加入的 DM-master 节点,使用 `join` 替代 `initial-cluster`。|
| `ssl-ca` | DM-master 组件 SSL CA 证书所在的路径 |
| `ssl-cert` | DM-master 组件用于连接的 PEM 格式的 X509 证书所在的路径 |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用于连接 要加一个宾语吗?

@@ -49,3 +54,7 @@ This section introduces the configuration parameters of DM-master.
| `advertise-peer-urls` | Specifies the peer URL that DM-master advertises to the outside world. The value of `advertise-peer-urls` is by default the same as that of `peer-urls`. |
| `initial-cluster` | The value of `initial-cluster` is the combination of the `advertise-peer-urls` value of all DM-master nodes in the initial cluster. |
| `join` | The value of `join` is the combination of the `advertise-peer-urls` value of the existed DM-master nodes in the cluster. If the DM-master node is newly added, replace `initial-cluster` with `join`. |
| `ssl-ca` | Path of file that contains list of trusted SSL CAs for connection with DM-master components. |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does English version need to update?

@@ -36,3 +41,7 @@ join = "127.0.0.1:8261,127.0.0.1:8361,127.0.0.1:8461"
| `worker-addr` | DM-worker 服务的地址,可以省略 IP 信息,例如:":8262"。|
| `advertise-addr` | DM-worker 向外界宣告的地址。 |
| `join` | 对应一个或多个 DM-master 配置中的 [`master-addr`](dm-master-configuration-file.md#global-配置)。 |
| `ssl-ca` | DM-worker 组件用于连接其它组件的 SSL CA 证书所在的路径 |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

哦,好像它们自己也还用这个参数来监听连接

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

稍微改了一下

Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@csuzhangxc
Copy link
Member

@ireneontheway PTAL again?

Copy link
Contributor

@ireneontheway ireneontheway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest LGTM

en/dm-master-configuration-file.md Outdated Show resolved Hide resolved
en/dm-master-configuration-file.md Outdated Show resolved Hide resolved
en/dm-master-configuration-file.md Outdated Show resolved Hide resolved
en/source-configuration-file.md Outdated Show resolved Hide resolved
en/task-configuration-file-full.md Outdated Show resolved Hide resolved
en/dm-worker-configuration-file.md Outdated Show resolved Hide resolved
en/dm-worker-configuration-file.md Outdated Show resolved Hide resolved
en/dm-worker-configuration-file.md Outdated Show resolved Hide resolved
GMHDBJD and others added 9 commits August 17, 2020 14:35
Co-authored-by: ireneontheway <48651140+ireneontheway@users.noreply.github.com>
Co-authored-by: ireneontheway <48651140+ireneontheway@users.noreply.github.com>
Co-authored-by: ireneontheway <48651140+ireneontheway@users.noreply.github.com>
Co-authored-by: ireneontheway <48651140+ireneontheway@users.noreply.github.com>
Co-authored-by: ireneontheway <48651140+ireneontheway@users.noreply.github.com>
Co-authored-by: ireneontheway <48651140+ireneontheway@users.noreply.github.com>
Co-authored-by: ireneontheway <48651140+ireneontheway@users.noreply.github.com>
Co-authored-by: ireneontheway <48651140+ireneontheway@users.noreply.github.com>
@GMHDBJD
Copy link
Collaborator Author

GMHDBJD commented Aug 17, 2020

@ireneontheway PTAL again, thx

Copy link
Contributor

@ireneontheway ireneontheway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-srebot
Copy link
Contributor

@ireneontheway,Thanks for your review. However, LGTM is restricted to Reviewers or higher roles.See the corresponding SIG page for more information. Related SIGs: docs(slack).

@csuzhangxc
Copy link
Member

@TomShawn two LGTM now, PTAL

@TomShawn TomShawn merged commit ebbeb39 into pingcap:master Aug 17, 2020
@lilin90 lilin90 added translation/done This PR has been translated. and removed translation/no-need The changes in this PR don't need to be translated. labels Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT1 Indicates that a PR has LGTM 1. status/PTAL This PR is ready for reviewing. translation/done This PR has been translated. v2.0 This PR/issue applies to TiDB DM v2.0.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants