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

Improve prerequisite checks for VPN start #2970

Merged
merged 6 commits into from
Jun 20, 2024

Conversation

diegoreymendez
Copy link
Contributor

@diegoreymendez diegoreymendez commented Jun 19, 2024

Task/Issue URL: https://app.asana.com/0/1206580121312550/1207613628544128/f

BSK: duckduckgo/BrowserServicesKit#854
macOS: duckduckgo/macos-browser#2882

Description

Goals:

  • Validate tunnel start prerequisites and, when they aren't met:
    • Prevent pixel noise; and
    • Prevent network calls to our backend.
  • Also clean up the code a bit so that we no longer use completion callbacks for the tunnel start logic.

Testing

  • Make sure the VPN starts and stops normally.

Internal references:

Software Engineering Expectations
Technical Design Template

Copy link
Member

@quanganhdo quanganhdo left a comment

Choose a reason for hiding this comment

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

Tunnel starts/stops as expected.

diegoreymendez added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Jun 20, 2024
Task/Issue URL: https://app.asana.com/0/1206580121312550/1207613628544128/f
iOS PR: duckduckgo/iOS#2970
macOS PR: duckduckgo/macos-browser#2882
What kind of version bump will this require?: Patch

## Description

**Goals:**
- Validate tunnel start prerequisites and, when they aren't met:
   - Prevent pixel noise; and
   - Prevent network calls to our backend.
- Also clean up the code a bit so that we no longer use completion callbacks for the tunnel start logic.
- Add underlying error information to our wake failure pixels.
diegoreymendez added a commit to duckduckgo/macos-browser that referenced this pull request Jun 20, 2024
Task/Issue URL:
https://app.asana.com/0/1206580121312550/1207613628544128/f

BSK: duckduckgo/BrowserServicesKit#854
iOS: duckduckgo/iOS#2970

## Description

**Goals:**
- Validate tunnel start prerequisites and, when they aren't met:
   - Prevent pixel noise; and
   - Prevent network calls to our backend.
- Also clean up the code a bit so that we no longer use completion
callbacks for the tunnel start logic.
@diegoreymendez diegoreymendez merged commit c93bce8 into main Jun 20, 2024
20 checks passed
@diegoreymendez diegoreymendez deleted the diego/prevent-vpn-pixel-noise-without-auth-token branch June 20, 2024 17:24
samsymons added a commit that referenced this pull request Jun 20, 2024
# By Diego Rey Mendez (1) and others
# Via GitHub
* main:
  Improve prerequisite checks for VPN start (#2970)
  Move more RMF code from iOS to BSK (#2967)
  Remove unneeded pixel after investigation (#2972)
  Add quality signal for bookmarks database (#2964)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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.

None yet

2 participants