| OLD | NEW |
| 1 { | 1 { |
| 2 # policy_templates.json - Metafile for policy templates | 2 # policy_templates.json - Metafile for policy templates |
| 3 # | 3 # |
| 4 # The content of this file is evaluated as a Python expression. | 4 # The content of this file is evaluated as a Python expression. |
| 5 # | 5 # |
| 6 # This file is used as input to generate the following policy templates: | 6 # This file is used as input to generate the following policy templates: |
| 7 # ADM, ADMX+ADML, MCX/plist and html documentation. | 7 # ADM, ADMX+ADML, MCX/plist and html documentation. |
| 8 # | 8 # |
| 9 # Policy templates are user interface definitions or documents about the | 9 # Policy templates are user interface definitions or documents about the |
| 10 # policies that can be used to configure Chrome. Each policy is a name-value | 10 # policies that can be used to configure Chrome. Each policy is a name-value |
| (...skipping 1745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1756 'type': 'string', | 1756 'type': 'string', |
| 1757 'pattern': '^[a-z][a-zA-Z.]*$', | 1757 'pattern': '^[a-z][a-zA-Z.]*$', |
| 1758 }, | 1758 }, |
| 1759 'id': 'ListOfPermissions', | 1759 'id': 'ListOfPermissions', |
| 1760 }, | 1760 }, |
| 1761 'allowed_permissions': { | 1761 'allowed_permissions': { |
| 1762 '$ref': 'ListOfPermissions', | 1762 '$ref': 'ListOfPermissions', |
| 1763 }, | 1763 }, |
| 1764 }, | 1764 }, |
| 1765 }, | 1765 }, |
| 1766 '^update_url:': { |
| 1767 'type': 'object', |
| 1768 'properties': { |
| 1769 'installation_mode': { |
| 1770 'type': 'string', |
| 1771 'enum': ['blocked', 'allowed'] |
| 1772 }, |
| 1773 'blocked_permissions': { |
| 1774 '$ref': 'ListOfPermissions', |
| 1775 }, |
| 1776 'allowed_permissions': { |
| 1777 '$ref': 'ListOfPermissions', |
| 1778 }, |
| 1779 }, |
| 1780 }, |
| 1766 }, | 1781 }, |
| 1767 'properties': { | 1782 'properties': { |
| 1768 '*': { | 1783 '*': { |
| 1769 'type': 'object', | 1784 'type': 'object', |
| 1770 'properties': { | 1785 'properties': { |
| 1771 'installation_mode': { | 1786 'installation_mode': { |
| 1772 'type': 'string', | 1787 'type': 'string', |
| 1773 'enum': ['blocked', 'allowed'] | 1788 'enum': ['blocked', 'allowed'] |
| 1774 }, | 1789 }, |
| 1775 'blocked_permissions': { | 1790 'blocked_permissions': { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1794 'example_value': { | 1809 'example_value': { |
| 1795 'abcdefghijklmnopabcdefghijklmnop' : { | 1810 'abcdefghijklmnopabcdefghijklmnop' : { |
| 1796 'installation_mode': 'allowed', | 1811 'installation_mode': 'allowed', |
| 1797 'blocked_permissions': ['history'], | 1812 'blocked_permissions': ['history'], |
| 1798 }, | 1813 }, |
| 1799 'bcdefghijklmnopabcdefghijklmnopa' : { | 1814 'bcdefghijklmnopabcdefghijklmnopa' : { |
| 1800 'installation_mode': 'force_installed', | 1815 'installation_mode': 'force_installed', |
| 1801 'update_url': 'http://example.com/update_url', | 1816 'update_url': 'http://example.com/update_url', |
| 1802 'allowed_permissions': ['downloads'], | 1817 'allowed_permissions': ['downloads'], |
| 1803 }, | 1818 }, |
| 1819 'update_url:http://www.example.com/update.xml': { |
| 1820 'blocked_permissions': ['wallpaper'], |
| 1821 }, |
| 1804 '*': { | 1822 '*': { |
| 1805 'installation_mode': 'blocked', | 1823 'installation_mode': 'blocked', |
| 1806 'blocked_permissions': ['downloads', 'bookmarks'], | 1824 'blocked_permissions': ['downloads', 'bookmarks'], |
| 1807 'install_sources': ['http://company-intranet/chromeapps'], | 1825 'install_sources': ['http://company-intranet/chromeapps'], |
| 1808 'allowed_types': ['hosted_app'], | 1826 'allowed_types': ['hosted_app'], |
| 1809 }, | 1827 }, |
| 1810 }, | 1828 }, |
| 1811 'id': 278, | 1829 'id': 278, |
| 1812 'caption': 'Extension management settings', | 1830 'caption': 'Extension management settings', |
| 1813 'desc': '''Configures extension management settings for <ph name="PROD
UCT_NAME">$1<ex>Google Chrome</ex></ph>. | 1831 'desc': '''Configures extension management settings for <ph name="PROD
UCT_NAME">$1<ex>Google Chrome</ex></ph>. |
| 1814 | 1832 |
| 1815 This policy controls multiple settings, including settings controlled
by any existing extension-related policies. This policy will override any legacy
policies if both are set. | 1833 This policy controls multiple settings, including settings controlled
by any existing extension-related policies. This policy will override any legacy
policies if both are set. |
| 1816 | 1834 |
| 1817 This policy maps an extension ID to its configuration. A default confi
guration can be set for the special ID "*", which will apply to all extensions t
hat don't have a custom configuration set in this policy. The configuration for
each extension is another dictionary that can contain the fields documented belo
w. | 1835 This policy maps an extension ID or an update URL to its configuration
. With an extension ID, configuration will be applied to the specified extension
only. A default configuration can be set for the special ID "*", which will app
ly to all extensions that don't have a custom configuration set in this policy.
With an update URL, configuration will be applied to all extensions with the exa
ct update URL stated in manifest of this extension, as described at <ph name="LI
NK_TO_EXTENSION_DOC1">https://developer.chrome.com/extensions/autoupdate</ph>. |
| 1836 |
| 1837 The configuration for each extension (or extensions with same update U
RL) is another dictionary that can contain the fields documented below. |
| 1818 | 1838 |
| 1819 "installation_mode": maps to a string indicating the installation mode
for the extension. The valid strings are: | 1839 "installation_mode": maps to a string indicating the installation mode
for the extension. The valid strings are: |
| 1820 * "allowed": allows the extension to be installed by the user. This is
the default behavior. | 1840 * "allowed": allows the extension to be installed by the user. This is
the default behavior. |
| 1821 * "blocked": blocks installation of the extension. | 1841 * "blocked": blocks installation of the extension. |
| 1822 * "force_installed": the extension is automatically installed and can'
t be removed by the user. | 1842 * "force_installed": the extension is automatically installed and can'
t be removed by the user. |
| 1823 * "normal_installed": the extension is automatically installed but can
be disabled by the user. | 1843 * "normal_installed": the extension is automatically installed but can
be disabled by the user. |
| 1824 | 1844 |
| 1825 The default "installation_mode" can be configured for the "*" extensio
n. Only the "allowed" and "blocked" values can be used in this case. | 1845 The "installation_mode" can also be configured for multiple extensions
as well, including the "*" extension (as default settings) and extensions with
same update URL. Only the "allowed" and "blocked" values can be used in this cas
e. |
| 1826 | 1846 |
| 1827 If the mode is set to "force_installed" or "normal_installed" then an
"update_url" must be configured too. The update URL should point to an Update Ma
nifest XML document as described at <ph name="LINK_TO_EXTENSION_DOC1">https://de
veloper.chrome.com/extensions/autoupdate</ph>. Note that the update URL set in t
his policy is only used for the initial installation; subsequent updates of the
extension will use the update URL indicated in the extension's manifest. | 1847 If the mode is set to "force_installed" or "normal_installed" then an
"update_url" must be configured too. Note that the update URL set in this policy
is only used for the initial installation; subsequent updates of the extension
will use the update URL indicated in the extension's manifest. The update URL sh
ould point to an Update Manifest XML document as mentioned above. |
| 1828 | 1848 |
| 1829 "blocked_permissions": maps to a list of strings indicating the blocke
d API permissions for the extension. The permissions names are same as the permi
ssion strings declared in manifest of extension as described at <ph name="LINK_T
O_EXTENSION_DOC3">https://developer.chrome.com/extensions/declare_permissions</p
h>. This setting also can be configured for "*" extension. If the extension requ
ires a permission which is on the blocklist, it will not be allowed to load. If
it contains a blocked permission as optional requirement, it will be handled in
the normal way, but requesting conflicting permissions will be declined automati
cally at runtime. | 1849 "blocked_permissions": maps to a list of strings indicating the blocke
d API permissions for the extension. The permissions names are same as the permi
ssion strings declared in manifest of extension as described at <ph name="LINK_T
O_EXTENSION_DOC3">https://developer.chrome.com/extensions/declare_permissions</p
h>. This setting also can be configured for "*" extension. If the extension requ
ires a permission which is on the blocklist, it will not be allowed to load. If
it contains a blocked permission as optional requirement, it will be handled in
the normal way, but requesting conflicting permissions will be declined automati
cally at runtime. |
| 1830 | 1850 |
| 1831 "allowed_permissions": similar to "blocked_permissions", but instead e
xplicitly allow some permissions which might be blocked by global blocked permis
sion list, thus can not be configured for "*" extension. Note that this setting
doesn't give granted permissions to extensions automatically. | 1851 "allowed_permissions": similar to "blocked_permissions", but instead e
xplicitly allow some permissions which might be blocked by global blocked permis
sion list, thus can not be configured for "*" extension. Note that this setting
doesn't give granted permissions to extensions automatically. |
| 1832 | 1852 |
| 1833 The following settings can be used only for the default "*" configurat
ion: | 1853 The following settings can be used only for the default "*" configurat
ion: |
| 1834 | 1854 |
| 1835 "install_sources": Each item in this list is an extension-style match
pattern (see https://developer.chrome.com/extensions/match_patterns). Users will
be able to easily install items from any URL that matches an item in this list.
Both the location of the *.crx file and the page where the download is started
from (i.e. the referrer) must be allowed by these patterns. | 1855 "install_sources": Each item in this list is an extension-style match
pattern (see https://developer.chrome.com/extensions/match_patterns). Users will
be able to easily install items from any URL that matches an item in this list.
Both the location of the *.crx file and the page where the download is started
from (i.e. the referrer) must be allowed by these patterns. |
| 1836 | 1856 |
| 1837 "allowed_types": This setting whitelists the allowed types of extensio
n/apps that can be installed in <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex>
</ph>. The value is a list of strings, each of which should be one of the follo
wing: "extension", "theme", "user_script", "hosted_app", "legacy_packaged_app",
"platform_app". See the <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> ex
tensions documentation for more information on these types. | 1857 "allowed_types": This setting whitelists the allowed types of extensio
n/apps that can be installed in <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex>
</ph>. The value is a list of strings, each of which should be one of the follo
wing: "extension", "theme", "user_script", "hosted_app", "legacy_packaged_app",
"platform_app". See the <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> ex
tensions documentation for more information on these types. |
| (...skipping 5210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7048 'desc': '''Text appended in parentheses next to the policies top-level con
tainer to indicate that those policies are of the Recommended level''', | 7068 'desc': '''Text appended in parentheses next to the policies top-level con
tainer to indicate that those policies are of the Recommended level''', |
| 7049 'text': 'Default Settings (users can override)', | 7069 'text': 'Default Settings (users can override)', |
| 7050 }, | 7070 }, |
| 7051 'doc_complex_policies_on_windows': { | 7071 'doc_complex_policies_on_windows': { |
| 7052 'desc': '''Text pointing the user to a help article for complex policies o
n Windows''', | 7072 'desc': '''Text pointing the user to a help article for complex policies o
n Windows''', |
| 7053 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL
ICIES_URL">http://www.chromium.org/administrators/complex-policies-on-windows<ex
>http://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>'''
, | 7073 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL
ICIES_URL">http://www.chromium.org/administrators/complex-policies-on-windows<ex
>http://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>'''
, |
| 7054 }, | 7074 }, |
| 7055 }, | 7075 }, |
| 7056 'placeholders': [], | 7076 'placeholders': [], |
| 7057 } | 7077 } |
| OLD | NEW |