# Galaxy UI hides users/groups/roles from navigation pane in a client-side editable way

**URL:** <https://forum.ansible.com/t/galaxy-ui-hides-users-groups-roles-from-navigation-pane-in-a-client-side-editable-way/6665>\
**Category:** Get Help\
**Tags:** galaxy-ng\
**Created:** [June 19, 2024, 1:57pm UTC](https://forum.ansible.com/t/galaxy-ui-hides-users-groups-roles-from-navigation-pane-in-a-client-side-editable-way/6665 "2024-06-19T13:57:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon81884396](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@anon81884396](https://forum.ansible.com/u/anon81884396)\
**Post date:** [June 19, 2024, 1:57pm UTC](https://forum.ansible.com/t/galaxy-ui-hides-users-groups-roles-from-navigation-pane-in-a-client-side-editable-way/6665/1 "2024-06-19T13:57:38Z")

</div>

Hello.

I’m using galaxy-ng 4.9.2 via the galaxy-operator.

I’ve noticed a bug wherein you can intercept and proxy the response given from /api/galaxy/\_ui/v1/me to view UI elements that probably aren’t intended to be viewed by a non-super user.

If you intercept the response from /api/galaxy/\_ui/v1/me, edit the parameters model\_permissions, username, is\_superuser, and proceed down the UI, you will then be able to view the items under User Access that are normally invisible to the user. If you continue along with this proxy interception, you will be able to see the groups on the system as well as the roles. Note that you still cannot edit or create new groups, users, or roles as it seems like this check is still fully server-side, so this isn’t that concerning. However, it probably is unintended behavior.

An easy way to see a facsimile of this without request proxying is to create a non-superuser user, log in with its credentials, and then go to http://{galaxyservername}/ui/roles, and that user will be able to see the system roles. I assume this is not intentional since User Access is not visible on the user’s left window pane.

My apologies if my description of this is lacking. Basically, it seems the UI shows/hides the User Access pane and pages totally client-side, and this can theoretically be intercepted by a user and they can gain read-only rights to see things they probably aren’t normally intended to see. They can’t edit/create them, though.

---

<div class="post-metadata">

**Author:** ![tannerjc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/tannerjc/32/985_2.png) [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Post date:** [June 27, 2024, 4:21am UTC](https://forum.ansible.com/t/galaxy-ui-hides-users-groups-roles-from-navigation-pane-in-a-client-side-editable-way/6665/2 "2024-06-27T04:21:22Z")

</div>

It’s true that the UI does expose elements conditionally based on what information it finds about you in the \_ui/v1/me/ response, however the backend fully controls the RBAC on what data a user can see.

The majority of the definitions about who can see what are defined in this file: [https://github.com/ansible/galaxy\_ng/blob/master/galaxy\_ng/app/access\_control/statements/standalone.py](https://github.com/ansible/galaxy_ng/blob/master/galaxy_ng/app/access_control/statements/standalone.py)

It currently states that that any “authenticated” user can list and retrieve groups …

> <https://github.com/ansible/galaxy_ng/blob/master/galaxy_ng/app/access_control/statements/standalone.py#L79-L84>

So while that may be suprising, it is currently how the system is designed.

If you’d like that to change or have concerns, please file a ticket in our issue tracker [https://issues.redhat.com/projects/AAH](https://issues.redhat.com/projects/AAH)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [July 27, 2024, 4:21am UTC](https://forum.ansible.com/t/galaxy-ui-hides-users-groups-roles-from-navigation-pane-in-a-client-side-editable-way/6665/3 "2024-07-27T04:21:48Z")

</div>

Closed on July 27, 2024, 4:21am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
