Skip to content

Security ​

An API key grants read access to your organisation's data. Treat it like a password. This page covers how to store keys, how to rotate and revoke them, and how to keep each integration's access as small as it can be.

How Keys Work ​

  • A key belongs to one API client, an identity your organisation owns. It isn't tied to a person, so it keeps working when people leave or change role.
  • Keys look like cntl_live_… (production) or cntl_test_… (staging and development). The recognisable prefix helps secret scanners find a leaked key.
  • Continual stores only a hash of each key. The full key is shown once, when it is created, and can't be retrieved later.
  • A key is accepted only by the public API (/public/v1). It can't sign in to the portal or the mobile app, and it can't call Continual's internal API.
  • A key is read-only. In v1 nothing can be changed through the API.
  • Continual never records the Authorization header in its logs or error reports.

Store Keys Safely ​

  • Keep keys on a server or in your tool's credential store. Use a secrets manager, your scheduler's encrypted variables, Grafana's secure fields or a Power BI parameter in a restricted workspace.
  • Never put a key in a browser, a web page or a mobile app. The API sends no CORS headers, so browsers can't call it directly. A key in front-end code is a leaked key.
  • Never commit a key to source control, paste it into a ticket or chat, or put it in a URL. Send it only in the Authorization header.
  • Mind file-based reports. Power BI and Excel files store queries, so anyone who can edit the file can read a key written into it. Keep the key in a parameter, limit who can edit the file, and give that report its own narrowly scoped client.

Least Privilege ​

Give each integration its own API client, with only the access it needs.

  • Permissions decide what it can read:

    • hierarchy:read for factory, line and machine names.
    • checks:read for check instances.
    • actions:read for actions.

    A dashboard that only shows open actions needs actions:read, plus hierarchy:read for line names.

  • Scope decides where: all factories, or only the factories you pick. A client scoped to one factory can't see records from any other, in lists, summaries or single-record requests. Requests for records outside its scope return 404, as if they didn't exist.

  • One client per integration means you can revoke one without breaking the others, and you can see which integration made which requests.

You can change a client's name, permissions and scope later without issuing a new key.

Rotate a Key ​

A client can hold several active keys, so you can rotate without downtime:

  1. In Configure → Integrations → API access, expand the client and select Issue additional key. Optionally set an expiry date.
  2. Copy the new key, and update your integration to use it.
  3. Check the integration works. The old key's last used time stops advancing.
  4. Select Revoke key on the old key.

Rotate keys on a regular schedule, and whenever someone who had access to a key leaves.

Revoke Access ​

  • Revoke key stops one key immediately. The client's other keys keep working.
  • Revoke client stops every key the client owns, immediately and permanently.
  • A key with an expiry date stops working at that time.

After revocation, requests return 401. A revoked key can't be restored: issue a new one.

If a Key Leaks ​

  1. Revoke the key at once, or the whole client if you aren't sure which key leaked.
  2. Issue a new key and update the integration.
  3. Check last used on the client's other keys for activity you don't expect.
  4. Tell Continual through support if you think the key was used. We can look up recent requests by client.

Because keys are read-only, scoped and confined to the public API, a leaked key can expose data its client could read, but it can't change anything.

Rate Limits ​

Each client has its own request budget, and your organisation has an overall budget. One misbehaving integration can't use up another's budget, but it can use up the organisation's. Authentication attempts, including invalid credentials, also share source and per-server admission limits before database access. The hosted API separates callers through the same Fly Proxy; callers behind an upstream proxy or NAT may share a source budget. See Rate Limits.

Who Can Manage API Access ​

Only owners and admins can create, edit and revoke API clients and keys. Continual records who created or revoked each client and key. API access must also be switched on for your organisation by Continual.