PalveronPalveronDocs

Setup through device management

Install the Browser Guard for Chrome and Edge through your device management and set it up with an enrolment code. Six settings, with examples for Windows, Intune and macOS.

With your device management you install the Browser Guard on many devices at once and give it the gateway address and an enrolment code. Each device then enrols on its own; nobody has to enter anything. The Browser Guard does not use a project API key (since version 1.6.0).

The force installation below needs the entry of the Browser Guard in the Chrome Web Store or in Edge Add-ons. These entries follow after approval; there is no date yet. Until then, load the package Palveron gives you as described in Installation for one person. The settings of the Browser Guard on this page are what it reads from device management.

Overview

  1. Issue an enrolment code for the rollout (admin).
  2. Look up the extension ID in the store entry.
  3. Force-install the extension with the browser policy ExtensionSettings.
  4. Set the settings of the Browser Guard for the extension.
  5. Check the devices under Settings → Security → Devices.

Issue an enrolment code

Under Settings → Security → Browser Guard → Enrolment codes, an admin issues a code for the rollout (see Installation for one person):

  • Valid for (days): long enough for the rollout, 1 to 365 days, default 30.
  • Device limit: at least the number of devices you roll out to, 1 to 10000, default 500.

The code is shown only once. Store it where your device management keeps secrets.

Look up the extension ID

Chrome Web Store and Edge Add-ons each assign their own extension ID. You find it in the store entry of the Browser Guard, as the last part of its address. In the examples below, replace the marked placeholders:

PlaceholderReplace with
<CHROME_EXTENSION_ID>ID from the Chrome Web Store entry
<EDGE_EXTENSION_ID>ID from the Edge Add-ons entry
<ENROLLMENT_CODE>The enrolment code from step 1
<GATEWAY_URL>The address of your gateway; for Palveron Cloud https://gateway.palveron.com

Settings of the Browser Guard

The Browser Guard reads these six settings from device management:

KeyTypeRequiredMeaning
gateway_urlstringyesAddress of your Palveron gateway
enrollment_codestringyesEnrolment code. A different code than the one a device enrolled with switches the device to the project of the new code.
enabledbooleannoSwitches the Browser Guard on or off. Default: on
policy_max_age_minutesintegernoHow long the rules loaded last stay valid, 15 to 1440 minutes. Default: 240
browser_outage_modestringnopass or block: behavior when the gateway cannot check. Takes precedence over the project setting Behavior during an outage
browser_attachment_modestringnooff, confirm, justify or block: the question before a file is uploaded to an AI service. Takes precedence over the project setting Question before uploading a file to an AI service. Another value counts as confirm

Without gateway_url and enrollment_code in device management, the setup in the Browser Guard window applies, as for a single installation.

browser_outage_mode is the only way to set the outage behavior per device. Without it, the project setting under Settings → Security → Browser Guard → Behavior during an outage applies (Let through or Block).

browser_attachment_mode sets the question before an upload per device. Without it, the project setting under Settings → Security → Browser Guard → Question before uploading a file to an AI service applies, otherwise the default confirm. What the person sees with each setting is described in Question before an upload.

Windows: registry values

Chrome and Edge read both the force installation and the settings of an extension from the registry. You can distribute the values with Group Policy, Intune (next section) or your software distribution.

Force installation (ExtensionSettings)

The policy ExtensionSettings is a string value with JSON content.

Chrome, value ExtensionSettings under HKLM\SOFTWARE\Policies\Google\Chrome:

{
  "<CHROME_EXTENSION_ID>": {
    "installation_mode": "force_installed",
    "update_url": "https://clients2.google.com/service/update2/crx"
  }
}

Edge, value ExtensionSettings under HKLM\SOFTWARE\Policies\Microsoft\Edge:

{
  "<EDGE_EXTENSION_ID>": {
    "installation_mode": "force_installed",
    "update_url": "https://edge.microsoft.com/extensionwebstorebase/v1/crx"
  }
}

If you already manage other extensions with ExtensionSettings, add the entry to your existing JSON instead of replacing it.

Settings of the Browser Guard (3rdparty)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\3rdparty\extensions\<CHROME_EXTENSION_ID>\policy]
"gateway_url"="<GATEWAY_URL>"
"enrollment_code"="<ENROLLMENT_CODE>"
"enabled"=dword:00000001
"policy_max_age_minutes"=dword:000000f0
"browser_outage_mode"="pass"
"browser_attachment_mode"="confirm"

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\3rdparty\extensions\<EDGE_EXTENSION_ID>\policy]
"gateway_url"="<GATEWAY_URL>"
"enrollment_code"="<ENROLLMENT_CODE>"
"enabled"=dword:00000001
"policy_max_age_minutes"=dword:000000f0
"browser_outage_mode"="pass"
"browser_attachment_mode"="confirm"

dword:000000f0 is 240 minutes. Strings are REG_SZ, enabled and policy_max_age_minutes are REG_DWORD. Leave out the optional values you do not want to set.

Microsoft Intune (Windows)

Deploy the following PowerShell script as a platform script for Windows devices. Set Run this script using the logged on credentials to No and Run script in 64 bit PowerShell Host to Yes, so that it writes to HKLM.

# Palveron AI Browser Guard: force installation and settings for Chrome and Edge.
# Replace the placeholders before uploading.

$ErrorActionPreference = "Stop"

$GatewayUrl     = "<GATEWAY_URL>"
$EnrollmentCode = "<ENROLLMENT_CODE>"

$Browsers = @(
  @{ Root = "HKLM:\SOFTWARE\Policies\Google\Chrome";  Id = "<CHROME_EXTENSION_ID>";
     UpdateUrl = "https://clients2.google.com/service/update2/crx" },
  @{ Root = "HKLM:\SOFTWARE\Policies\Microsoft\Edge"; Id = "<EDGE_EXTENSION_ID>";
     UpdateUrl = "https://edge.microsoft.com/extensionwebstorebase/v1/crx" }
)

foreach ($b in $Browsers) {
  # Create the key only if it is missing: New-Item -Force on an existing key
  # replaces it with an empty key and deletes the browser's other policies.
  if (-not (Test-Path $b.Root)) { New-Item -Path $b.Root -Force | Out-Null }

  # Force installation. Adds this entry to an existing ExtensionSettings value
  # and keeps the entries of other extensions. Invalid JSON stops the script.
  $current = (Get-ItemProperty -Path $b.Root -Name "ExtensionSettings" `
    -ErrorAction SilentlyContinue).ExtensionSettings
  if ([string]::IsNullOrWhiteSpace($current)) { $settings = [pscustomobject]@{} }
  else { $settings = $current | ConvertFrom-Json }
  $settings | Add-Member -NotePropertyName $b.Id -Force -NotePropertyValue (
    [pscustomobject]@{ installation_mode = "force_installed"; update_url = $b.UpdateUrl })
  Set-ItemProperty -Path $b.Root -Name "ExtensionSettings" -Type String `
    -Value ($settings | ConvertTo-Json -Compress -Depth 10)

  # Settings of the Browser Guard.
  $policy = "$($b.Root)\3rdparty\extensions\$($b.Id)\policy"
  if (-not (Test-Path $policy)) { New-Item -Path $policy -Force | Out-Null }
  Set-ItemProperty -Path $policy -Name "gateway_url"            -Type String -Value $GatewayUrl
  Set-ItemProperty -Path $policy -Name "enrollment_code"        -Type String -Value $EnrollmentCode
  Set-ItemProperty -Path $policy -Name "enabled"                -Type DWord  -Value 1
  Set-ItemProperty -Path $policy -Name "policy_max_age_minutes" -Type DWord  -Value 240
  Set-ItemProperty -Path $policy -Name "browser_outage_mode"    -Type String -Value "pass"
  Set-ItemProperty -Path $policy -Name "browser_attachment_mode" -Type String -Value "confirm"
}

The script contains the enrolment code. Limit access to it in Intune like any other secret, and revoke the code under Enrolment codes when the rollout is complete; devices that already enrolled with it keep working.

The script keeps existing Chrome and Edge policies: it adds the entry of the Browser Guard to an existing ExtensionSettings value and leaves the entries of other extensions unchanged. If the existing value is not valid JSON, the script stops without changing it.

You can also set the force installation alone through the Intune settings catalog with the Chrome or Edge policy ExtensionSettings; the settings of the Browser Guard then still come from the 3rdparty values above. Set ExtensionSettings on a device in one way only: if you use the settings catalog, remove the force installation section from the script.

macOS: configuration profiles

Chrome

Deliver two payloads with your MDM, for example as custom settings:

Force installation, preference domain com.google.Chrome, key ExtensionSettings:

<key>ExtensionSettings</key>
<dict>
  <key><CHROME_EXTENSION_ID></key>
  <dict>
    <key>installation_mode</key>
    <string>force_installed</string>
    <key>update_url</key>
    <string>https://clients2.google.com/service/update2/crx</string>
  </dict>
</dict>

Settings of the Browser Guard, preference domain com.google.Chrome.extensions.<CHROME_EXTENSION_ID>:

<key>gateway_url</key>
<string><GATEWAY_URL></string>
<key>enrollment_code</key>
<string><ENROLLMENT_CODE></string>
<key>enabled</key>
<true/>
<key>policy_max_age_minutes</key>
<integer>240</integer>
<key>browser_outage_mode</key>
<string>pass</string>
<key>browser_attachment_mode</key>
<string>confirm</string>

Edge

Force installation works like in Chrome, with the preference domain com.microsoft.Edge, the ID <EDGE_EXTENSION_ID> and the update address https://edge.microsoft.com/extensionwebstorebase/v1/crx.

For Edge on macOS, this page describes only the force installation, with no example for the settings of the Browser Guard. On Edge for macOS, enrol the device in the Browser Guard window after the force installation, as in Installation for one person.

Check the result

  • In the browser, chrome://policy (Chrome) or edge://policy (Edge) shows whether ExtensionSettings and the values of the Browser Guard arrived.
  • In the dashboard, the devices appear under Settings → Security → Devices once they have enrolled.

Older setups with the project API key

Since version 1.6.0, the Browser Guard no longer uses a project API key. If your device management still passes a project API key to the Browser Guard, replace it with enrollment_code. As long as Settings → Security → Transition for older Browser Guards is Open, older Browser Guards keep reporting with the project API key; close the transition once all devices appear under Devices (see Installation for one person).

Remove

Remove the entry from ExtensionSettings and the 3rdparty values, or set installation_mode to removed. Revoke devices that should no longer count under Settings → Security → Devices.

On this page