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

Restore iOS token check #69

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

samsymons
Copy link
Collaborator

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

Description

This PR restores a startup check for the auth token inside the VPN.

Testing Steps

  1. You can test this by turning off dryRun in the VPN, then starting the VPN on a device and rebooting your phone
  2. If you don't want to do all that, then please go to Kibana and look up pixel:m.netp.*.ios.* AND qs_appVersion:7.158.0.3, which shows my own pixels from testing this (I would share a saved search but that Kibana feature doesn't seem to work any more)

Impact and Risks

What could go wrong?

Quality Considerations

Notes to Reviewer

Optional E2E tests**:

  • Run macOS PIR E2E tests
    Check this to run the Personal Information Removal end to end tests. If updating CCF, or any PIR related code, tick this.

Internal references:

Definition of Done | Engineering Expectations | Tech Design Template

Comment on lines +697 to +701
#if os(iOS)
if (try? await tokenHandler.getToken()) == nil {
throw TunnelError.startingTunnelWithoutAuthToken(internalError: nil)
}
#endif
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the original check, except wrapped in an iOS check as this problem doesn't occur on macOS. I'd rather play it safe and restore this check for iOS-only for now.

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.

1 participant