]> git.proxmox.com Git - mirror_ovs.git/commit - lib/jsonrpc.h
ovsdb: add support for role-based access controls
authorLance Richardson <lrichard@redhat.com>
Wed, 31 May 2017 23:04:32 +0000 (19:04 -0400)
committerBen Pfaff <blp@ovn.org>
Thu, 8 Jun 2017 20:58:27 +0000 (13:58 -0700)
commitd6db7b3cc4bcf908e3016924f4e782d4740f804f
tree5983cb720c17549ba2163047240cbb7f54db9d00
parent8155ab7e632f3c457117ad5206b4b28f01a04dcd
ovsdb: add support for role-based access controls

Add suport for ovsdb RBAC (role-based access control). This includes:

   - Support for "RBAC_Role" table. A db schema containing a table
     by this name will enable role-based access controls using
     this table for RBAC role configuration.

     The "RBAC_Role" table has one row per role, with each row having a
     "name" column (role name) and a "permissions" column (map of
     table name to UUID of row in separate permission table.) The
     permission table has one row per access control configuration,
     with the following columns:
          "name"          - name of table to which this row applies
          "authorization" - set of column names and column:key pairs
                            to be compared against client ID to
                            determine authorization status
          "insert_delete" - boolean, true if insertions and
                            authorized deletions are allowed.
          "update"        - Set of columns and column:key pairs for
                            which authorized updates are allowed.
   - Support for a new "role" column in the remote configuration
     table.
   - Logic for applying the RBAC role and permission tables, in
     combination with session role from the remote connection table
     and client id, to determine whether operations modifying database
     contents should be permitted.
   - Support for specifying RBAC role string as a command-line option
     to ovsdb-tool (Ben Pfaff).

Signed-off-by: Lance Richardson <lrichard@redhat.com>
Co-authored-by: Ben Pfaff <blp@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
26 files changed:
NEWS
lib/jsonrpc.c
lib/jsonrpc.h
lib/ovsdb-error.c
lib/ovsdb-error.h
lib/ovsdb-idl.c
ovsdb/automake.mk
ovsdb/execution.c
ovsdb/jsonrpc-server.c
ovsdb/jsonrpc-server.h
ovsdb/ovsdb-server.1.in
ovsdb/ovsdb-server.c
ovsdb/ovsdb-tool.1.in
ovsdb/ovsdb-tool.c
ovsdb/ovsdb-util.c
ovsdb/ovsdb-util.h
ovsdb/ovsdb.c
ovsdb/ovsdb.h
ovsdb/rbac.c [new file with mode: 0644]
ovsdb/rbac.h [new file with mode: 0644]
ovsdb/trigger.c
ovsdb/trigger.h
tests/automake.mk
tests/ovsdb-rbac.at [new file with mode: 0644]
tests/ovsdb.at
tests/test-ovsdb.c