foxyproxy / browser-extension

Version 8 and above. Browser extension source code for Firefox, Chrome, and other Chromium-based browsers
GNU General Public License v2.0
198 stars 29 forks source link

Allow (temporary) changing of managed settings #132

Open portiatrivisonno opened 2 months ago

portiatrivisonno commented 2 months ago

I'd like to be able to change the setting provided by the managed storage (policies/manifest) during runtime.

I'm often deploying a fresh install of Firefox with FoxyProxy for proxy management. I use policies to deploy the initial configuration but would like to allow the user (including myself) to change the settings (more precisely the active proxy) afterwards. This, however, seems currently not possible.

There was already a similar request in [1] using Chrome's "recommended policy". But I'm not aware of similar mechanism in Firefox. I could think of a setting "allow overwriting managed config", which, if enabled, allows changing the settings even in a "managed environment". (A quick glance at the code showed a lot of if (pref.managed) return; patterns.)

Personally, I don't care much whether the user's changes are permanent or only for the session; I guess the latter is probably preferred by most people.

Thanks in advance!

[1] https://github.com/foxyproxy/browser-extension/issues/95#issuecomment-1859139694

erosman commented 2 months ago

As mentioned in https://github.com/foxyproxy/browser-extension/issues/95#issuecomment-1859171736

That would conflict with https://github.com/foxyproxy/browser-extension/issues/42#issuecomment-1830407101

The managed Enterprise Policy is set to give control to the admin and thus remove the control from the user.

It appears that the request is for a feature to apply a "default settings", rather than "managed storage/enterprise policy".

I have to look into the possibilities, if there is a popular demand for it.

portiatrivisonno commented 2 months ago

As mentioned in #95 (comment)

That would conflict with #42 (comment) The managed Enterprise Policy is set to give control to the admin and thus remove the control from the user.

"conflict" might be a misleading word here. Given an option "allow overwriting managed config" (which is set in the policy), the admin can choose to give the user some control back or deny them all control.

It appears that the request is for a feature to apply a "default settings", rather than "managed storage/enterprise policy".

I have to look into the possibilities, if there is a popular demand for it.

For what its worth, uBlockOrigin offers something similar [1,2]. They allow the user to change settings during runtime but reset them on every launch. Maybe it's worth a look how they implemented that.

[1] https://github.com/gorhill/uBlock/wiki/Deploying-uBlock-Origin [2] https://github.com/gorhill/uBlock/wiki/Deploying-uBlock-Origin:-configuration

erosman commented 3 weeks ago

The feature can be added if there is a popular demand for it.