Service Accounts
Service accounts are used by background jobs, connector syncs, automations, and external integrations. Because they do not represent a human user, each account needs a clear owner, scope, and rotation plan.
Management Boundary
Account and Key Types
Choose the narrowest credential that can complete the integration. A service account should make machine-to-machine access auditable without turning every automation into a full administrator.
Avoid sharing one credential across departments, environments, or vendors. Separate accounts make request history, cost attribution, incident response, and offboarding much easier to reason about.
Before Configuration
- Identify the APIs, connectors, or background jobs the account will call.
- Confirm it does not need to impersonate an admin, end user, or bot.
- Define where secrets are stored, how often they rotate, and how they are revoked.
- Decide whether the integration needs admin, standard, or restricted access.
- Name the account after its system and purpose, such as
crm-sync-prodorbilling-export-readonly. - Record the environment, owner, allowed source network, and expected request pattern before issuing the key.
Create and Store a Credential
- Open the AIvis admin area and go to the service accounts or API keys page.
- Create a new account or key for the integration and select the smallest access type that matches the task.
- Copy the secret immediately after creation and store it in your approved secret manager.
- Add only the credential reference to application configuration. Do not paste the raw secret into code, tickets, runbooks, chat, or screenshots.
- Run the first request from the approved runtime environment, not from a personal laptop, unless the account is explicitly for local development.
If the credential is exposed, disable or delete it first, then create a replacement. Do not rely on renaming the account or changing its description as a containment step.
Rotation and Removal
Verification
- Validate the account with a read-only request.
- Validate that out-of-scope requests are denied.
- Confirm tracing or query history can identify requests made by the account.
- Confirm cost, usage, and audit views attribute traffic to the service account instead of a personal admin.
- Confirm rotation and revocation procedures are documented where the owning team operates the integration.
Production Checklist
- One service account per integration, environment, and trust boundary.
- No personal administrator accounts are used for scheduled jobs or connector syncs.
- Admin credentials have an explicit business owner, expiration review, and storage location.
- Restricted credentials cannot read unrelated chat history, knowledge sources, or administrative configuration.
- Incident response instructions include where to revoke the key and how to replay the affected job after replacement.