You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently only NamedModelViewSet (NMV) can be fully added to Pulp's RBAC system. The ability to customize the AccessPolicy, define default roles and use object creation hooks are restricted to NMVs. This is due to the post-migrate hooks at startup that only look through registered NMVs.
# The view does not define a `urlpattern()` method, e.g. it's not a NamedModelViewset
returnNone
If we want to add RBAC to non-NMVs (like orphan cleanup #1924), we will need to redesign portions of this system to make it easier to add support without turning every view into a NMV.
The text was updated successfully, but these errors were encountered:
Currently only
NamedModelViewSet
(NMV) can be fully added to Pulp's RBAC system. The ability to customize theAccessPolicy
, define default roles and use object creation hooks are restricted to NMVs. This is due to the post-migrate hooks at startup that only look through registered NMVs.pulpcore/pulpcore/app/apps.py
Lines 131 to 136 in 1f28641
Also, our permission class
AccessPolicyFromDB
is expecting NMVs in order to work.pulpcore/pulpcore/app/access_policy.py
Lines 25 to 29 in 1f28641
If we want to add RBAC to non-NMVs (like orphan cleanup #1924), we will need to redesign portions of this system to make it easier to add support without turning every view into a NMV.
The text was updated successfully, but these errors were encountered: