In Layer5 Cloud, permissions are represented as keys, each serving as a unique identifier for a specific permission. One or more keys can be grouped together and assigned to a keychain. Then this keychain can be assigned to a role and that role can be assigned to a user. This is the general flow of how keys are assigned to a user.
For instance, consider a system shipped default key Create Organization
, which corresponds to the permission to create an organization in the Cloud. This implies that to create an organization, you need to have Create Organization
key assigned to a keychain, which, in turn, is assigned to a role that’s associated with your user account for a given organization.
Generally, there are four types of keys:
Create Organization
key allows you to create an organization.View All Teams
key lets you see all the teams within a selected organization.Update Organization
key allows you to update an organization details.Delete Organization
key allows you to delete an organization.There are also some special types of keys which don’t fall into the standard CRUD (CREATE, READ, UPDATE, DELETE) category. For example, the Approve Catalog Request
key allows you to approve a catalog request to publish a cloud native design to Cloud Catalog or Connect Github Account to Workspace
key enables you to connect your GitHub Account to your workspace in context of any organization.
The primary purpose of key enforcement is to ensure that you can only perform actions for which you have the necessary permissions within the context of your selected/available organization. This is achieved by disabling or hiding the UI elements associated with actions for which you lack the required permissions. This approach not only provides clarity regarding what actions you are authorized to perform but also prevents you from attempting actions that you do not have authorization to execute. For more information on managing permissions within an organization and use of organization context switcher, see Organizations.
Each key is enforced at specific UI elements. For instance, the Create Organization
key is enforced at the Create Organization button in the Organizations page. This implies that the button is disabled if you don’t have the Create Organization
assigned to a keychain, which, in turn, is assigned to a role that’s associated with your user account for a given organization.
Review Keys assigned to your user account by navigating to the Keys page.
Team Admin
role (or a custom role with Edit User
key assigned) to assign permissions to users in your team.Organization Admin
role (or a custom role with Edit User
key assigned) to assign permissions to users in your organization.Provider Admin
role (or a custom role with Update Profile
key assigned) to assign permissions to users across any organization or teams.Layer5 Cloud ships with 103 default keys, each designed to enforce permissions across the platform. All the keys shipped with the system are immutable and cannot be deleted or modified. Each key is uniquely identified in the form of a UUID. The UUID is used to reference the key in the system.