Skip to main content
Learn how scripts, pipelines and other tools can access Koalake without a person signing in.

Service account or personal access token

Koalake gives machines access in two ways: a service account or a personal access token. Which one fits depends on whose work the machine is doing.
  • Use a service account for a job that runs on its own, such as a nightly load, a CI/CD pipeline or a monitoring job. It has its own identity, so it keeps working when a person changes roles or leaves the company.
  • Use a personal access token when something acts on behalf of you: a script you run, or a tool you set up. It is connected to your own user account, and the access expires after 90 days at most.

Service accounts

API keys

A service account can hold several API keys at once. That lets you replace a key without the job losing access: create a new key, switch the job to it, then delete the old one. If a key is lost, delete it and create a new one. Keys can also be created and deleted through the API, so replacing them can be automated. To create a key, open the service account, select Add key, name the key and select Create key.
An animation of creating a second API key for a service account, looping. On the Service accounts page, the pointer opens nightly-orders-load. Its page shows its details, its role, Finance, marked Default, and one API key, nightly-load-v1. The pointer clicks Add key, names the new key nightly-load-v2 in the Create API key dialog, and clicks Create key. The API key created dialog warns that the key will only be shown once, and shows its value with a Copy button; the pointer copies it and clicks Done. The account now holds two keys, the new one next to the old, ready for the job to switch over before the old key is deleted.
An animation of creating a second API key for a service account, looping. On the Service accounts page, the pointer opens nightly-orders-load. Its page shows its details, its role, Finance, marked Default, and one API key, nightly-load-v1. The pointer clicks Add key, names the new key nightly-load-v2 in the Create API key dialog, and clicks Create key. The API key created dialog warns that the key will only be shown once, and shows its value with a Copy button; the pointer copies it and clicks Done. The account now holds two keys, the new one next to the old, ready for the job to switch over before the old key is deleted.
An API key’s value is shown once, at creation, and cannot be retrieved afterwards. Copy it immediately and store it somewhere safe.

Default role

Roles control what a service account can access, the same way they do for people. Unlike a person, a service account doesn’t switch roles: it always works under its default role.
The Roles list on a service account's details page. Two roles are assigned: Finance, marked with a Default badge, and Management. The three-dot menu on Management is open, with Make default and Remove.
The Roles list on a service account's details page. Two roles are assigned: Finance, marked with a Default badge, and Management. The three-dot menu on Management is open, with Make default and Remove.

Managing service accounts

From the Service accounts page, under Governance in the Portal sidebar, you can:
  • Create a service account.
  • Edit a service account. Update the name, description, contacts, or default role through the three-dot menu at the top right of the details page.
  • Assign roles.
  • Create and delete API keys.
  • Disable a service account. The account and all its API keys stop working immediately, but the configuration is kept and can be re-enabled at any time. If you might need the account again, disable it instead of deleting it.
  • Delete a service account. This permanently removes the account and all its API keys, and any integration using those keys stops working immediately.

Personal access tokens

A personal access token lets a tool connect to Koalake on your behalf without signing in each time. To create one, open the , select your name in the bottom left, then My settings. In My settings, select + next to Personal access tokens. Name the token and choose how long it should last, up to 90 days: the shorter, the safer. The token works under your default role unless you pick another.
An animation of creating a personal access token, looping. At the bottom of the Portal's sidebar, the pointer clicks the name alice.v, and a menu opens with Dark mode, My settings, System settings and Logout. It clicks My settings, which shows the profile, a Sign-in note, and Personal access tokens with one token, Dev token. It clicks the plus next to Personal access tokens, types the name nightly report, leaves Expires in at 30 days and Scope to a role at Your default role, and clicks Create token. The Save your new token dialog warns that the token is shown only once and must be saved somewhere safe, such as a password manager or a CI secret store. The pointer clicks Copy, ticks I've saved my token somewhere safe, which turns on Done, and clicks Done. The table now lists nightly report, Active, expiring in 30 days.
An animation of creating a personal access token, looping. At the bottom of the Portal's sidebar, the pointer clicks the name alice.v, and a menu opens with Dark mode, My settings, System settings and Logout. It clicks My settings, which shows the profile, a Sign-in note, and Personal access tokens with one token, Dev token. It clicks the plus next to Personal access tokens, types the name nightly report, leaves Expires in at 30 days and Scope to a role at Your default role, and clicks Create token. The Save your new token dialog warns that the token is shown only once and must be saved somewhere safe, such as a password manager or a CI secret store. The pointer clicks Copy, ticks I've saved my token somewhere safe, which turns on Done, and clicks Done. The table now lists nightly report, Active, expiring in 30 days.
The token’s value is shown once, at creation, and cannot be retrieved afterwards. Copy it immediately and store it somewhere safe.
The token can only do what its role allows, and it stops working on its expiry date. It carries your access, so treat it like your password. You can’t rename a token or extend its expiry: revoke it and create a new one instead. To cut access before the expiry date, disable the token in My settings. It stops working immediately, and disabling can’t be undone. To reuse the same token name, revoke the token and create a new one.

What to do next