Skip to main content
The procedure below describes how you can reuse SAML group information in Kubernetes for authorization. Omni can extract SAML group information. For each group it will create a label on the identity in Omni. Suppose you have your groups information in the SAML attribute “membership”. Start the Omni container with the following flags. For example:
Alternatively, you can configure these options using a configuration file instead of CLI flags. See SAML in the Omni Configuration Examples. This will extract value from the SAML attribute memberhip into the Omni user’s identity resource label with the prefix saml.omni.sidero.dev/groups Restart Omni, and log in using SAML. If you navigate to Settings > Users, you will now see your groups in a label. If your SAML attribute memberships contains the values group1 and group2 you will see the following two labels (the interface omits the prefix saml.omni.sidero.dev)
You can now create an ACL that will create an impersonation in Kubernetes using this group information:
The impersonate rule will make sure that you will have the right group assigned in kubernetes. You can then use that information in a RoleBinding: