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

Update VPN user agent #3302

Merged
merged 8 commits into from
Sep 9, 2024
Merged

Update VPN user agent #3302

merged 8 commits into from
Sep 9, 2024

Conversation

samsymons
Copy link
Contributor

@samsymons samsymons commented Sep 1, 2024

Task/Issue URL: https://app.asana.com/0/1207162258152427/1207484485195971/f
Tech Design URL:
CC:

Description:

This PR updates the user agent of the VPN to include the version number, not just build number.

Steps to test this PR:

  1. Either set up a proxy and watch the requests from the agent to confirm the user agent looks good, or add a log statement to the VPN to confirm that the user agent is accurate. A lot statement like this in the NetworkProtectionClient would work:

Logger.networkProtection.error("Registering with VPN using headers \(String(describing: request.allHTTPHeaderFields), privacy: .public)")

Definition of Done (Internal Only):

Device Testing:

  • iPhone SE (1st Gen)
  • iPhone 8
  • iPhone X
  • iPhone 14 Pro
  • iPad

OS Testing:

  • iOS 15
  • iOS 16
  • iOS 17

Theme Testing:

  • Light theme
  • Dark theme

Internal references:

Software Engineering Expectations
Technical Design Template

# By Lucas Adamski (1) and amddg44 (1)
# Via GitHub
* main:
  Sync promotions added to Bookmarks & Passwords screens (#3260)
  remove references to obsolete FBConfig (#3297)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Copy link

github-actions bot commented Sep 9, 2024

This PR has been inactive for more than 7 days and will be automatically closed 7 days from now.

@github-actions github-actions bot added the stale label Sep 9, 2024
# By Christopher Brind (4) and others
# Via Alessandro Boron (1) and others
* main: (27 commits)
  Bump C-S-S to 6.14.1 (#3331)
  DuckPlayer Launch Experiment for iOS (#3328)
  defer loading the tab switcher button until view did load (#3326)
  Release 7.136.0-3 (#3324)
  Release PR: Check for the negative attribution case (#3311)
  fix tab switcher crashes (speculative fix) (#3319)
  Onboarding highlights feature flag setup (#3308)
  Release 7.136.0-2 (#3320)
  Attempt to fix dissapearing privacy icon (#3317)
  Fix bookmarks toolbar behaviour with Sync Promo on iOS 15 (#3313)
  Bump BSK with C-S-S to 6.14.0 (#3314)
  ensure no atb or app version sent with pixel (#3315)
  Fix #3298: Add support for Xcode 16 (#3299)
  Fix Keychain Debug view controller segue (#3310)
  Release 7.136.0-1 (#3309)
  Fix an issue that causes the fire dialog to show multiple times for the same website after dismissing it (#3305)
  [DuckPlayer] 28. Open in Youtube -> Youtube App (#3290)
  usage segmentation (#3263)
  Fix wrong URL displayed for auth dialog (#3307)
  iOS Integration of BSK Onboarding (#3282)
  ...

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@samsymons samsymons requested review from quanganhdo and removed request for quanganhdo September 9, 2024 01:25
samsymons added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Sep 9, 2024
Required:

Task/Issue URL: https://app.asana.com/0/1207162258152427/1207484485195971/f
iOS PR: duckduckgo/iOS#3302
macOS PR: duckduckgo/macos-browser#3181
What kind of version bump will this require?: Patch

Description:

This PR updates the VPN client to read from APIRequest.Headers when setting up requests.

Later, the client class should be refactored to use APIRequest across the board for increased testability, but for now I'm reusing a pattern used in a number of places in the clients.
# By Alessandro Boron (2) and others
# Via GitHub
* main:
  Duckplayer Experiment Override Fix (#3329)
  New feature flag for autofillSurveys (#3318)
  Add Onboarding Progress bar (#3323)
  Add copy for onboarding highlights experiment (#3325)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@samsymons samsymons merged commit b8bf205 into main Sep 9, 2024
13 checks passed
@samsymons samsymons deleted the sam/set-vpn-user-agent branch September 9, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants