Service accounts and API keys
Create a service account with an API key for scripts and agents, give it only the grants it needs, and rotate the key.
What a service account is
A service account is a non-human identity that calls the FarWatch HTTP API with an API key. It is not a person and never signs in through the browser. Two-factor sign-in, Active Directory and Okta do not apply to it.
The HTTP API is documented. This page covers how keys and grants work.
Create one
Service accounts are managed under Global Settings > Users & Access > Service Accounts. Creating one needs the user management permission, and you can only give an account grants that you hold yourself. The account holds exactly the permissions given at creation, and may carry an expiry date.
The full key is shown once, when the account is created. FarWatch stores only a hash of it and the first few characters. Copy the key into your secret store at that moment. A key looks like icc_ followed by 40 hexadecimal characters.
Use the key
Send the key in the x-api-key request header:
curl -H "x-api-key: <key>" https://farwatch.example.com/api/<route>A service account answers to the API routes. It does not answer on the sign-in, two-factor, password change, preferences, logout and session routes, which need a browser session. Changes to the licence refuse every service identity. Several install-wide routes accept only a global administrator or the install key, and a tenant service account is refused on them.
Rotate, deactivate, expire
- Rotate a key from the service account page. The old key stops working at once.
- Deactivate an account to stop it without deleting it.
- Set an expiry so a forgotten key stops on its own.
Choose grants for a read-only agent
Give the account only what it needs. For a read-only agent, a single grant of view on every platform reads every platform and the Ops pages, and nothing under Administration. Add Administration settings view only if the agent must read System Health, retention or settings. Do not give it the AI audit view, because that exposes the text sent to the AI provider, and do not give it any user management grant. Set an expiry. See Roles and grants.
Not every GET route is free of side effects. For example, one Cohesity replication status read can start a background scan when its cache is stale. Connection probe routes need a manage grant, so a view-only key cannot reach them.
The install key
An install can also have an install key, set as DASHBOARD_API_KEY in the .env file. It acts as a global administrator with every grant and is install-wide, not per tenant. Nothing needs it, so the installers do not generate it unless you ask: the /APIKEY=1 switch on Windows, --api-key on Ubuntu, and ICC_GENERATE_API_KEY=1 for containers. Treat it as a break-glass credential. If you carried one over from an earlier install, decide whether you still want it.
What to do with a leaked key
Rotate or deactivate the service account at once. For the install key, remove DASHBOARD_API_KEY from the .env file and restart both services. Review the audit log for what the key did.