Project role bindings
A project role binding grants a built-in project role in one project to a principal. The project roles are admin, developer, viewer and backoffice. The Roles reference lists their permissions.
Project role bindings only accept built-in roles. To grant a custom role on a project, create an organization role binding to a custom role that lists the project.
| Role | Purpose |
|---|---|
|
Full control of the project, including deleting it and managing its access. |
|
Deploy and configure services, routes, secrets and other resources, without managing access or deleting the project. |
|
Read-only access to the project, its services and routes. Secrets can not be viewed. |
|
Discover services and proxy requests to them, for operational support. This includes viewing entity event logs and values, and invoking methods on services that are not exposed to the internet. |
Organization membership is separate. See Organization role bindings.
|
The Akka CLI can keep a project as context, so you do not need to pass the
|
List role bindings
akka roles list-bindings
Example output:
ROLE BINDING ID ROLE PRINCIPAL MFA
f3e1ad17-d7be-4432-9ab6-edd475c3aa44 admin John Smith <[email protected]> true
311e3752-30f9-43f4-99ef-6cbb4c5f14f3 developer Jane Citizen <[email protected]> true
Grant a role
You can invite a user by email, or add a role binding directly.
Invite a user by email
akka roles invitations invite-user <email address> --role <role>
The user receives an email to join the project. When the user accepts, Akka creates the role binding.
Add a role binding directly
If the user is already a member of the project, or the project belongs to an organization and the user belongs to that organization, you can add the role binding without an invitation.
By email:
akka roles add-binding --email <email address> --role <role>
By username:
akka roles add-binding --username <username> --role <role>
A group from your OpenID Connect provider:
akka roles add-binding --group <group name> --role <role>
See OpenID Connect setup.
An Akka service, using workload identity:
akka roles add-binding --service <service name> --role <role>
For the walkthrough, including how to configure the service to authenticate, see Authenticating with the Akka platform API.
A workload that authenticates through a workload identity provider of the project’s organization, such as a CI/CD pipeline:
akka roles add-binding --identity-provider <provider id> \
--workload-identity-subject <subject> --role <role>
Use --workload-identity-claim <claim name>=<claim value> instead of --workload-identity-subject to identify the workload by another claim. Add --identity-provider-org <organization name or id> if the provider belongs to a different organization than the project. See Add a role binding for a workload identity for the options.
Delete a role binding
List the role bindings to get the role binding ID, then pass it to the delete command.
akka roles delete-binding <role binding id>
Manage invitations
List outstanding invitations:
akka roles invitations list
Example output:
EMAIL ROLE
[email protected] admin
Invitations expire after 7 days. You can delete an invitation:
akka roles invitations delete <email address>
To resend an invitation, delete the previous one and invite the user again.