Service accounts & workload identity
Give applications and pipelines scoped access with tokens or short-lived identities.
A service account is the identity of an application, pipeline or agent. Create one per workload in Access → Service accounts, give it a role and add it to the apps and environments it needs.
Tokens#
A service account token looks like pss_service:v2:…. It is shown once; store
it in your platform's secret store. Tokens can expire, and organisations can
enforce a maximum lifetime. Deleting a token revokes it immediately.
Personal access tokens (pss_user:…) act as the member who created them. Use
them for local scripting, not for production workloads.
Workload identity (no stored token)#
Workloads that already have an identity can exchange it for a short-lived token instead of storing one:
- Any OIDC issuer (Kubernetes service account tokens, GitHub Actions, GitLab CI, cloud workload identity): create an identity in Access → External Identities, restricting the accepted issuer, subject and audience claims, and attach it to the service account.
- AWS IAM and Azure Entra ID: authenticate with the workload's cloud role.
The CLI, SDKs, GitHub Action and Kubernetes operator support all of these.
Server-managed keys#
For end-to-end encrypted apps, a service account needs its own keyring. With server-managed keys the server holds it, so environment access can be granted to the service account from the console like for a member. Without it, access must be granted by a member who holds the environment key.