Access control
Access in Choreo Cloud works through groups, roles, and assignments:
- A role is a set of permissions, such as creating projects or inviting users. Choreo Cloud has five built-in roles, and they're the same in every organization and every service.
- A group holds people.
- An assignment gives a group a role, either across the whole organization or on an instance of a resource.
You never give a role to a person directly. To decide what someone can do, you choose which group they join, and the assignments on that group decide what the group can reach. You choose the group when you invite them.
Built-in roles
| Role | Use it for |
|---|---|
| Admin | People who administer the organization: its members, billing, service contacts, sign-in, and every service. |
| Platform Engineer | People who run the shared infrastructure, such as environments, deployment pipelines, and container registries. |
| Developer | People who build, test, and deploy in projects. |
| Viewer | People who need read-only access. |
| API Publisher | People who publish and manage APIs in API Management, and nothing else. |
Give the Admin role only to the people who need to administer the organization.
What each role can do
The table shows the main organization-level permissions. Each role also grants permissions inside each service. To see every permission a role grants, open it on the Roles tab. See View groups, roles and assignments.
| Permission | Admin | Platform Engineer | Developer | Viewer | API Publisher |
|---|---|---|---|---|---|
| View the organization and its projects | ✓ | ✓ | ✓ | ✓ | ✓ |
| View alert history | ✓ | ✓ | ✓ | ✓ | |
| Create and edit projects, manage secrets and alert rules | ✓ | ✓ | ✓ | ||
| Manage environments, deployment pipelines, container registries, private data planes, and alert notification channels | ✓ | ✓ | |||
| Delete projects | ✓ | ✓ | |||
| Invite and remove members | ✓ | ||||
| Manage billing and service contacts | ✓ | ||||
| Set up enterprise sign-in | ✓ | ||||
| View audit logs | ✓ | ||||
| Change access control assignments | ✓ |
Groups
Every organization has one built-in group for each role, with the same name as the role: Admin, Platform Engineer, Developer, Viewer, and API Publisher. Choreo Cloud creates them when the organization is created.
- The person who creates the organization joins the Admin group.
- People you invite join the group you choose in the invitation.
- People who sign in for the first time with enterprise sign-in join the Viewer group.
- The Admin group always keeps at least one member. You can't remove its last member.
To change the group a member is in, remove the member and invite them again with the new group.
The built-in groups and roles are the only ones available today. Creating custom groups and roles is coming soon.
Assignments
An assignment gives a group a role, and says where that role applies. Every assignment has a scope which could be either the whole organization or an instance of a resource.
When an organization is created, each built-in group is assigned the role with the relevant permissions, across the whole organization. That's why access works from day one without anyone setting assignments up.
Organization-level assignments
An organization-level assignment gives the group its role everywhere in the organization, including existing and new instances of resources.
Use these when access shouldn't depend on which resources someone is working with. The five default assignments created with your organization are all of this kind.
Organization-level assignments always grant access. To take access away, simply remove the assignment.
Resource-level assignments
A resource-level assignment gives a group a role on a single instance of a resource. Projects are the only resource type available today.
Use these when a group should reach some resources and not others. For example, to give each team its own project and nothing more, remove the Developer group's organization-level assignment and give each team's group a resource-level assignment to its own project.
When you add a resource-level assignment, you also choose an environment and an effect.
Environment: Choose All environments, or a single one. A group assigned a role in only one environment can still see the resource, but can work in it only in that environment. Renaming or deleting the resource itself needs an assignment that covers all environments, because the resource isn't part of any single environment.
Effect: Choose Allow to grant the role, or Deny to take it away. A denial always wins. If one assignment allows a group on a resource and another denies it, the group is denied. Use a denial to carve one resource out of access that an organization-level assignment grants.
A role can carry resource-level permissions and permissions that apply to the organization as a whole, such as managing secrets or alert rules. Scoping an assignment to a resource narrows only the resource-level permissions.
Allow gives the group the role's resource-level permissions on that resource and environment. Deny takes away the role's resource-level permissions on that resource and environment. Either effect grants the role's organization-level permissions across the organization.
Hence, it is recommended to choose a role that carries only resource-level permissions when you assign at the resource level.
Examples
Each row is the complete set of assignments on one group.
| Assignments on the group | What the group gets |
|---|---|
| Developer role, across the organization | The Developer role on every project, including ones created later. |
| Developer role on Project A | The Developer role on Project A, and nothing on any other project. |
| Developer role across the organization, and a Deny of the Developer role on Project B | The Developer role on every project except Project B. |
| Developer role on Project A, in the Development environment only | They can see Project A and work in it in Development. Not in other environments, and they can't rename or delete the project itself. |
View groups, roles and assignments
- Sign in to the Choreo Cloud console.
- In the top bar, select Settings.
- Under Organization, select Access control.
The page has three tabs:
- Groups lists the organization's groups. Select a group to see its members.
- Roles lists the roles and the group each one is granted to. Select a role to browse every permission it grants, grouped by service.
- Assignments lists which group holds which role, and where.
Add an assignment
- Open the Assignments tab.
- Select New assignment.
- Choose the group and the role to give it.
- Choose the scope: the organization, or a resource such as a project. For a resource, choose the environment and whether to allow or deny.
- Review the summary and confirm.
An assignment that already exists with the opposite effect is reported instead of being added. Delete the existing one first.
Changes to a member's access take effect the next time they sign in or their session refreshes.
Next steps
Was this page helpful?