-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
VIndexes: Stop recommending md5 based vindex types as md5 is considered insecure #16113
Merged
Conversation
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
Signed-off-by: Matt Lord <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
vitess-bot
bot
added
NeedsBackportReason
If backport labels have been applied to a PR, a justification is required
NeedsDescriptionUpdate
The description is not clear or comprehensive enough, and needs work
NeedsIssue
A linked issue is missing for this Pull Request
NeedsWebsiteDocsUpdate
What it says
labels
Jun 11, 2024
mattlord
added
Component: VReplication
Component: Query Serving
and removed
NeedsDescriptionUpdate
The description is not clear or comprehensive enough, and needs work
NeedsWebsiteDocsUpdate
What it says
NeedsIssue
A linked issue is missing for this Pull Request
NeedsBackportReason
If backport labels have been applied to a PR, a justification is required
labels
Jun 11, 2024
mattlord
added
the
Type: Enhancement
Logical improvement (somewhere between a bug and feature)
label
Jun 11, 2024
mattlord
changed the title
VReplication: Stop recommending md5 based vindex types as md5 is considered insecure
VIndexes: Stop recommending md5 based vindex types as md5 is considered insecure
Jun 11, 2024
…ma if not already there. Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16113 +/- ##
==========================================
- Coverage 68.40% 68.22% -0.19%
==========================================
Files 1556 1543 -13
Lines 195121 197587 +2466
==========================================
+ Hits 133479 134796 +1317
- Misses 61642 62791 +1149 ☔ View full report in Codecov by Sentry. |
mattlord
requested review from
deepthi,
rohit-nayak-ps,
harshit-gangal,
systay,
frouioui,
GuptaManan100 and
ajm188
as code owners
June 12, 2024 13:37
arthurschreiber
approved these changes
Jun 19, 2024
GuptaManan100
approved these changes
Jun 24, 2024
rohit-nayak-ps
approved these changes
Jun 24, 2024
DeathBorn
added a commit
to vinted/vitess
that referenced
this pull request
Sep 25, 2024
…s md5 is considered insecure vitessio#16113 Signed-off-by: Vilius Okockis <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Component: Query Serving
Component: VReplication
Type: Enhancement
Logical improvement (somewhere between a bug and feature)
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.
Description
When creating the
vtctldclient
implementation of theLookupVindex
command in #14086, I added the ability to specify which vindex type to use with the--table-vindex-type
flag. Thevtctlclient
client and its behavior is now frozen as it's deprecated and slated for removal so that will not be modified.By default, however, we would still use
md5
by default for text based column types (we had changed the default/recommended vindex type for integral column types in #13955 and #13956). This PR moves the md5 based recommendations toxxhash
based ones asmd5
for passwords is considered insecure (1, 2, 3, ...) so any usage of it in your fleet — even though with Vindexes it is NOT used for passwords — can trigger security warnings on audits. Beyond that,xxhash
should generally be faster as well. So we should recommend it as the default instead.Related Issue(s)
CreateLookupVindex
should usexxhash
for integer types #13955Checklist