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 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1795 'type': 'array', | 1795 'type': 'array', |
1796 'items': { | 1796 'items': { |
1797 'type': 'string', | 1797 'type': 'string', |
1798 'pattern': '^[a-z][a-zA-Z.]*$', | 1798 'pattern': '^[a-z][a-zA-Z.]*$', |
1799 }, | 1799 }, |
1800 'id': 'ListOfPermissions', | 1800 'id': 'ListOfPermissions', |
1801 }, | 1801 }, |
1802 'allowed_permissions': { | 1802 'allowed_permissions': { |
1803 '$ref': 'ListOfPermissions', | 1803 '$ref': 'ListOfPermissions', |
1804 }, | 1804 }, |
| 1805 'minimum_version_required': { |
| 1806 'type': 'string', |
| 1807 'pattern': '^[0-9]+([.][0-9]+)*$', |
| 1808 }, |
1805 }, | 1809 }, |
1806 }, | 1810 }, |
1807 '^update_url:': { | 1811 '^update_url:': { |
1808 'type': 'object', | 1812 'type': 'object', |
1809 'properties': { | 1813 'properties': { |
1810 'installation_mode': { | 1814 'installation_mode': { |
1811 'type': 'string', | 1815 'type': 'string', |
1812 'enum': ['blocked', 'allowed'] | 1816 'enum': ['blocked', 'allowed'] |
1813 }, | 1817 }, |
1814 'blocked_permissions': { | 1818 'blocked_permissions': { |
(...skipping 29 matching lines...) Expand all Loading... |
1844 'future': True, | 1848 'future': True, |
1845 'supported_on': ['chrome.*:40-', 'chrome_os:40-'], | 1849 'supported_on': ['chrome.*:40-', 'chrome_os:40-'], |
1846 'features': { | 1850 'features': { |
1847 'dynamic_refresh': True, | 1851 'dynamic_refresh': True, |
1848 'per_profile': True, | 1852 'per_profile': True, |
1849 }, | 1853 }, |
1850 'example_value': { | 1854 'example_value': { |
1851 'abcdefghijklmnopabcdefghijklmnop' : { | 1855 'abcdefghijklmnopabcdefghijklmnop' : { |
1852 'installation_mode': 'allowed', | 1856 'installation_mode': 'allowed', |
1853 'blocked_permissions': ['history'], | 1857 'blocked_permissions': ['history'], |
| 1858 'minimum_version_required': '1.0.1', |
1854 }, | 1859 }, |
1855 'bcdefghijklmnopabcdefghijklmnopa' : { | 1860 'bcdefghijklmnopabcdefghijklmnopa' : { |
1856 'installation_mode': 'force_installed', | 1861 'installation_mode': 'force_installed', |
1857 'update_url': 'http://example.com/update_url', | 1862 'update_url': 'http://example.com/update_url', |
1858 'allowed_permissions': ['downloads'], | 1863 'allowed_permissions': ['downloads'], |
1859 }, | 1864 }, |
1860 'update_url:http://www.example.com/update.xml': { | 1865 'update_url:http://www.example.com/update.xml': { |
1861 'blocked_permissions': ['wallpaper'], | 1866 'blocked_permissions': ['wallpaper'], |
1862 }, | 1867 }, |
1863 '*': { | 1868 '*': { |
(...skipping 20 matching lines...) Expand all Loading... |
1884 * "normal_installed": the extension is automatically installed but can
be disabled by the user. | 1889 * "normal_installed": the extension is automatically installed but can
be disabled by the user. |
1885 | 1890 |
1886 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. | 1891 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. |
1887 | 1892 |
1888 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. | 1893 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. |
1889 | 1894 |
1890 "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. | 1895 "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. |
1891 | 1896 |
1892 "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. | 1897 "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. |
1893 | 1898 |
| 1899 "minimum_version_required": maps to a version string. The format of th
e version string is the same as the one used in extension manifest, as described
at <ph name="LINK_TO_EXTENSION_DOC4">https://developer.chrome.com/apps/manifest
/version</ph>. An extension with a version older than the specified minimum vers
ion will be disabled. This applies to force-installed extensions as well. |
| 1900 |
1894 The following settings can be used only for the default "*" configurat
ion: | 1901 The following settings can be used only for the default "*" configurat
ion: |
1895 | 1902 |
1896 "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. | 1903 "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. |
1897 | 1904 |
1898 "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. | 1905 "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. |
1899 | 1906 |
1900 This policy isn't ready for usage yet, please don't use it. | 1907 This policy isn't ready for usage yet, please don't use it. |
1901 ''' | 1908 ''' |
1902 }, | 1909 }, |
1903 ], | 1910 ], |
(...skipping 5235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7139 'desc': '''Text appended in parentheses next to the policies top-level con
tainer to indicate that those policies are of the Recommended level''', | 7146 'desc': '''Text appended in parentheses next to the policies top-level con
tainer to indicate that those policies are of the Recommended level''', |
7140 'text': 'Default Settings (users can override)', | 7147 'text': 'Default Settings (users can override)', |
7141 }, | 7148 }, |
7142 'doc_complex_policies_on_windows': { | 7149 'doc_complex_policies_on_windows': { |
7143 'desc': '''Text pointing the user to a help article for complex policies o
n Windows''', | 7150 'desc': '''Text pointing the user to a help article for complex policies o
n Windows''', |
7144 '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>'''
, | 7151 '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>'''
, |
7145 }, | 7152 }, |
7146 }, | 7153 }, |
7147 'placeholders': [], | 7154 'placeholders': [], |
7148 } | 7155 } |
OLD | NEW |