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 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1740 'type': 'object', | 1740 'type': 'object', |
1741 'patternProperties': { | 1741 'patternProperties': { |
1742 '^[a-p]{32}$': { | 1742 '^[a-p]{32}$': { |
1743 'type': 'object', | 1743 'type': 'object', |
1744 'properties': { | 1744 'properties': { |
1745 'installation_mode': { | 1745 'installation_mode': { |
1746 'type': 'string', | 1746 'type': 'string', |
1747 'enum': ['blocked', 'allowed', 'force_installed', 'normal_in
stalled'] | 1747 'enum': ['blocked', 'allowed', 'force_installed', 'normal_in
stalled'] |
1748 }, | 1748 }, |
1749 'update_url': { 'type': 'string' }, | 1749 'update_url': { 'type': 'string' }, |
1750 } | 1750 'blocked_permissions': { |
1751 } | 1751 'type': 'array', |
| 1752 'items': { |
| 1753 'type': 'string', |
| 1754 'pattern': '^[a-z][a-zA-Z.]*$', |
| 1755 }, |
| 1756 'id': 'ListOfPermissions', |
| 1757 }, |
| 1758 'allowed_permissions': { |
| 1759 '$ref': 'ListOfPermissions', |
| 1760 }, |
| 1761 }, |
| 1762 }, |
1752 }, | 1763 }, |
1753 'properties': { | 1764 'properties': { |
1754 '*': { | 1765 '*': { |
1755 'type': 'object', | 1766 'type': 'object', |
1756 'properties': { | 1767 'properties': { |
1757 'installation_mode': { | 1768 'installation_mode': { |
1758 'type': 'string', | 1769 'type': 'string', |
1759 'enum': ['blocked', 'allowed'] | 1770 'enum': ['blocked', 'allowed'] |
1760 }, | 1771 }, |
| 1772 'blocked_permissions': { |
| 1773 '$ref': 'ListOfPermissions', |
| 1774 }, |
1761 'install_sources': { | 1775 'install_sources': { |
1762 '$ref': 'ExtensionInstallSources', | 1776 '$ref': 'ExtensionInstallSources', |
1763 }, | 1777 }, |
1764 'allowed_types': { | 1778 'allowed_types': { |
1765 '$ref': 'ExtensionAllowedTypes', | 1779 '$ref': 'ExtensionAllowedTypes', |
1766 }, | 1780 }, |
1767 } | 1781 }, |
1768 } | 1782 }, |
1769 } | 1783 }, |
1770 }, | 1784 }, |
1771 'future': True, | 1785 'future': True, |
1772 'supported_on': ['chrome.*:40-', 'chrome_os:40-'], | 1786 'supported_on': ['chrome.*:40-', 'chrome_os:40-'], |
1773 'features': { | 1787 'features': { |
1774 'dynamic_refresh': True, | 1788 'dynamic_refresh': True, |
1775 'per_profile': True, | 1789 'per_profile': True, |
1776 }, | 1790 }, |
1777 'example_value': { | 1791 'example_value': { |
1778 'abcdefghijklmnopabcdefghijklmnop' : { | 1792 'abcdefghijklmnopabcdefghijklmnop' : { |
1779 'installation_mode': 'allowed', | 1793 'installation_mode': 'allowed', |
| 1794 'blocked_permissions': ['history'], |
1780 }, | 1795 }, |
1781 'bcdefghijklmnopabcdefghijklmnopa' : { | 1796 'bcdefghijklmnopabcdefghijklmnopa' : { |
1782 'installation_mode': 'force_installed', | 1797 'installation_mode': 'force_installed', |
1783 'update_url': 'http://example.com/update_url', | 1798 'update_url': 'http://example.com/update_url', |
| 1799 'allowed_permissions': ['downloads'], |
1784 }, | 1800 }, |
1785 '*': { | 1801 '*': { |
1786 'installation_mode': 'blocked', | 1802 'installation_mode': 'blocked', |
| 1803 'blocked_permissions': ['downloads', 'bookmarks'], |
1787 'install_sources': ['http://company-intranet/chromeapps'], | 1804 'install_sources': ['http://company-intranet/chromeapps'], |
1788 'allowed_types': ['hosted_app'], | 1805 'allowed_types': ['hosted_app'], |
1789 }, | 1806 }, |
1790 }, | 1807 }, |
1791 'id': 278, | 1808 'id': 278, |
1792 'caption': 'Extension management settings', | 1809 'caption': 'Extension management settings', |
1793 'desc': '''Configures extension management settings for <ph name="PROD
UCT_NAME">$1<ex>Google Chrome</ex></ph>. | 1810 'desc': '''Configures extension management settings for <ph name="PROD
UCT_NAME">$1<ex>Google Chrome</ex></ph>. |
1794 | 1811 |
1795 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. | 1812 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. |
1796 | 1813 |
1797 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. | 1814 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. |
1798 | 1815 |
1799 "installation_mode": maps to a string indicating the installation mode
for the extension. The valid strings are: | 1816 "installation_mode": maps to a string indicating the installation mode
for the extension. The valid strings are: |
1800 * "allowed": allows the extension to be installed by the user. This is
the default behavior. | 1817 * "allowed": allows the extension to be installed by the user. This is
the default behavior. |
1801 * "blocked": blocks installation of the extension. | 1818 * "blocked": blocks installation of the extension. |
1802 * "force_installed": the extension is automatically installed and can'
t be removed by the user. | 1819 * "force_installed": the extension is automatically installed and can'
t be removed by the user. |
1803 * "normal_installed": the extension is automatically installed but can
be disabled by the user. | 1820 * "normal_installed": the extension is automatically installed but can
be disabled by the user. |
1804 | 1821 |
1805 The default "installation_mode" can be configured for the "*" extensio
n. Only the "allowed" and "blocked" values can be used in this case. | 1822 The default "installation_mode" can be configured for the "*" extensio
n. Only the "allowed" and "blocked" values can be used in this case. |
1806 | 1823 |
1807 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. | 1824 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. |
1808 | 1825 |
| 1826 "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. |
| 1827 |
| 1828 "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. |
| 1829 |
1809 The following settings can be used only for the default "*" configurat
ion: | 1830 The following settings can be used only for the default "*" configurat
ion: |
1810 | 1831 |
1811 "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. | 1832 "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. |
1812 | 1833 |
1813 "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. | 1834 "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. |
1814 | 1835 |
1815 This policy isn't ready for usage yet, please don't use it. | 1836 This policy isn't ready for usage yet, please don't use it. |
1816 ''' | 1837 ''' |
1817 }, | 1838 }, |
1818 ], | 1839 ], |
(...skipping 5205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7024 'desc': '''Text appended in parentheses next to the policies top-level con
tainer to indicate that those policies are of the Recommended level''', | 7045 'desc': '''Text appended in parentheses next to the policies top-level con
tainer to indicate that those policies are of the Recommended level''', |
7025 'text': 'Default Settings (users can override)', | 7046 'text': 'Default Settings (users can override)', |
7026 }, | 7047 }, |
7027 'doc_complex_policies_on_windows': { | 7048 'doc_complex_policies_on_windows': { |
7028 'desc': '''Text pointing the user to a help article for complex policies o
n Windows''', | 7049 'desc': '''Text pointing the user to a help article for complex policies o
n Windows''', |
7029 '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>'''
, | 7050 '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>'''
, |
7030 }, | 7051 }, |
7031 }, | 7052 }, |
7032 'placeholders': [], | 7053 'placeholders': [], |
7033 } | 7054 } |
OLD | NEW |