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

[RBAC] Support permission inheritance for resources with many-to-many with organizations #78

Open
AlanCoding opened this issue Jan 18, 2024 · 1 comment
Labels
app:rbac enhancement New feature or request ready to work Item is ready to be worked on

Comments

@AlanCoding
Copy link
Member

AWX has historically made all resources a ForeignKey to organizations, and so all the work in #45 assumes this structure.

SIDE NOTE: development of the original AWX RBAC system is the reason that projects converted its many-to-many with organizations to ForeignKey, causing some duplication

We want to validate that permission inheritance can still work in an app that uses many-to-many between organizations and its resources.

@AlanCoding
Copy link
Member Author

The core logic should "just work", that was the theory here, but I've realized that our real problem is the cache invalidation. We have signals connected to manage the case where an object's parent object changes... and this assumes ForeignKey. For a many-to-many between its object and its parent object(s), we would need to connect the m2m_changed signal and add somewhat substantial logic to cover the entire signature of that.

@AlanCoding AlanCoding added app:rbac enhancement New feature or request ready to work Item is ready to be worked on labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app:rbac enhancement New feature or request ready to work Item is ready to be worked on
Projects
None yet
Development

No branches or pull requests

1 participant