-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace role system (RBAC) with permissions-based DB roles #14905
Commits on Apr 11, 2024
-
Replace role system with permissions-based DB roles
Develop ability to list permissions for existing roles Create a model registry for RBAC-tracked models Write the data migration logic for creating the preloaded role definitions Write migration to migrate old Role into ObjectRole model This loops over the old Role model, knowing it is unique on object and role_field Most of the logic is concerned with identifying the needed permissions, and then corresponding role definition As needed, object roles are created and users then teams are assigned Write re-computation of cache logic for teams and then for object role permissions Migrate new RBAC internals to ansible_base Migrate tests to ansible_base Implement solution for visible_roles Expose URLs for DAB RBAC
Configuration menu - View commit details
-
Copy full SHA for 9981750 - Browse repository at this point
Copy the full SHA 9981750View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51a526c - Browse repository at this point
Copy the full SHA 51a526cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef20666 - Browse repository at this point
Copy the full SHA ef20666View commit details -
Configuration menu - View commit details
-
Copy full SHA for f8b5c39 - Browse repository at this point
Copy the full SHA f8b5c39View commit details -
[DAB RBAC] Re-implement system auditor as a singleton role in new sys…
…tem (#14963) * Add new enablement settings from DAB RBAC * Initial implementation of system auditor as role without testing * Fix system auditor role, remove duplicate assignments * Make the system auditor role managed * Flake8 fix * Remove another thing from old solution * Fix a few test failures * Add extra setting to disable custom system roles via API * Add test for custom role prohibition
Configuration menu - View commit details
-
Copy full SHA for 05bd777 - Browse repository at this point
Copy the full SHA 05bd777View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a22e73 - Browse repository at this point
Copy the full SHA 6a22e73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2db2cad - Browse repository at this point
Copy the full SHA 2db2cadView commit details -
Configuration menu - View commit details
-
Copy full SHA for fc5280c - Browse repository at this point
Copy the full SHA fc5280cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c176eef - Browse repository at this point
Copy the full SHA c176eefView commit details -
[RBAC] Fix migration for created and modified field changes (#14999)
Fix migration for created and modified field changes
Configuration menu - View commit details
-
Copy full SHA for 9638458 - Browse repository at this point
Copy the full SHA 9638458View commit details -
[RBAC] Fix server error from delete capability of approvals (#15002)
Fix server error from delete capability of approvals
Configuration menu - View commit details
-
Copy full SHA for 1fc201a - Browse repository at this point
Copy the full SHA 1fc201aView commit details -
Generalize can_delete solution, use devel DAB (#15009)
* Generalize can_delete solution, use devel DAB * Fix bug where model was used instead of model_name * Linter fixes
Configuration menu - View commit details
-
Copy full SHA for 622fcfa - Browse repository at this point
Copy the full SHA 622fcfaView commit details -
[RBAC] Fix known issues with backward compatible access_list (#15052)
* Remove duplicate access_list entries for direct team access * Revert test changes for superuser in access_list
Configuration menu - View commit details
-
Copy full SHA for 9abbd8d - Browse repository at this point
Copy the full SHA 9abbd8dView commit details -
Adds new modules for CRUD operations on the following endpoints: - api/v2/role_definitions - api/v2/role_user_assignments - api/v2/role_team_assignments Note: assignment is Create or Delete only Additional changes: - Currently DAB endpoints do not have "type" field on the resource list items. So this modifies the create_or_update_if_needed to allow manually specifying item type. Signed-off-by: Seth Foster <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c917b86 - Browse repository at this point
Copy the full SHA c917b86View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0293ef9 - Browse repository at this point
Copy the full SHA 0293ef9View commit details -
[RBAC] Tweaks to reflect what endpoints are deprecated (#15068)
Tweaks to reflect what endpoints are deprecated
Configuration menu - View commit details
-
Copy full SHA for b5cd7b7 - Browse repository at this point
Copy the full SHA b5cd7b7View commit details -
[RBAC] Fix bug where team could not be given read_role to other team (#…
…15067) * Fix bug where team could not be given read_role to other team * Avoid unwanted triggers of parentage granting * Restructure signal structure * Fix another bug unmasked by team member permission fix * Changes to live with test writing * Use equality as opposed to string "in" from Seth in review comment Co-authored-by: Seth Foster <[email protected]> --------- Co-authored-by: Seth Foster <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 770dfef - Browse repository at this point
Copy the full SHA 770dfefView commit details -
[RBAC] Rename managed role definitions, and move migration logic here (…
…#15087) * Rename managed role definitions, and move migration logic here * Fix naming capitalization
Configuration menu - View commit details
-
Copy full SHA for a69eb1f - Browse repository at this point
Copy the full SHA a69eb1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c2d995 - Browse repository at this point
Copy the full SHA 8c2d995View commit details -
[RBAC] Update related name to reflect upstream DAB change (#15093)
Update related name to reflect upstream DAB change
Configuration menu - View commit details
-
Copy full SHA for 0d53381 - Browse repository at this point
Copy the full SHA 0d53381View commit details