Managing access to projects and organizations

Akka controls access to organizations and projects with role-based access control (RBAC). A permission allows one operation, such as project.services.get. A role is a named group of permissions. A role binding grants a role to a principal.

A principal is one of the following:

  • A user.

  • A group of users from an OpenID Connect provider.

  • An Akka service, using workload identity.

  • A workload identity from an external identity provider.

The Permissions reference lists every permission. The Roles reference lists the built-in roles and the permissions they grant.

Built-in roles

Akka provides built-in roles at two levels.

Organization roles

superuser, project-admin, billing-admin and member. They grant permissions on the organization, for example to manage its role bindings, create projects or view billing.

Project roles

admin, developer, viewer and backoffice. They grant permissions on the services, routes, secrets and other resources of one project.

The member organization role allows project admins to add the user to their projects without sending an invitation to the organization.

The Roles reference shows the project permissions that each organization role includes. A superuser can assign roles in the projects of the organization, including to themselves. When a user creates a project, Akka grants the user the admin role on that project.

Role bindings at the organization and project levels

You create role bindings at two levels:

A project role binding only grants access to its project. Organization membership does not grant access to any project.

Custom roles

The built-in roles may grant more or less than you want. A custom role defines your own group of permissions.

Custom roles are always defined in an organization, and you bind them with organization role bindings. You can not bind a custom role at the project level. A custom role limits where its permissions apply by naming the projects in its rules. For example, one custom role can grant deployment permissions on two projects and read-only access to all the others.

The following table helps you choose.

Need Use Where to bind

Give a user a standard level of access to one project

A built-in project role

Project role binding

Give a user a standard level of access to the organization

A built-in organization role

Organization role binding

Give a user specific permissions, or different access to different projects

A custom role

Organization role binding

Single sign-on

Akka supports single sign-on through OpenID Connect. With OpenID Connect, you can bind roles to groups from your identity provider instead of to individual users. See OpenID Connect Setup.