VIndexes: Stop recommending md5 based vindex types as md5 is considered insecure#16113
Merged
mattlord merged 3 commits intovitessio:mainfrom Jun 24, 2024
Merged
Conversation
Signed-off-by: Matt Lord <mattalord@gmail.com>
Contributor
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
|
…ma if not already there. Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
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. |
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 <vilius.okockis@vinted.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
vtctldclientimplementation of theLookupVindexcommand in #14086, I added the ability to specify which vindex type to use with the--table-vindex-typeflag. Thevtctlclientclient 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
md5by 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 toxxhashbased ones asmd5for 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,xxhashshould generally be faster as well. So we should recommend it as the default instead.Related Issue(s)
CreateLookupVindexshould usexxhashfor integer types #13955Checklist