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

Missing support for gateway_role_team_assignments #989

Closed
bogdanmuresan opened this issue Nov 28, 2024 · 4 comments
Closed

Missing support for gateway_role_team_assignments #989

bogdanmuresan opened this issue Nov 28, 2024 · 4 comments
Labels
bug Something isn't working new New issue, this should be removed once reviewed

Comments

@bogdanmuresan
Copy link
Contributor

Summary

Cannot add role_team_assignment

https://github.com/ansible/awx/blob/devel/awx_collection/plugins/modules/role_team_assignment.py

Issue Type

  • Bug Report
@bogdanmuresan bogdanmuresan added bug Something isn't working new New issue, this should be removed once reviewed labels Nov 28, 2024
@bogdanmuresan
Copy link
Contributor Author

I have also opened a support ticket to RedHat to add it to ansible.platform (https://access.redhat.com/support/cases/#/case/03999294).

@bogdanmuresan
Copy link
Contributor Author

Are gateway_role_team_assignments even used in 2.5? Or is it still work in progress? Are we supposed to use the controller_roles module to manage teams RBAC, and role_user_assignment to manage user RBAC? It is getting a bit confusing...

@djdanielsson
Copy link
Collaborator

I am not positive, I have not had much time to spend on RBAC with 2.5, but I agree it seems confusing.

@bogdanmuresan
Copy link
Contributor Author

bogdanmuresan commented Dec 6, 2024

It looks like that using the controller_role still works, and I was able to grant "JobTemplate Execute" to a team on a job template using that.

One issue is "controller_roles" is missing from controller_configuration_dispatcher_roles - I am not sure if I should add it, or there will be another way of granting permissions to execute a job template to a team..

Just in case, here is a PR to add it: https://github.com/redhat-cop/infra.aap_configuration/pull/995/files

The gateway_authenticator_maps as Sean suggested does not have this functionality. When selecting map_type: role, the only roles available are: Organization Admin, Organization Member, Platform Auditor, Team Admin and Team Member.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new New issue, this should be removed once reviewed
Projects
None yet
Development

No branches or pull requests

2 participants