How a Service Account Differs from a Personal Key
Creating a Service Account
- Go to Settings → Service accounts and select Create service account.
- Enter a Name, for example
release-pipeline, and optionally a description of what uses it. The name must be unique among the organisation’s active service accounts. - Choose its permissions with a preset (CI pipeline, Coding agent (MCP), or Read-only reporter) or under Adjust exact permissions. These are the same scopes a key can hold. See the scope reference.
- Choose All projects or Specific projects.
- Select Create.
Permissions and projects are fixed at creation. You can rename a service
account and change its description later, but not what it may do. To change
that, create a new service account and disable the old one.
Giving It a Key
- Open the service account and select Generate key.
- Enter a Key name and choose its expiry (at most 365 days).
- Leave Same as the account selected, or choose Narrow it to give this key fewer permissions or fewer projects than the service account holds.
- Select Generate, then copy the key. Earnie shows it only once.
400 scope_exceeds_service_account.
Use the key like any other: send it as Authorization: Bearer <key>, or sign the Earnie CLI in with it. To replace a key’s secret, rotate it: the new key stays with the service account.
Managing Service Accounts
The Service accounts page lists the organisation’s accounts with their permissions, number of active keys, when one of their keys was last used, and who created them. Use the status filter to show Active accounts (the default), Disabled ones, or All. Select a service account to see its permissions, projects, and every key it holds, including revoked and expired ones. From there you can rename it, generate or revoke keys, and disable it. On the API keys page, a key that belongs to a service account names the account as its holder. Its details also show which member generated it.Disabling a Service Account
Select Disable service account, then Disable to confirm. Earnie revokes every live key of the account in the same step, so anything using them stops working at once with401 key_revoked.
Disabling can’t be undone. A disabled service account stays on the page as a read-only record, so the audit log keeps naming it, and its name becomes free for a new account.
What the Audit Log Records
- Creating, renaming, and disabling a service account, with the member who did it and, for disabling, the keys it revoked.
- Generating a key for it, as for any key, naming the service account.
- Every action a service account key takes, shown as the service account and the key, for example
release-pipeline · deploy.
Using the API
Admins can manage service accounts from a signed-in session through the API. An API key gets403 on these endpoints.