Go to file
Jerry Sun fccf95de00 Support Reader Role for patch-strategy
This commit adds support for reader role for sw-manager
patch-strategy commands. The policy engine (policy.py) is an
openstack based policy engine taken from sysinv, with minor
adjustments. The behavior is that "get" commands like
"patch-strategy show" requires reader role in the admin project.
Other commands requires admin role in the admin project. This commit
only does role checks for the patch-strategy commands.

Test Cases:

PASS: Existing admin user can execute all commands (patch-strategy
      show, create, delete, apply, abort)
PASS: New admin user with admin role in admin project behaves like
      existing admin
PASS: New user with reader role can only run patch-strategy show.
      patch-strategy create and delete denies the request
PASS: New admin user of a different project but has no roles, admin
      or reader in the admin project is denied all access
PASS: sw-manager kube-upgrade-strategy's old behavior is preserved.
      only admin can run commands, even get commands
PASS: dcmanager user behaves the same way as admin
PASS: patch strategy can be created through horizon

Change-Id: I7edd0937ede1ebc315e2185f45ba113f6f6cc9d8
Story: 2010149
Task: 46015
Signed-off-by: Jerry Sun <jerry.sun@windriver.com>
2022-08-24 19:53:27 +00:00
2022-06-03 15:20:56 -03:00
2018-09-25 14:01:33 -07:00
2019-04-19 19:52:26 +00:00
2018-05-31 07:36:51 -07:00
2018-07-10 10:18:28 -05:00

nfv

StarlingX NFVI Orchestration

Description
StarlingX NFVI Orchestration
Readme 41 MiB
Languages
Python 83.4%
JavaScript 7%
C++ 6.5%
Shell 1.5%
Handlebars 0.9%
Other 0.7%