Closed Bug 2057225 Opened 4 months ago Closed 3 months ago

Exclude console address from being proxied by default instead of in policy

Categories

(Enterprise Products :: Firefox, defect)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jporter, Assigned: jporter)

References

Details

Attachments

(2 files, 1 external file)

The current fix for bug 2051323 excludes the console address only when the Proxy policy is set, however a user can configure a proxy themselves in about:preferences which could break the console connection.

Instead of setting this in the policy application, this should be set for all proxy applications, including user-configuration.

Authored by https://github.com/jporter-dev
https://github.com/mozilla/enterprise-firefox/commit/8302f2803116025bebc890bb0fb0e64b362aef2e
[enterprise-main] Bug 2057225 - Use a direct connection to the enterprise console for all proxy configurations

Authored by https://github.com/jporter-dev
https://github.com/mozilla/enterprise-firefox/commit/f1adf43e2200a29fc55185b3876e060ddf42b3cf
[enterprise-main] Merge pull request #1207 from jporter-dev/enterprise-bug2057225-exclude-console-from-proxying-without-policy

Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Attached file Test plan for QA —

Test Plan

The changes made here remove the need for the console URL to be listed in the "No proxy for" field when a proxy is configured by policy. This test plan verifies that the behavior of the proxy settings is correct when configured by policy and when configured manually.

How to verify the result of each test case:

  1. about:policies#active lists Proxy and its current config.
  2. about:preferences#connectionSecurity > Proxy settings > Configure proxy shows the configured proxy settings. The controls are disabled when the proxy is locked.
  3. Navigation to the test URLs (https://example.com, https://example.org, and the enterprise console) should succeed or fail according to the proxy configuration.

At every step, confirm the change happens without restarting the browser. Reopen the "Connection Settings" dialog after each change, as it does not update the lock state live.

Test Cases

Proxy by Policy

  1. Confirm Proxy is not active and https://example.com loads normally.
  2. Configure an invalid proxy policy, e.g.:
{
    "Mode": "manual",
    "HTTPProxy": "127.0.0.1:1",
    "UseHTTPProxyForAllProtocols": true,
    "Locked": true,
    "Passthrough": "mozilla.org"
}

Expected:

  1. In about:policies#active: Proxy lists its current config.
  2. In the "Connection Settings" dialog:
    • "Manual proxy configuration" selected with HTTP Proxy 127.0.0.1 port 1
    • Checkbox "Also use this proxy for HTTPS" is checked
    • "No proxy for" does not list the enterprise console address
    • All controls disabled.
  3. https://example.com shows the proxy error page.
  4. https://mozilla.org loads.
  5. http://stage.fx-enterprise.nonprod.webservices.mozgcp.net loads.

Manual Proxy Configuration

  1. Confirm Proxy is not active and https://example.com loads normally.
  2. Configure the proxy manually in the "Connection Settings" dialog:
    • Select "Manual proxy configuration"
    • HTTP Proxy: 127.0.0.1:1
    • Check "Use this proxy server for all protocols"
    • No proxy for: mozilla.org
    • Click OK to save the settings.

Expected:

  1. In about:policies#active: Proxy is not listed.
  2. In the "Connection Settings" dialog:
    • "Manual proxy configuration" selected with HTTP Proxy 127.0.0.1 port 1
    • Checkbox "Also use this proxy for HTTPS" is checked
    • "No proxy for" does not list the enterprise console address
    • All controls enabled.
  3. https://example.com shows the proxy error page.
  4. https://mozilla.org loads.
  5. http://stage.fx-enterprise.nonprod.webservices.mozgcp.net loads.
Flags: qe-verify+
QA Contact: mcurtean
Attached image Manual Proxy UI.png —

Hello Josh,

Thank you for the test plan, it was very helpful and easy to follow.
I have configured the Proxy policy using the given example on the latest enterprise-main build,156.0a1 (20260823213825), on macOS Tahoe 26.4 and can confirm that the proxy generally works as intended, with a few differences:

  1. For the manual proxy, due to the difference in firefox enterprise UI, I have used the folowing setup (as seen in the screenshot):
  • Select "Manual proxy configuration"
  • HTTP Proxy: 127.0.0.1 Port: 1
  • Check "Also use this proxy for HTTPS"
  • Leave the SOCKS Host field blank
  • No proxy for: mozilla.org
  • Click OK to save the settings
  1. For the Proxy policy, I can confirm:

However:

  • the Admin console is not loaded successfully and results in a proxy error when the user has to go through sign in. It should be considered when setting up a proxy, that for websites where an authentication sign in is needed, this could be an issue.
  • Manual sync appears to be triggered in the about:preferences#sync (Sync is ON), but does not bring the synced data while a proxy is applied. See the attached video where I navigate to History, for example.

Wanted to flag both before assuming they're bugs — Is this expected behavior given the proxy setup, or does it point to a configuration gap?

Flags: needinfo?(joporter)

Hi Miruna, thanks for verifying! The console proxy exception was intended as a recovery path for a misconfigured proxy policy, so I think it's expected that some things will be broken during that state but recovery should still be possible. I think those fall out of that original scope but I've asked the team for some opinions, I'll follow up on this whether these need bugs filed.

Flags: needinfo?(joporter)

Great, thank you! Then based on what was in scope, I will mark this as verified on 156.0a1 (20260823213825) with macOS Tahoe 26.4 and Win 11.
As for whether bugs need to be filed on those other topics, I'll also follow up on this ticket to see your response and will log and link them accordingly if needed.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Regressions: 2080154
Regressions: 2080158
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: