[ENH] - Provide code to migrate from v1 to v2 NamespaceRoleMapping
#681
Labels
area: RBAC
Items related to role based access
area: user experience 👩🏻💻
Items impacting the end-user experience
type: enhancement 💅🏼
Feature description
This is intended as a follow up to #607.
NamespaceRoleMapping
(v1) andNamespaceRoleMappingV2
(v2) role mappings have incompatible formats.namespace_id
,other_namespace_id
).Because of this, we cannot transparently migrate users to the v2 table:
NamespaceRoleMapping.entity
field can potentially be invalid, e.g.,"*"
will fail because there's no character to repeatValue and/or benefit
Since the migration code copying data from v1 to v2 might fail, we won't migrate users automatically.
Otherwise, they won't be able to migrate to v2 due to errors.
However, I'll provide standalone code in the documentation for users who want to migrate their data and are ready to resolve SQL issues that might arise during migration.
This code will just be a function they could call and will be tested on potentially problematic cases.
The high-level view of the migration algorithm is as follows (I have a WIP implementation locally):
/
in entity)Notes:
entity
field. In v2,namespace_id
will be the other namespace that will provide access to itself by specifying namespace inother_namespace_id
.Anything else?
No response
The text was updated successfully, but these errors were encountered: