Security · Guide
Security for integrations
What Colossium does to protect your API access, what you must do, and what to do when a token leaks.
Who protects what
Security here is shared. The line is simple: Colossium protects the platform and the way tokens are stored and checked. You protect the tokens once you hold them, and what your systems do with them.
| Colossium | You |
|---|---|
| Stores only a hash of each token. Nobody at Colossium can read one. | Store the token in a secrets manager and keep it out of code, logs and chat. |
| Generates tokens from a secure random source, with a prefix and checksum so leaks can be found. | Watch for your tokens appearing in the open, and revoke them if they do. |
| Checks every request: scope, project, address, expiry, rate, and the creator's current role. | Choose narrow scopes, a project and address limit, and a short expiry. |
| Stops a token at once when its creator is removed, demoted or the organisation closes. | Remove people promptly, and review the token list when you do. |
| Records token management and token actions in the audit log, without secrets. | Read the log. Alert on things you do not expect. |
| Limits how fast a token can be used, and refuses tokens in URLs. | Handle 429 politely and never put a token in a URL. |
| Serves the API over HTTPS only, with strict transport security. | Call it from a server, with certificate checking on. |
| Keeps the API closed to browsers on purpose. | Do not proxy the API to a browser in a way that exposes the token. |
What can go wrong, and the answer
| Threat | How it is limited |
|---|---|
| A token leaks in a repository, a log or a chat | Prefix and checksum make it findable. Revoke or roll at once. Narrow scopes and a short expiry limit the damage. The audit log shows what it did. |
| A token is stolen from a pipeline | A project limit and a narrow scope confine it. An expiry ends it. A token can never manage members, billing or other tokens, so it cannot take over the account. |
| A person leaves with a token | The token is bound to its creator. When the creator is removed from the organisation, it stops working. |
| A token is used from an unexpected place | An address allow list refuses it. last used shows where it came from. Alert on a surprise. |
| An attacker guesses a token | Each token has about 238 bits of randomness. Guessing is not feasible, and rate limits apply. |
| Someone tries to read another organisation's data | Every query is scoped to the token's organisation, and an id from elsewhere looks like one that does not exist. |
| Someone tricks your code into calling the API with their input | Validate what you accept, build paths only from ids that are UUIDs (the client checks), and never forward a caller's header or path. |
Least privilege, in practice
| Job | Scopes | Limit it to |
|---|---|---|
| A dashboard that shows status | resource.read | The projects it shows |
| A pipeline that provisions | resource.read, resource.write | One project; an expiry |
| A tool that tears down test environments | resource.read, resource.destroy | The test project only; a short expiry; a fixed address |
| A monitor that watches for changes | audit.read | A fixed address. Note: it reads the whole organisation's log |
| Reporting on usage | billing.read | A fixed address |
Give each system its own token. A token you can name after the thing that uses it is a token you can revoke without wondering what you broke.
Network and transport
- HTTPS only. TLS 1.2 or later. Do not disable certificate checking, even in tests against the real API.
- No browsers. The API does not send cross-origin headers, so a web page cannot call it. If a page needs something from Colossium, make your own server call the API and return only what the page needs.
- No tokens in URLs. They are refused.
- Addresses. If the API is called from servers with fixed addresses, put those in the token's allow list.
Logging
| Log | Never log |
|---|---|
status, error.code, request_id, the path, the time, how long it took | The Authorization header, the token, a full request or response body, or anything personal in a body or a name |
The reference clients never put the token in an error or a printed object. If you write your own, test for it: search your logs after a failing run.
A request_id is the one piece of information worth keeping for every call. It lets Colossium support find exactly what happened, without you sending a token or a body to anyone.
If a token leaks
Do not wait to be sure. Revoking costs a little inconvenience. A leaked token costs more.
- Stop it. In the console, open API access and choose Roll with no grace period, which replaces the secret and kills the old one at once. If nothing needs it, choose Revoke.
- Replace it. Put the new secret in your secrets manager and redeploy what used it.
- See what it did. The audit log records what a token did, marked as made by that token. Read it from the console under Settings, Audit log, or with the API (below). Look at the time from when the token could have leaked.
- Tidy up. Remove the token from wherever it leaked (rewrite history, delete the message, restrict the log). Rotate anything else that was exposed alongside it.
- Tell us if it matters. If you think data was accessed, or the leak was on our side, write to
security@olympuspay.co. If personal data was involved, you may have your own duty to notify. See Data protection. - Learn from it. Narrow the scopes, add a project or address limit, shorten the expiry, and find how it got out.
# What did tokens do? Events made with a token have actor_kind "api_token".
curl -sS "https://api.colossium.cloud/v1/audit-events?limit=100" -H "Authorization: Bearer $COLOSSIUM_API_TOKEN" \
| jq '.data[] | select(.actor_kind=="api_token") | {created_at, action, outcome, detail}'The call above needs a token with audit.read that is not limited to some projects. Use a different token from the one that leaked.
Watching for trouble
- A burst of
401from one token: someone is trying a revoked or wrong token, or a deployment is broken. - A sudden rise in
429: a loop, or abuse. - A token's last used address that you do not recognise.
- A token created or widened that nobody planned: filter the audit log for
api_token.createandapi_token.update. - A token a week from its expiry: roll it before it stops.
Reporting a vulnerability
If you find a weakness in Colossium, tell us and we will thank you. The vulnerability disclosure policy says what is in scope, how we respond and the safe harbour for good-faith research. Contact security@olympuspay.co.
Security checklist
- Each system has its own token, named for it.
- Scopes are the fewest that work. Project and address limits are set where they can be.
- Every token expires, and the roll date is in someone's calendar.
- Tokens live in a secrets manager and appear nowhere in code, history, images or logs.
- Only trusted code and trusted branches can read the secret in your pipeline.
- The API is called from servers, never browsers.
- Logs hold request ids and codes, and never tokens or bodies.
- You have a written, rehearsed answer to "a token leaked".
- People who leave are removed from the organisation the same day.
This page as MarkdownReport a problem with this pageOlympus Group Holdings, Inc.