2021-02-13 23:30:35 +01:00
|
|
|
Check DevOps plugin
|
|
|
|
===================
|
|
|
|
|
|
|
|
This plugin can be used to check the :doc:`DevOps<devopshandler>` file.
|
|
|
|
|
|
|
|
Configuration
|
|
|
|
-------------
|
2021-02-16 14:30:22 +01:00
|
|
|
|
2021-02-13 23:30:35 +01:00
|
|
|
Just enable it in the manager (section “plugins”).
|
|
|
|
|
2021-02-16 14:30:22 +01:00
|
|
|
- **Parameters**:
|
|
|
|
|
|
|
|
- **Activation**: Enable / Disable this plugin
|
2021-09-01 21:37:41 +02:00
|
|
|
- **Download file**: Allow users to download DevOps file from a
|
|
|
|
remote server by providing an URL
|
|
|
|
(By example: http://myapp.example.com:8080). Plugin will
|
|
|
|
try to retrieve remote file by sending a request
|
|
|
|
(i.e. http://myapp.example.com:8080/rules.json)
|
|
|
|
- **Display normalized headers**: Display headers as they are sent
|
2021-12-22 00:29:33 +01:00
|
|
|
- **Check session attributes**: Check if used attributes are existing
|
2021-02-16 14:30:22 +01:00
|
|
|
|
2021-02-13 23:30:35 +01:00
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
When enabled, ``/checkdevops`` URL path is handled by this plugin.
|
2021-09-01 21:37:41 +02:00
|
|
|
Then, you can paste a file to test your rules and headers or
|
|
|
|
provide an URL to download the ``rules.json`` file.
|
2021-02-13 23:30:35 +01:00
|
|
|
|
|
|
|
Example
|
|
|
|
~~~~~~~
|
|
|
|
DevOps handler requires a rules.json file to define
|
|
|
|
access rules and headers:
|
|
|
|
|
|
|
|
.. code-block:: json
|
|
|
|
|
|
|
|
{
|
|
|
|
"rules": {
|
|
|
|
"^/admin": "$uid eq 'admin'",
|
|
|
|
"default": "accept"
|
|
|
|
},
|
|
|
|
"headers": {
|
|
|
|
"Auth-User": "$uid"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
This plugin displays ALL user session attributes except
|
|
|
|
the hidden ones.
|
|
|
|
|
|
|
|
You have to restrict access to specific users like DevOps teams
|
|
|
|
by setting an access rule like other VirtualHosts.
|
|
|
|
|
|
|
|
By example: ``$groups =~ /\bdevops\b/``
|
|
|
|
|
2021-09-01 21:37:41 +02:00
|
|
|
.. danger::
|
2021-02-13 23:30:35 +01:00
|
|
|
|
|
|
|
Be careful to not display secret attributes.
|
|
|
|
|
2021-03-10 15:55:13 +01:00
|
|
|
checkDevOps plugin uses hidden attributes option.
|