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

TiDB Cluster/Client TLS support implementation in TiDB Operator #1855

Closed
36 of 52 tasks
weekface opened this issue Mar 3, 2020 · 1 comment
Closed
36 of 52 tasks

TiDB Cluster/Client TLS support implementation in TiDB Operator #1855

weekface opened this issue Mar 3, 2020 · 1 comment
Assignees
Labels

Comments

@weekface
Copy link
Contributor

weekface commented Mar 3, 2020

To support various certificate issuers and methods, for example: user-defined certificates, K8s builtin CA system or cert-manager, we will refactor the TiDB Cluster/Client TLS feature with new API and new usage.

First, we will change the Cluster/Client TLS API to:

tlsCluster:
  enabled: true

tidb:
  tlsClient:
    enabled: true

That is all the whole API we needed.

If the user set tlsCluster.enabled to true, then tidb-operator will assume that there are several Secrets named with: <cluster-name>-pd-cluster-secret, <cluster-name>-tikv-cluster-secret, <cluster-name>-tidb-cluster-secret, <cluser-name>-cluster-client-secret and other TiDB components's Secrets are created.

Each Secret data should have three keys: tls.crt, tls.key and ca.crt:

apiVersion: v1
kind: Secret
metadata:
  name: <secret-name>
data:
  tls.crt: <base64 decoded certificate data>
  tls.key: <base64 decode key data>
  ca.crt: <base64 decode ca data>

These Secrets can be created by the use manually, by K8s builtin CA system or by cert-manager. PD/TiKV/TiDB/... will use these Secrets to start server.

tidb-operator will not supply these certificates automatically.

There are several tasks:

Low priority or do not do issues:

@cofyc cofyc added this to the v1.1.0 milestone Mar 9, 2020
@DanielZhangQD DanielZhangQD removed this from the v1.1.0 milestone May 6, 2020
@cofyc cofyc added the status/WIP Issue/PR is being worked on label Jun 8, 2020
@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants