mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 14:33:17 +00:00
Add group policies, limit browser access to container filesystem (#579)
Add some default policy settings to disable unneeded Brave features. Helps a bit with #463, but Brave unfortunately doesn't provide all mentioned settings as policy options. Most important changes are in `config/policies/lockdown-profilebrowser.json` it limits access to the container filesystem especially during interactive profile browser creation.
This commit is contained in:
parent
757e838832
commit
068ee79288
3 changed files with 19 additions and 2 deletions
|
@ -64,8 +64,11 @@ WORKDIR /crawls
|
|||
# enable to test custom behaviors build (from browsertrix-behaviors)
|
||||
# COPY behaviors.js /app/node_modules/browsertrix-behaviors/dist/behaviors.js
|
||||
|
||||
# add brave/chromium group policies
|
||||
RUN mkdir -p /etc/brave/policies/managed/
|
||||
ADD config/policies /etc/brave/policies/managed/
|
||||
|
||||
ADD docker-entrypoint.sh /docker-entrypoint.sh
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
|
||||
CMD ["crawl"]
|
||||
|
||||
|
|
6
config/policies/brave-default.json
Normal file
6
config/policies/brave-default.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"BraveRewardsDisabled": true,
|
||||
"BraveWalletDisabled": true,
|
||||
"BraveVPNDisabled": 1,
|
||||
"BraveAIChatEnabled": false
|
||||
}
|
8
config/policies/lockdown-profilebrowser.json
Normal file
8
config/policies/lockdown-profilebrowser.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"IncognitoModeAvailability": 1,
|
||||
"TorDisabled": true,
|
||||
"AllowFileSelectionDialogs": false,
|
||||
"URLBlocklist": [
|
||||
"file://*"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue