Page 1 of 1

[SOLVED] Firefox, Google and Edge extension package

Published: May 7, 2024 - 12:00 PM
by cedric.at86
Hello,

I'm trying to deploy the Bitwarden extension across different browsers using WAPT. I haven't been able to find a solution despite numerous attempts. Does anyone have any ideas?

Sincerely,

WAPT 2.5

Re: Firefox, Google and Edge extension package

Published: Dec 31, 2024 - 11:12
by Emmanuel64
Hello,

I'm bumping this post because I'm also interested.
Thank you in advance for your help.

Re: Firefox, Google and Edge extension package

Published: January 3, 2025 - 4:16 PM
by fschelfaut
Good morning,

Based on the Bitwarden documentationDeployment on all Chromium-based browsers must absolutely be done via a GPO, as there is no other alternative.

With WAPT, here's how I would proceed:

Code: Select all

 
registry_set(HKEY_LOCAL_MACHINE, "Software\Policies\BraveSoftware\Brave\ExtensionInstallForcelist", "10", "nngceckbapebfimnlniiiahkandclblb;https://clients2.google.com/service/update2/crx", REG_SZ)
registry_set(HKEY_LOCAL_MACHINE, "Software\Policies\Google\Chrome\ExtensionInstallForcelist", "10", "nngceckbapebfimnlniiiahkandclblb;https://clients2.google.com/service/update2/crx", REG_SZ)
registry_set(HKEY_LOCAL_MACHINE, "Software\Policies\Microsoft\Edge\ExtensionInstallForcelist", "10", "jbkfoedolllekgbhcbcoahefnbanhhlh;https://edge.microsoft.com/extensionwebstorebase/v1/crx", REG_SZ)
Unfortunately, offline installation is not possible; it must be done through the store

For Firefox, we already have similar packages. For example, for deploy uBlock OriginUnlike Chrome, it is possible to install extensions offline.

Yours sincerely,

Flavien

Re: Firefox, Google and Edge extension package

Published: January 6, 2025 - 9:03 AM
by Emmanuel64
Thank you so much, it's perfect!

This allows me to more easily fine-tune the installation of extensions with the bitwarden-config-template package.
Also, my GPO worked perfectly on Firefox but wouldn't do anything on Chromium.

Re: Firefox, Google and Edge extension package

Published: January 6, 2025 - 9:15 AM
by Emmanuel64
Follow-up question!

As a best practice, how would you remove these registry keys when the bitwarden-config-template package is no longer distributed or when uninstalling the bitwarden package?

Thank you.

Re: Firefox, Google and Edge extension package

Published: January 6, 2025 - 3:25 PM
by fschelfaut
Good morning,

Here's how I would do it. Below is an example for Chrome:

Code: Select all

def install():
    registry_set(
        HKEY_LOCAL_MACHINE,
        "Software\Policies\Google\Chrome\ExtensionInstallForcelist",  "10",
        "nngceckbapebfimnlniiiahkandclblb;https://clients2.google.com/service/update2/crx",
        REG_SZ
    )

def uninstall():
    registry_delete(
        HKEY_LOCAL_MACHINE,
        "Software\Policies\Google\Chrome\ExtensionInstallForcelist",
        "10"
    )
Since this is a GPO setting, deleting the key in the registry will uninstall the browser extension.

Flavien,

Re: Firefox, Google and Edge extension package

Published: January 7, 2025 - 11:25 AM
by Emmanuel64
Hello,

thank you very much for your reply.
Did you put it in the bitwarden-config-template package (which is customized) or in the bitwarden package?

Re: Firefox, Google and Edge extension package

Published: January 7, 2025 - 3:53 PM
by fschelfaut
Hello,

I've created a new package, but you can certainly integrate it into the bitwarden-config-template package if you wish.
However, I recommend keeping the two separate for easier management.

Flavien

Re: Firefox, Google and Edge extension package

Published: January 7, 2025 - 4:02 PM
by Emmanuel64
Thank you for this advice ;)