From 81f81beb106a49651d2765cf37c623e48b22e688 Mon Sep 17 00:00:00 2001 From: Samuel Trégouët Date: Wed, 28 Apr 2021 15:43:34 +0000 Subject: Jibri installation et configuration --- .../files/chrome-extension-cookie/README.md | 31 ++++++++++++++++++++++ .../files/chrome-extension-cookie/managed.json | 15 +++++++++++ .../files/chrome-extension-cookie/manifest.json | 18 +++++++++++++ .../files/chrome-extension-cookie/schema.json | 16 +++++++++++ 4 files changed, 80 insertions(+) create mode 100644 roles/jibri-install/files/chrome-extension-cookie/README.md create mode 100644 roles/jibri-install/files/chrome-extension-cookie/managed.json create mode 100644 roles/jibri-install/files/chrome-extension-cookie/manifest.json create mode 100644 roles/jibri-install/files/chrome-extension-cookie/schema.json (limited to 'roles/jibri-install/files/chrome-extension-cookie') diff --git a/roles/jibri-install/files/chrome-extension-cookie/README.md b/roles/jibri-install/files/chrome-extension-cookie/README.md new file mode 100644 index 0000000..5259dba --- /dev/null +++ b/roles/jibri-install/files/chrome-extension-cookie/README.md @@ -0,0 +1,31 @@ +# extension chrome + +cette extension permet de forcer le positionnement de cookie + +il faut d'abord forcer l'installation de cette extension voir la documentation +sur [chromium](http://dev.chromium.org/administrators/policy-list-3#ExtensionInstallForcelist) + + +Puis il faut configurer l'extension via le fichier /etc/chromium/policies/managed/content.json +pour chromium (ou /etc/opt/chrome/policies/managed/managed_policies.json pour chrome) avec le contenu suivant: + +```json +{ + "3rdparty": { + "extensions": { + "gkaeknlffijmeakpmmeigddgjhiidhof": { + "forcedCookies": [ + { + "name": "rgpd", + "value": "nothing", + "domain": "visio.imio.be" + } + ] + } + } + } +} +``` + + +voir la documentation [ici](http://dev.chromium.org/administrators/configuring-policy-for-extensions) diff --git a/roles/jibri-install/files/chrome-extension-cookie/managed.json b/roles/jibri-install/files/chrome-extension-cookie/managed.json new file mode 100644 index 0000000..6ad11c2 --- /dev/null +++ b/roles/jibri-install/files/chrome-extension-cookie/managed.json @@ -0,0 +1,15 @@ +{ + "3rdparty": { + "extensions": { + "gkaeknlffijmeakpmmeigddgjhiidhof": { + "forcedCookies": [ + { + "domain": "toto", + "name": "toto name", + "value": "toto value" + } + ] + } + } + } +} diff --git a/roles/jibri-install/files/chrome-extension-cookie/manifest.json b/roles/jibri-install/files/chrome-extension-cookie/manifest.json new file mode 100644 index 0000000..94e0f9e --- /dev/null +++ b/roles/jibri-install/files/chrome-extension-cookie/manifest.json @@ -0,0 +1,18 @@ +{ + "name": "Force cookie extension", + "version": "1.0.0", + "description": "Will set cookie for particular domain", + "background": { + "scripts": ["background.js"], + "persistent": false + }, + "storage": { + "managed_schema": "schema.json" + }, + "permissions": [ + "storage", + "cookies", + "\u003Call_urls\u003E" + ], + "manifest_version": 2 +} diff --git a/roles/jibri-install/files/chrome-extension-cookie/schema.json b/roles/jibri-install/files/chrome-extension-cookie/schema.json new file mode 100644 index 0000000..e4d170a --- /dev/null +++ b/roles/jibri-install/files/chrome-extension-cookie/schema.json @@ -0,0 +1,16 @@ +{ + "type": "object", + "properties": { + "forcedCookies": { + "type": "array", + "items": { + "type": "object", + "properties": { + "domain": { "type": "string" }, + "name": { "type": "string" }, + "value": { "type": "string" } + } + } + } + } +} -- cgit v1.2.3