-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
security: support multiple CN for TLS connections #8518
Conversation
Skipping CI for Draft Pull Request. |
cfg.ClientTLSInfo.ClientCertAuth = len(c.Security.CAPath) != 0 | ||
cfg.ClientTLSInfo.TrustedCAFile = c.Security.CAPath | ||
cfg.ClientTLSInfo.CertFile = c.Security.CertPath | ||
cfg.ClientTLSInfo.KeyFile = c.Security.KeyPath | ||
// Client no need to set the CN. (cfg.ClientTLSInfo.AllowedCN = allowedCN) | ||
// Keep compatibility with https://github.com/tikv/pd/pull/2305 |
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.
Is it necessary?
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8518 +/- ##
==========================================
- Coverage 77.66% 77.64% -0.02%
==========================================
Files 474 474
Lines 61884 61851 -33
==========================================
- Hits 48061 48026 -35
- Misses 10277 10301 +24
+ Partials 3546 3524 -22
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
Manual test script
t.yml
scale-out.yml
config file
result |
Signed-off-by: lhy1024 <admin@liudos.us>
Signed-off-by: lhy1024 <admin@liudos.us>
// CertAllowedCN is a CN which must be provided by a client | ||
CertAllowedCN []string `toml:"cert-allowed-cn" json:"cert-allowed-cn"` | ||
// CertAllowedCNs is the list of CN which must be provided by a client | ||
CertAllowedCNs []string `toml:"cert-allowed-cn" json:"cert-allowed-cn"` |
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.
This parameter doesn't be used. It seems like we can remove this parameter directly, maybe we can discuss it in another issue.
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.
plz help to update doc as well :)
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: HuSharp, niubell, rleungx The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Manual test scriptt.yml
config fileNote: we need add result |
What problem does this PR solve?
Issue Number: Close #5134
What is changed and how does it work?
It can be reviewed after #8441 is merged.
Check List
Tests
test in tiup with multi cn
Release note