Skip to content

Commit e8e7097

Browse files
committed
[#3483] Updated RBAC doc
1 parent 6045a46 commit e8e7097

File tree

4 files changed

+20
-13
lines changed

4 files changed

+20
-13
lines changed

doc/examples/agent/rbac.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
// Add hooks here.
3333
"hooks-libraries": [
3434
{
35-
"library": "/opt/lib/libca_rbac.so",
35+
"library": "/opt/lib/libdhcp_rbac.so",
3636
"parameters": {
3737
// This section configures the RBAC hook library.
3838
// Mandatory parameters.

doc/sphinx/arm/ctrl-channel.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ as a single entry (JSON map) as follows:
274274

275275

276276
These types of errors are possible on systems configured for either basic
277-
authentication or agents that load :ischooklib:`libca_rbac.so`.
277+
authentication or agents that load :ischooklib:`libdhcp_rbac.so`.
278278

279279
.. _ctrl-channel-client:
280280

doc/sphinx/arm/hooks-rbac.rst

+17-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
.. ischooklib:: libca_rbac.so
1+
.. ischooklib:: libdhcp_rbac.so
22
.. _hooks-RBAC:
33

4-
``libca_rbac.so``: Role-Based Access Control
5-
============================================
4+
``libdhcp_rbac.so``: Role-Based Access Control
5+
==============================================
66

77
.. _hooks-RBAC-overview:
88

99
Role-Based Access Control (RBAC) Overview
1010
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1111

12-
Before the processing of commands in received HTTP requests, :ischooklib:`libca_rbac.so`
12+
Before the processing of commands in received HTTP requests, :ischooklib:`libdhcp_rbac.so`
1313
takes specific parameters, e.g. the common-name part of the client
1414
certificate subject name, to assign a role to the request.
1515
The configuration associated with this role is used to accept or reject
@@ -33,10 +33,17 @@ Here is a summary of the steps in processing a response:
3333

3434
.. note::
3535

36-
:ischooklib:`libca_rbac.so` is available only to ISC customers with
36+
:ischooklib:`libdhcp_rbac.so` is available only to ISC customers with
3737
a paid support contract. For more information on subscription options,
3838
please complete the form at https://www.isc.org/contact.
3939

40+
41+
.. note::
42+
43+
Since Kea 1.7.x the RBAC is no longer limited to teh Control Agent:
44+
it can be used by any other server supporting HTTP/HTTPS control
45+
sockets e.g. DHCPv4, DHCPv6 and DDNS servers.
46+
4047
.. _hooks-RBAC-config:
4148

4249
Role-Based Access Control Configuration
@@ -106,12 +113,12 @@ API Commands
106113

107114
All commands of the REST API are described in files in the source directory
108115
``src/share/api``, or in installed Kea
109-
in ``.../share/kea/api``. :ischooklib:`libca_rbac.so` reads these files to take the name,
116+
in ``.../share/kea/api``. :ischooklib:`libdhcp_rbac.so` reads these files to take the name,
110117
the access right (i.e. ``read`` or ``write``), and the hook name. The access right
111-
can be modified in the file but changes are only applied after the Control Agent
112-
restarts. Removing command definitions from ``.../share/kea/api`` has
118+
can be modified in the file but changes are only applied after the server or
119+
agent restarts. Removing command definitions from ``.../share/kea/api`` has
113120
consequences: if the access control list is based on ``read`` or ``write`` and
114-
the definition file is missing, the Control Agent always rejects such
121+
the definition file is missing, the server or agent always rejects such
115122
a command. If the access controls list is using ``commands`` to specify the
116123
name of a command and the definition file from ``.../share/kea/api`` of this
117124
particular command is missing, the Control Agent logs an error on startup
@@ -261,7 +268,7 @@ in the Kea source and is copied below.
261268
// Add hooks here.
262269
"hooks-libraries": [
263270
{
264-
"library": "/opt/lib/libca_rbac.so",
271+
"library": "/opt/lib/libdhcp_rbac.so",
265272
"parameters": {
266273
// This section configures the RBAC hook library.
267274
// Mandatory parameters.

doc/sphinx/arm/logging.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ libraries), or hook libraries (open source or premium).
164164
| | | parsing, and sending |
165165
| | | HTTP messages. |
166166
+----------------------------------+---------------------------------------+--------------------------------+
167-
| ``kea-ctrl-agent.rbac-hooks`` | :ischooklib:`libca_rbac.so` | Used to log messages related |
167+
| ``kea-ctrl-agent.rbac-hooks`` | :ischooklib:`libdhcp_rbac.so` | Used to log messages related |
168168
| | enterprise hook library | to the operation of the RBAC |
169169
| | | hook library. |
170170
+----------------------------------+---------------------------------------+--------------------------------+

0 commit comments

Comments
 (0)