Closed Bug 1996529 Opened 1 year ago Closed 11 months ago

Websites load as forbidden when opened in new tab while Firefox VPN is ON

Categories

(Firefox :: IP Protection, defect)

Firefox 146
defect

Tracking

()

VERIFIED FIXED
148 Branch
Tracking Status
firefox146 --- wontfix
firefox147 --- wontfix
firefox148 --- verified

People

(Reporter: rilban, Assigned: sstreich)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fx-vpn])

Attachments

(4 files, 2 external files)

[Affected versions]:

  • Firefox Nightly 146.0a1 (2025-10-26);
  • Firefox Beta 144.0b6;

[Affected Platforms]:

  • Windows 11 x64;

[Prerequisites]:

  • Be enrolled in the โ€œIP Concealment - Alpha variantโ€ experiment.
  • Be logged in with a Firefox stage account.

[Steps to reproduce]:

  1. Open the browser using the profile from the prerequisites.
  2. Click on the Firefox VPN toolbar icon and turn on the VPN.
  3. In a new tab load any website.

[Expected result]:

  • The websites are loading normally.

[Actual result]:

  • The website is forbidden after loading.
  • A proxy error is displayed in the console.

[Notes]:

  • If Firefox VPN is turned off, the websites will load normally.
  • If the website is opened, when turning Firefox VPN on, the page only seems to refresh and does not show the โ€œforbiddenโ€ error. E.g user is not protected on Mullvad.
Blocks: 1992379, 1987907
Severity: -- → S3

Adds a list of essential pref to the IPPChannelFilter which will be excluded temporarily.
This will allow getting the proxy pass and telemetry, while still sending these through the VPN when connected.

Assignee: nobody → fchasen
Status: NEW → ASSIGNED
Pushed by fchasen@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/87e69a7a1cda https://hg.mozilla.org/integration/autoland/rev/d19c4ed91ed6 Exclude origins essential to starting the IPP proxy until connected. r=ip-protection-reviewers,baku
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch

We have verified this on Windows 11, using Firefox Nightly 146.0a1 (2025-10-29) and the issue is still reproducible on stage environment. The websites still appear forbidden while Firefox VPN is ON.
The issue is not reproducible on production environment.

Flags: needinfo?(fchasen)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

What is probably happening here is that the staging guardian generates tokens with a signature not supported by the prod proxy server.
I see 3 possible solutions:

  • having a staging proxy server supporting the staging signature
  • using the prod signature in the stage guardian instance too (I'm not sure this is the most secure approach...)
  • ignore this issue and mark it as WONTFIX.

So far, I vote for option 3. Basti?

Flags: needinfo?(fchasen) → needinfo?(sstreich)

having a staging proxy server supporting the staging signature

We have that! At least we had:
-> "proxy-dev" allowing heroku guardian dev
-> "proxy-stage" allowing guardian gcp-stage

So i see there is value to have those enviroments working.

We so we need to get the serverlist there.
We can either:
1: Have multiple copies of the US location in RS and filter them via JEXL (preferenceValue(pref,default)== guardian.stage), but that would force us for each location to maintain the query and given i want to use that for the new server rollout ... that would mean another dimenson of complexity.
2: Have another bucket "vpn-server-list-stage", better but we still need to maintain 6 schemas then, as remote-settings also has dev/stage/main.
3: Have the stage server in the stage bucket. Which would only leave the dev bucket to build on, and that resets every 24h q_q.
4: have an optional pref "ipprotection.forcedServer" -> Where QA can drop in a json blob to override the serverlist. Given those don't change, we can just give them the string. (given they already need a lot of prefs to get there)

I'm for option 4 here. WDYT?

Flags: needinfo?(sstreich) → needinfo?(amarchesini)

I see another option too: if the servers are exposed by guardian instead of remote-settings, we can have guardian stage exposing proxy stage.

We still don't know how the new infrastructure will work, but it could be that we can retrieve the list of servers from some endpoints. If that is true, we have to centralize the logic in guardian and get rid of the remote-settings. Can you check if this approach is feasible?

Flags: needinfo?(amarchesini) → needinfo?(sstreich)
Assignee: fchasen → nobody
Assignee: nobody → sstreich
Flags: needinfo?(sstreich)
Whiteboard: [fx-vpn]

I see another option too: if the servers are exposed by guardian instead of remote-settings, we can have guardian stage exposing proxy stage.
We still don't know how the new infrastructure will work, but it could be that we can retrieve the list of servers from some endpoints. If that is true, we have to centralize the logic in guardian and get rid of the remote-settings. Can you check if this approach is feasible?

Sure we could get that from guardian, but we loose a lot (jexl filters for slow rollouts, push/sync signals) - then guardian has no concept whether itself is dev/stage/prod. So for any change we'd need to re-deploy guardian, or keep that in the DB and build an extra tool to get that data in.

IMHO that is a quite a bit of complexity we need to build vs just giving QA a pref they can set (given they need to set multiple prefs already, to use fxa, push, guardian stage)

Pushed by sstreich@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/525c427e1739 https://hg.mozilla.org/integration/autoland/rev/9b988e97a0aa Add Optional Config option to force a specific server r=ip-protection-reviewers,baku
Status: REOPENED → RESOLVED
Closed: 1 year ago → 11 months ago
Resolution: --- → FIXED

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

The patch landed in nightly and beta is affected.
:sstreich, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(sstreich)
Attached image image1.png โ€”

Verified this on Firefox Nightly 148.0a1 (2025-12-16) on Windows 10. The websites are still not loading while Firefox VPN is ON, and the same error is thrown in the console. See attached ss.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

That is expected, given you still are defaulting to the prod infra when using guardian stage. :)
This patch add's a new pref to self select the server, so now you can self choose which infra you want to use.
I have compiled a guide here :)
https://docs.google.com/document/d/1VSpD_5QJSU8S_LH5ndl3Q75p_226qzoMSKPz_MUtyOg/edit?tab=t.0

Flags: needinfo?(sstreich)
Status: REOPENED → RESOLVED
Closed: 11 months ago → 11 months ago
Resolution: --- → FIXED
Target Milestone: 146 Branch → 148 Branch

Thank you for the detailed document!

We verified this on Firefox Nightly 148.0a1 (2025-12-18).

  1. For Fxa Stage + Guardian Stage + Envoy Stage, following the steps from your document, we are able to turn on Firefox VPN and websites are loading successfully.
  2. For Fxa Stage + Guardian Dev + Envoy Dev:
    2.1. Following the steps from the document, after step 3 (enroll the user to Firefox VPN), the Firefox VPN icon is not displayed in the toolbar (tried changing the pref and browser restart). If we now enroll into the experiment, we are unable to turn on Firefox VPN
    2.2. Also tried to enroll into the experiment after step 2 (switching environments), and we are unable to turn on Firefox VPN.
    Is there a step we may have missed or is this expected ?
Flags: needinfo?(sstreich)
QA Whiteboard: [qa-triage-done-c149/b148]
Attached image example โ€”

Basti, is it expected that this does not work for For Fxa Stage/Guardian Dev/Envoy Dev ?
This was given as a working example in the guide.

Marking this as verified, as it now work in production environment and in Fxa Stage + Guardian Stage + Envoy Stage env. If the issue will reoccur, we will open a new ticket.

Flags: needinfo?(sstreich)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: