1
Regex-based Authorization
2
=========================
4
:program:`regex_policy` is an :doc:`/administration/authorization` plugin
5
that uses regex patterns to match policies.
7
.. _regex_policy_loading:
12
To load this plugin, start :program:`drizzled` with::
14
--plugin-add=regex_policy
16
Loading the plugin may not enable or configure it. See the plugin's
17
:ref:`regex_policy_configuration` and :ref:`regex_policy_variables`.
19
.. seealso:: :doc:`/options` for more information about adding and removing plugins.
21
.. _regex_policy_configuration:
26
These command line options configure the plugin when :program:`drizzled`
27
is started. See :doc:`/configuration` for more information about specifying
32
.. option:: --regex-policy.policy ARG
34
:Default: :file:`drizzle.policy`
35
:Variable: :ref:`regex_policy_policy <regex_policy_policy>`
37
File to load for regex authorization policies.
39
.. _regex_policy_variables:
44
These variables show the running configuration of the plugin.
45
See `variables` for more information about querying and setting variables.
47
.. _regex_policy_policy:
49
* ``regex_policy_policy``
53
:Option: :option:`--regex-policy.policy`
55
File to load for regex authorization policies.
57
.. _regex_policy_file_format:
59
Regex Policy File Format
60
------------------------
62
The general line format of a regex policy file is::
64
USER_PATTERN SCHEMA_OBJECT_PATTERN POLICY
68
# This is a comment line and should be skipped
69
.+ schema=DATA_DICTIONARY ACCEPT
70
.+ schema=INFORMATION_SCHEMA ACCEPT
71
.+ schema=data_dictionary ACCEPT
72
.+ schema=information_schema ACCEPT
75
root process=.+ ACCEPT
76
user1 schema=user1 ACCEPT
77
user2 schema=user2 ACCEPT
78
user1 process=user1 ACCEPT
79
user2 process=user2 ACCEPT
80
# Default to denying everything
87
Sorry, there are no examples for this plugin.
89
.. _regex_policy_authors:
96
.. _regex_policy_version:
101
This documentation applies to **regex_policy 1.0**.
103
To see which version of the plugin a Drizzle server is running, execute:
105
.. code-block:: mysql
107
SELECT MODULE_VERSION FROM DATA_DICTIONARY.MODULES WHERE MODULE_NAME='regex_policy'