| 1 | --- |
| 2 | features: |
| 3 | - | |
| 4 | In the Victoria release, cyborg introduced the new scoped RBAC policy |
| 5 | authorization for API access, and partially implemented the blueprints. |
| 6 | What implemented are new default rules in base policy and device_profile |
| 7 | policy. |
| 8 | |
| 9 | During the development period(victoria and wallaby releases), the new and |
| 10 | old policy will both work because a deployment sets |
| 11 | ``cyborg.conf [oslo_policy] enforce_scope = False`` as the default set. |
| 12 | Although users can set ``cyborg.conf [oslo_policy] enforce_scope = True`` |
| 13 | by default in their deployment, if they want to ignore old rules and |
| 14 | support new rules only. After we implement all the features, we'll give |
| 15 | two cycles transition period for operators. For specification of |
| 16 | new policy, please refer to `policy default refresh`_. |
| 17 | |
| 18 | - Scope |
| 19 | |
| 20 | Cyborg introduced ``scope_type`` to protect each policy. Cyborg support |
| 21 | two types of ``sope_type`` with their combination. ``['system']``, |
| 22 | ``['project']`` and ``['system', 'project']``. |
| 23 | |
| 24 | To know each policy ``scope_type``, please refer the `Policy Reference`_ |
| 25 | |
| 26 | This feature is disabled by default can be enabled via config option |
| 27 | ``[oslo_policy]enforce_scope`` in ``cyborg.conf`` |
| 28 | |
| 29 | - New Defaults Configuration |
| 30 | |
| 31 | Policies are default to Admin, Member and Reader roles. Old roles |
| 32 | are also supported. You can switch to new defaults via config option |
| 33 | ``[oslo_policy]enforce_new_defaults`` in ``cyborg.conf`` file. |
| 34 | |
| 35 | - New Base policy roles |
| 36 | |
| 37 | Cyborg introduced seven basic roles based on the new defaults combined |
| 38 | with different scope_types. |
| 39 | |
| 40 | - project_reader |
| 41 | - project_member |
| 42 | - project_admin |
| 43 | - system_admin |
| 44 | - system_reader |
| 45 | - system_admin_or_owner |
| 46 | - system_or_project_reader |
| 47 | |
| 48 | - New Defaults for device_profile APIs |
| 49 | |
| 50 | Rewrite check string(authorization rules) using new personas for |
| 51 | device profile APIs. |
| 52 | |
| 53 | Add ``checkstr=base.PROJECT_READER_OR_SYSTEM_READER`` and |
| 54 | deprecated ``checkstr=base.deprecated_default`` for |
| 55 | |
| 56 | - ``cyborg:device_profile:get_one`` |
| 57 | - ``cyborg:device_profile:get_all`` |
| 58 | |
| 59 | Add ``check_str=base.SYSTEM_ADMIN`` and |
| 60 | deprecated ``check_str=base.deprecated_is_admin`` for |
| 61 | |
| 62 | - ``cyborg:device_profile:create`` |
| 63 | |
| 64 | Add ``check_str=base.SYSTEM_ADMIN`` and |
| 65 | deprecated ``base.deprecated_default`` for |
| 66 | |
| 67 | - ``cyborg:device_profile:delete`` |
| 68 | |
| 69 | - Added policy configuration guide on cyborg doc page |
| 70 | |
| 71 | Please refer to `policy configuration guide`_ |
| 72 | |
| 73 | .. _policy default refresh: https://specs.openstack.org/openstack/cyborg-specs/specs/ussuri/approved/policy-defaults-refresh.html |
| 74 | .. _Policy Reference: https://docs.openstack.org/cyborg/latest/configuration/policy.html |
| 75 | .. _policy configuration guide: https://docs.openstack.org/cyborg/latest/configuration/policy-guide.html |
| 76 | |
| 77 | deprecations: |
| 78 | - | |
| 79 | The old basic personas below are marked as deprecated rules in base policy. |
| 80 | |
| 81 | - public_api |
| 82 | - allow |
| 83 | - deny |
| 84 | - admin_api |
| 85 | - is_admin |
| 86 | - admin_or_owner |
| 87 | - admin_or_user |