Skip to content
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

Vendoring system for shared role definitions #435

Merged
merged 9 commits into from
Jun 7, 2024

Conversation

AlanCoding
Copy link
Member

@AlanCoding AlanCoding commented Jun 5, 2024

Fixes #408

As of creating this, I still have 1 failure, but it's meaningful as a type of pre-existing issue so I'm happy to see it.

Opening as a draft, it's still fairly early in development of this, but I have a framework that works for me.

TODO:

  • customization in test_app
    • add a managed role for "Cow Admin", shortname "cow_admin" to test an app-defined thing
    • duplicate some of the managed roles, because this is part of the intent of the system
    • add tests for creating managed roles in migrations (will not use in AWX or test_app)

post-merge TODO:

  • Various downstream work in AWX because this replaces code that exists there (only partially)
  • ...more I forget...

This is the replacement for removals in #296, so some kind of merge order solution will be developed for the two of these.

@AlanCoding AlanCoding marked this pull request as ready for review June 7, 2024 02:58
Copy link
Contributor

@slemrmartin slemrmartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good, comments on cosmetic things only => approving

ansible_base/rbac/managed.py Outdated Show resolved Hide resolved
ansible_base/rbac/managed.py Outdated Show resolved Hide resolved
ansible_base/rbac/models.py Outdated Show resolved Hide resolved
@AlanCoding AlanCoding enabled auto-merge (squash) June 7, 2024 15:26
Copy link

sonarcloud bot commented Jun 7, 2024

@AlanCoding AlanCoding merged commit 8de9cf9 into ansible:devel Jun 7, 2024
9 checks passed
thedoubl3j pushed a commit to thedoubl3j/django-ansible-base that referenced this pull request Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce a managed RoleDefinition "registry"
3 participants