Skip to content
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

Require device auth to be set in order to use Sync #2612

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

bwaresiak
Copy link
Collaborator

@bwaresiak bwaresiak commented Apr 12, 2024

Task/Issue URL: https://app.asana.com/0/414235014887631/1206876054968715/f
Tech Design URL:
CC:

Description:

Require device auth to be set in order to use Sync

Steps to test this PR:

Test by changing LocalAuthenticationService.swift:28 to return false.

When sync is not set up:

  • Connecting with device should be protected.
  • Setting sync for current device should be protected.
  • Recovering data should be protected.

When sync is set up:

  • Connecting with device should be protected.
  • Saving recovery code should be protected.

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

@bwaresiak bwaresiak requested a review from ayoy April 12, 2024 07:33
Copy link
Collaborator

@ayoy ayoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great! I'm slightly concerned about presentDialog(for: .empty) but it definitely does the job and isn't really an issue, besides looking a bit suspicious. 🚢

@bwaresiak bwaresiak merged commit 0cc38ed into main Apr 16, 2024
37 checks passed
@bwaresiak bwaresiak deleted the bartek/sync-force-device-password branch April 16, 2024 07:29
diegoreymendez pushed a commit that referenced this pull request Apr 18, 2024
Task/Issue URL:
https://app.asana.com/0/414235014887631/1206876054968715/f
Tech Design URL:
CC:

**Description**:

Require device auth to be set in order to use Sync

**Steps to test this PR**:

Test by changing `LocalAuthenticationService.swift:28` to return false.

When sync is not set up:
* [x] Connecting with device should be protected.
* [x] Setting sync for current device should be protected.
* [x] Recovering data should be protected.

When sync is set up:
* [x] Connecting with device should be protected.
* [x] Saving recovery code should be protected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants