Tutorial: Setting a custom browser policy in Amazon WorkSpaces Secure Browser
You can set any supported Chrome policy for Linux by uploading a JSON file. To learn more
about Chrome policies, see Chrome
Enterprise policy list
In the following tutorial, you create a web portal with the following policy controls:
-
Set up bookmarks
-
Set up default startup pages
-
Prevent the user from installing other extensions
-
Prevent the user from deleting history
-
Prevent the user from accessing incognito mode
-
Pre-install the Okta plug-in
extension for all sessions.
Topics
Step 1: Create a web portal
In order to upload your Chrome policy JSON file, you must create a WorkSpaces Secure Browser portal. For more information, see Creating a web portal for Amazon WorkSpaces Secure Browser.
Step 2: Gather policies
Search for and locate policies you want from Chrome Policy. You then use the policies to create a JSON file in the next step.
-
Choose the platform Linux, and then choose the most recent Chrome version.
-
Search for the policies you want to set. For this example, search for extensions to find policies for managing them. Each policy includes a description, Linux preference name, and sample value.
-
From the search results, there are 3 policies that meet the business requirements if used together:
-
ExtensionSettings – Installs an extension at browser start.
-
ExtensionInstallBlocklist – Prevents specific extensions from being installed.
-
ExtensionInstallAllowlist – Allows certain extensions to be installed.
-
-
Additional policies satisfy the remaining requirements;
-
ManagedBookmarks – Adds bookmarks to webpages.
-
RestoreOnStartupURLs – Configures which webpages are opened whenever a new browser window is launched.
-
AllowDeletingBrowserHistory – Configures whether users can delete their browsing history.
-
IncognitoModeAvailability – Configures whether users can access incognito mode.
-
Step 3: Create a custom JSON policy file
Create a JSON file using a text editor, template, and the policies you found in the previous step.
-
Open a text editor.
-
Copy and paste the following template into your text editor:
{ "chromePolicies": { "ManagedBookmarks": { "value": [ { "name": "Bookmark 1", "url": "
bookmark-url-1
" }, { "name": "Bookmark 2", "url": "bookmark-url-2
" }, ] }, "RestoreOnStartup": { "value": 4 }, "RestoreOnStartupURLs": { "value": [ "startup-url
" ] }, "ExtensionInstallBlocklist": { "value": [ "insert-extensions-value-to-block
", ] }, "ExtensionInstallAllowlist": { "value": [ "insert-extensions-value-to-allow
", ] }, "ExtensionSettings": { "value": { "insert-extension-value-to-force-install
": { "installation_mode": "force_installed", "update_url": "https://clients2.google.com/service/update2/crx", "toolbar_pin": "force_pinned" }, } }, "AllowDeletingBrowserHistory": { "value":should-allow-history-deletion
}, "IncognitoModeAvailability": { "value":incognito-mode-availability
} } }
Step 4: Add your policies to the template
Add your custom policies to the template for each business requirement.
-
Set up bookmark URLs.
-
Under the
value
key, add pairs ofname
andurl
keys for each bookmark you want to add. -
Set
bookmark-url-1
tohttps://www.amazon.com
. -
Set
bookmark-url-2
tohttps://docs.aws.amazon.com/workspaces-web/latest/adminguide/
.
"ManagedBookmarks": { "value": [ { "name": "
Amazon
", "url": "https//www.amazon.com
" }, { "name": "Bookmark 2
", "url": "https://docs.aws.amazon.com/workspaces-web/latest/adminguide/
" }, ] }, -
-
Set up the startup URLs. This policy allows administrators to set the webpages displayed when a user launches a new browser window.
-
Set the
RestoreOnStartup
to4
. This sets theRestoreOnStartup
action to open a list of URLs . You can also use other actions on your startup URLs. For more information, see Chrome Enterprise policy list. -
Set
RestoreOnStartupURLs
to https://www.aboutamazon.com/news.
"RestoreOnStartup": { "value":
4
}, "RestoreOnStartupURLs": { "value": [ "https://www.aboutamazon.com/news
" ] }, -
-
To prevent the user from deleting their browser history, set
AllowDeletingBrowserHistory
tofalse
."AllowDeletingBrowserHistory": { "value":
false
}, -
To turn off access to Incognito mode access for your users, set
IncognitoModeAvailability
to1
."IncognitoModeAvailability": { "value":
1
} -
Set and enforce the Okta plug-in
with the following policies: -
ExtensionSettings
– Installs an extension at browser start. The extension value is available from the Okta plug-in help page. -
ExtensionInstallBlocklist
– Prevents specific extensions from being installed. Use a*
value to prevent all extensions by default. Administrators can control which extensions to allow on theExtensionInstallAllowlist
. -
ExtensionInstallAllowlist
allows you to install certain extensions. SinceExtensionInstallBlocklist
is set to*
, add the Okta plug-in value here to allow it.
The following shows an example policy to turn on the Okta plug-in:
"ExtensionInstallBlocklist": { "value": [ "
*
", ] }, "ExtensionInstallAllowlist": { "value": [ "glnpjglilkicbckjpbgcfkogebgllemb
", ] }, "ExtensionSettings": { "value": { "glnpjglilkicbckjpbgcfkogebgllemb
": { "installation_mode": "force_installed
", "update_url": "https://clients2.google.com/service/update2/crx
", "toolbar_pin": "force_pinned
" } } -
Step 5: Upload your policy JSON file to your web portal
-
Open the WorkSpaces Secure Browser console at https://console.aws.amazon.com/workspaces-web/home?region=us-east-1#/
. -
Choose WorkSpaces Secure Browser, then choose Web portals.
-
Choose your web portal, and then choose Edit.
-
Choose Policy settings, then choose JSON file upload.
-
Choose Choose File. Navigate to, select, and upload your JSON file.
-
Choose Save.