-
Notifications
You must be signed in to change notification settings - Fork 500
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
Auto generate and sign certificates for TLS enabled cluster #782
Merged
Merged
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
f31172f
discovery: add HTTPS URL support
AstroProfundis 5bb2384
tls: add basic support of certis
AstroProfundis 99956b7
tls: support tls client for pd
AstroProfundis 84cc8bd
tls: support tls client for controller
AstroProfundis 71bf08d
tls: update startup script templates
AstroProfundis ecfe87e
tls: fix configs
AstroProfundis 926073e
tls: fix health check for tidb
AstroProfundis e4b319a
tls: create new pd client when scheme changed
AstroProfundis 4da9be3
tls: fix return value when loading CAs
AstroProfundis 451011a
Merge branch 'master' into tls-stage1
AstroProfundis b6cd879
tls: fix test errors
AstroProfundis 030a04c
tls: fix typo in scripts
AstroProfundis b392aa2
Merge branch 'master' into tls-stage1
cofyc 4b27ddd
fix test errors
AstroProfundis 665e2fa
Merge branch 'tls-stage1' of github.com:AstroProfundis/tidb-operator …
AstroProfundis 57ff597
tls: change config name and use better layout
AstroProfundis d8e982e
tls: refine scheme detection
AstroProfundis 4f9bea5
tls: fix keys in templates
AstroProfundis 04a9b59
tls: fix test cases
AstroProfundis 0602bb5
Merge remote-tracking branch 'upstream' into tls-stage1
AstroProfundis eea2feb
Merge branch 'master' into tls-stage1
AstroProfundis 7d9d03b
tls: update coding styles
AstroProfundis 990b357
Merge branch 'master' into tls-stage1
AstroProfundis 8e5ba66
[WIP] tls: add basic cert generation functions
AstroProfundis 2d5dd87
tls: add basic definitions of cert controller
AstroProfundis f5cbf7f
tls: add auto approver for CSRs
AstroProfundis 93402b0
tls: save certificates to secrets
AstroProfundis 65f2567
tls: add generating cert for pd
AstroProfundis d7eb4f4
tls: add generating cert for tidb and tikv
AstroProfundis 8675b05
tls: update statefulset and configs
AstroProfundis dfaa79b
tls: generate and sign certs automatically for new statefulsets
AstroProfundis 813eb6b
tls: cleanup approved csr object after saving key pair to secret
AstroProfundis 6380c96
tls: add labels to secrets
AstroProfundis fc44046
tls: rewrite exist csr if it was created by us
AstroProfundis 8862e18
tls: generate client certs for discovery
AstroProfundis 327b53b
tls: generate client certs for discovery
AstroProfundis ad7e4ad
tls: generate client certs for controller manager
AstroProfundis a8d526c
tls: read client certs from secret directly
AstroProfundis 9b7d18c
tls: fix messed variable names after rebase
AstroProfundis 227def6
tls: update charts and secret names
AstroProfundis 6eae832
tls: fix certificate generating and loading for client requests
AstroProfundis 12a60ea
tls: apply changes to other chart templates
AstroProfundis 5b2a1c3
tls: fix monitoring when TLS clueter is enabled
AstroProfundis 78b2860
tls: use seperate certs for tidb client and server
AstroProfundis 5a12d06
tls: fix test errors
AstroProfundis 2aaa919
tls: validate certs in exist secrets
AstroProfundis 6a1dd49
tls: an workaround to get tikv metrics when TLS is enabled
AstroProfundis 2c95860
tls: fix more template coding styles
AstroProfundis 92a8e98
tls: refine csr & secret management
AstroProfundis 4525e37
tls: update regex in prometheus config
AstroProfundis ee807e9
tests: basic support for TLS in e2e tests
AstroProfundis fce4683
Merge branch 'master' into tls-auto-sign
AstroProfundis a243d90
Merge branch 'master' into tls-auto-sign
AstroProfundis 0280899
tls: update coding styles
AstroProfundis f206b08
tls: remove cert generating for controller manager
AstroProfundis 9c45b97
Merge branch 'master' into tls-auto-sign
AstroProfundis 5c65005
tls: fix test errors
AstroProfundis d847d40
e2e: disable PD scaling for TLS enabled cluster
AstroProfundis 43578ee
Merge branch 'master' into tls-auto-sign
AstroProfundis 0e455fe
Merge branch 'master' into tls-auto-sign
AstroProfundis 1a7a78b
Revert "e2e: disable PD scaling for TLS enabled cluster"
AstroProfundis 53d9656
Merge branch 'master' into tls-auto-sign
AstroProfundis 2536060
tls: update dependency of glog to klog
AstroProfundis 3ddbe77
tls: update e2e test
AstroProfundis 8dbb955
tls: fix secret name for tidb server TLS cert
AstroProfundis 7067a6d
tls: fix go tidy
AstroProfundis 26edb7e
tls: fix test errors
AstroProfundis a80e244
tls: use a global scheme template in manifests
AstroProfundis deb628c
Merge branch 'master' into tls-auto-sign
AstroProfundis 8bb8f53
Merge branch 'master' into tls-auto-sign
tennix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refer #750 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding
security
config section here is fragile, users may provide this section in the.Values.pd.config
too thus causing invalid configuration file.