Possible for Nexus to map its roles to a SLAM group?
Feature Request
Nexus roles are set within a yaml file here https://repo1.dso.mil/platform-one/big-bang/apps/developer-tools/nexus/-/blob/main/chart/values.yaml#L38. A user can be added to a SLAM group in GCDS, which is put into a string in their "IV_Groups" from GCDS. We would like to be able to parse which SLAM group they are in (via the IV_Groups), and then assign them a role based on which SLAM group they are in.
For example, a new Nexus role of "nexus-readonly" could be created, and if a user has the "nexus-readonly" SLAM group, then they get assigned to this role.
Why
We have users that want to use the Nexus within BigBang (one that we stood up ourselves), and they want to be able to have various tiers of roles, and manage each other. We find it would be best if we used SLAM groups for this, in order for the groups to map to roles. We don't want to give them overly broad permissions within Nexus, where they can manage everyone, and using SLAM groups should help to minimize the amount of accesses they have.
Proposed Solution
To support the "slam_groups" as seen below. If the user is in the overall "CVAH" SLAM group, and then more specifically in the child group of "nexus-admin", then they will be automatically mapped to this nexus-admin role.
role:
id: "nexus"
name: "nexus"
description: "nexus group"
privileges:
- "nx-all"
roles:
- "nx-admin"
slam_groups:
- "CVAH.nexus-admin"
Alternatively, instead of the "slam_groups" being in there, is there some way to have some external process that maps a slam/iv to the "id" of a role?
edit: SLAM and SLAM groups can be read about here: