| 1 |
Check DevOps plugin |
| 2 |
=================== |
| 3 |
|
| 4 |
This plugin can be used to check a :doc:`DevOps<devopshandler>` file. |
| 5 |
|
| 6 |
Configuration |
| 7 |
------------- |
| 8 |
|
| 9 |
Just enable it in manager (“plugins” section). |
| 10 |
|
| 11 |
- **Parameters**: |
| 12 |
|
| 13 |
- **Activation**: enable/disable this plugin |
| 14 |
- **Download file**: Allow users to download DevOps file from a |
| 15 |
remote server by providing an URL |
| 16 |
(By example: http://myapp.example.com:8080). Plugin will |
| 17 |
try to retrieve remote file by sending a request |
| 18 |
(i.e. http://myapp.example.com:8080/rules.json) |
| 19 |
- **Display normalized headers**: display headers as they are sent |
| 20 |
- **Check session attributes**: check if used attributes exist |
| 21 |
|
| 22 |
Usage |
| 23 |
----- |
| 24 |
When enabled, ``/checkdevops`` URL path is handled by this plugin. |
| 25 |
Then, you can paste a file to test your rules and headers or |
| 26 |
provide an URL to download the ``rules.json`` file. |
| 27 |
|
| 28 |
Example |
| 29 |
~~~~~~~ |
| 30 |
DevOps handler requires a rules.json file to define access rules and headers: |
| 31 |
|
| 32 |
.. code-block:: json |
| 33 |
|
| 34 |
{ |
| 35 |
"rules": { |
| 36 |
"^/admin": "$uid eq 'admin'", |
| 37 |
"default": "accept" |
| 38 |
}, |
| 39 |
"headers": { |
| 40 |
"Auth-User": "$uid" |
| 41 |
} |
| 42 |
} |
| 43 |
|
| 44 |
.. note:: |
| 45 |
|
| 46 |
This plugin displays ALL user session attributes except the hidden ones. |
| 47 |
|
| 48 |
You have to restrict access to specific users like DevOps teams |
| 49 |
by setting an access rule like other VirtualHosts. |
| 50 |
|
| 51 |
By example: ``$groups =~ /\bdevops\b/`` |
| 52 |
|
| 53 |
.. danger:: |
| 54 |
|
| 55 |
Be careful to not display secret attributes. |
| 56 |
|
| 57 |
checkDevOps plugin takes hidden attributes into account. |