-
Notifications
You must be signed in to change notification settings - Fork 893
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
Time-limited sync words #12300
Merged
Merged
Time-limited sync words #12300
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
AlexeyBarabash
added
feature/sync
CI/skip
Do not run CI builds (except noplatform)
labels
Feb 16, 2022
github-actions
bot
added
the
potential-layer-violation-fixes
This PR touches a BUILD.gn file with check_includes=false
label
Feb 16, 2022
AlexeyBarabash
force-pushed
the
sync_timelimit_bip
branch
3 times, most recently
from
February 18, 2022 13:28
1eafae6
to
c9fb75d
Compare
AlexeyBarabash
force-pushed
the
sync_timelimit_bip
branch
4 times, most recently
from
March 30, 2022 16:25
71d49c0
to
1948418
Compare
AlexeyBarabash
force-pushed
the
sync_timelimit_bip
branch
5 times, most recently
from
April 11, 2022 18:35
f29ddba
to
c865eee
Compare
AlexeyBarabash
force-pushed
the
sync_timelimit_bip
branch
2 times, most recently
from
April 12, 2022 17:21
61b8591
to
bd51e9f
Compare
AlexeyBarabash
force-pushed
the
sync_timelimit_bip
branch
from
April 12, 2022 18:07
bd51e9f
to
0e675db
Compare
AlexeyBarabash
force-pushed
the
sync_timelimit_bip
branch
from
April 14, 2022 14:04
0e675db
to
31b33f6
Compare
… without 25th word of time code
AlexeyBarabash
force-pushed
the
sync_timelimit_bip
branch
from
May 25, 2022 20:59
bf67782
to
074d50e
Compare
rebased again, as work on iOS needs this to be in |
- updated comments - removed forgotten include - used base::StrCat - redone TimeLimitedWords::Validate => TimeLimitedWords::Parse to avoid using of output string* parameter - fixed ret.pure_words initialization - removed forgotten log - from js and html changes combined variables isInvalidSyncCode and syncCodeValidationResult into single syncCodeValidationError Adjusted words epoch and v1 sunset dates - epoch to Tue, 10 May 2022 - sunset to Mon, 1 Aug 2022
AlexeyBarabash
force-pushed
the
sync_timelimit_bip
branch
from
May 26, 2022 08:20
074d50e
to
a66b2d5
Compare
Updated sunset date for words v1 to |
7 tasks
AlexeyBarabash
added a commit
that referenced
this pull request
May 30, 2022
7 tasks
AlexeyBarabash
added a commit
that referenced
this pull request
May 30, 2022
Time-limited sync words
7 tasks
This was referenced Jun 2, 2022
Verification
|
Brave | 1.41.59 Chromium: 103.0.5060.42 (Official Build) nightly (x86_64) |
---|---|
Revision | de0d840bf9439c31bd86bf74f065c31fdf9b208d-refs/branch-heads/5060@{#667} |
OS | macOS Version 12.5 (Build 21G5037d) |
&
Brave | 1.39.122 Chromium: 102.0.5005.115 (Official Build) (x86_64) |
---|---|
Revision | 174dbe6e33bc81994fceb71d751be201d0b4803d-refs/branch-heads/5005_109@{#3} |
OS | macOS Version 12.5 (Build 21G5037d) |
Case I: Old sync words are accepted before sync words sunset date - PASSED
- Created a new sync chain on
1.39.122
desktop browser (24 words) - Connected
1.41.59
desktop browser to the chain - it should connect
example | example | example | example |
---|---|---|---|
Case II. Old sync words are NOT accepted after sync words sunset date - PASSED
- Create chain on
1.39.122
desktop browser (24 words) - Modify current date on the desktop to
August 2, 2022
- Try to connect
1.41.59
desktop browser to the chain - it should sayThis code was generated by a deprecated version of Brave, please upgrade your other device first.
example | example | example | example | example |
---|---|---|---|---|
Case III. Normal flow between new (v2
) versions - PASSED
- Create sync chain on
1.41.59
desktop version (25 words) - Connect new browser desktop to chain via words - it should succeed
Sync chain | new client joined | Synch chain updated |
---|---|---|
Case IV. Expired error - PASSED
- Create sync chain on
1.41.59
desktop version (25 words) - Adjust time on 2nd desktop device 2 days forward (
June 15, 2022
in my case) - Connect new browser desktop to chain via words - it should say
This code has expired. Please generate a new one on your other device and try again.
example | example | example | example |
---|---|---|---|
Case V. Too-far-in-the-future codes - PASSED
- Create sync chain on
1.41.59
desktop version (25 words) - Adjust time on 2nd desktop device 2 days backwards (
June 11, 2022
in my case) - Connect new browser desktop to chain via words - it should say
This code is invalid. Please check that the time and timezone are set correctly on your device.
example | example | example | example | example |
---|---|---|---|---|
Case VI. General errors for incorrect codes - PASSED
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature/sync
potential-layer-violation-fixes
This PR touches a BUILD.gn file with check_includes=false
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.
Resolves brave/brave-browser#22242
This PR introduces time-limited sync code words. The browser accept the old sync code till the grace period, currently
Mon, 1 Aug 2022
- but may be changed. Changes are done for Desktop and Android.Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
I. Old sync words are accepted before sync words sunset date
II. Old sync words are not accepted after sync words sunset date
magic room blind room mimic suspect interest fiber above south end injury quality wonder maid book syrup brush right alter fit weasel buffalo stove
This code was generated by a deprecated version of Brave, please upgrade your other device first
;This code was generated by a deprecated version of Brave, please upgrade your other device first
;III. Normal flow between new versions
IV. Case for expired error
This code has expired. Please generate a new one on your other device and try again
;This code has expired. Please generate a new one on your other device and try again
;V. Case for too far in the future error
This code is invalid. Please check that the time and timezone are set correctly on your device
;This code is invalid. Please check that the time and timezone are set correctly on your device
.VI. Case for general error of wrong code
AAA BBB CCC
- it should sayThis code is invalid
AAA BBB CCC
- it should also sayWrong sync code