-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
privilege: add min TLS version for LDAP #50527
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #50527 +/- ##
=================================================
- Coverage 72.1075% 55.6886% -16.4189%
=================================================
Files 1452 1567 +115
Lines 347481 590420 +242939
=================================================
+ Hits 250560 328797 +78237
- Misses 76609 238833 +162224
- Partials 20312 22790 +2478
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -123,6 +123,8 @@ func (impl *ldapAuthImpl) tryConnectLDAPThroughStartTLS(address string) (*ldap.C | |||
err = ldapConnection.StartTLS(&tls.Config{ | |||
RootCAs: impl.caPool, | |||
ServerName: impl.ldapServerHost, | |||
MinVersion: tls.VersionTLS12, |
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.
Should we make it as a config such as grpc?
GRPC makes it as a config. if you don't set it, it will use tls1.2
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.
Good point! We do have a config related to TLS version(https://docs-archive.pingcap.com/tidb/v7.2/tidb-configuration-file#tls-version), maybe we should control it using the config.
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.
let us update this in the next PR.
7bdbda7
to
f0efcba
Compare
7a08d9c
to
34220ed
Compare
34220ed
to
1872544
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hawkingrei, YangKeao 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 |
[LGTM Timeline notifier]Timeline:
|
/retest |
What problem does this PR solve?
Issue Number: ref #36036
Problem Summary:
What changed and how does it work?
TLS1.0/1.1 has security issues, remove the support of them.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.