Skip to content
Operator has no release yet: these pages describe unreleased main.

Connecting Integrations

An Integration connects a company to one vendor: Slack, GitHub, GitLab, Mattermost, Jira, Confluence, Datadog, Cloudflare, Expo, DigitalOcean, Scaleway, AWS, Google Cloud, Google Analytics, Google Ads, Search Console, Google Play, AdMob, AdSense, App Store Connect, Apple Ads, Meta Ads, or an Atlassian Cloud organization.

Each renders one block of Crewlet’s integrations, and a company has at most one per vendor. Crewlet’s SSH integration, through which agents reach the company’s servers with certificates the engine signs, is not offered in v1alpha1: no Integration or Seat renders it, and engineConfig may not set integrations (Not offered in v1alpha1). This guide shows each vendor’s object, the credentials it takes, what the seats bring of their own, where the engine wants to be told about the vendor, and how a person is tied to their account there. Crewlet’s own pages (Integrations) describe what each integration does once connected.

Every credential is a Secret reference (Supplying credentials); Credential Positions lists every position and the field that fills it.

A company with no Slack or Mattermost Integration talks on Chatlet instead, Crewlet’s own chat, which needs no Integration: the engine opens a room for each unit’s channel, whose members follow the org chart, and its seats and people talk there, a person on the dashboard as their seat (Chatlet). Connecting Slack or Mattermost moves the company onto that vendor’s chat. The Company’s spec.chat names the backend instead of leaving the engine to derive it (None turns chat off), and sets the policy of Chatlet under chatlet, beside Chatlet or no backend at all: how long a message is kept (messageRetentionDays, 365 by default, 0 for ever), whether a room is private unless its creator says otherwise (defaultChannelPrivate), and when a seat shows it is working (typingStatus). The engine’s dry run refuses, on the Company, Chatlet beside a Slack or Mattermost Integration, Vendor without one, and a chatlet block on a company whose chat is a vendor’s, which nothing would read.

An Integration connects the engine to the vendor. An agent acts there, its chat replies included, through a tool server: an MCPServer its Seat gives its own credentials. Most of those servers are programs the engine starts in its own container, and Crewlet’s image carries none of them: Running Tool Servers builds an engine image with each vendor’s server and shows its MCPServer.

spec.provisioning says who creates each agent seat’s account at the vendor:

provisioningThe seats’ accountsThe Integration holdsA seat’s credential
External (the default)made by someone else: a person, or a platform’s own flowno administrator credential, so the engine creates, changes and removes nothing at the vendora Secret its Seat references, the seat’s alone
Enginemade by the engine for each seat that is on the vendor, at the access its Seat names, and healed on every reconcile passthe administrator credential the engine makes them withminted by the engine into its own store, under a name it gives it for the seat; the Seat names none

The engine can create accounts at GitLab, Mattermost, Datadog, Cloudflare, Scaleway and Google Cloud, and in an Atlassian Cloud organization, it holds each Expo seat’s robot token and each DigitalOcean seat’s personal access token, and it makes each AWS seat’s IAM role: Engine on Slack, GitHub, Jira, Confluence, Google Analytics, Google Ads, Search Console, Google Play, AdMob or AdSense is refused, since the engine mints no credential there (an agent of a Google growth product signs in as the identity the Google Cloud Integration makes it, and every AdMob or AdSense call goes as the grant a person signs in with). Datadog, Cloudflare, Expo, DigitalOcean, Scaleway, AWS, Google Cloud and Atlassian take Engine only: the engine creates the seats’ accounts (at Cloudflare, each seat’s own account API token; at Scaleway, an IAM application; at AWS, each seat’s role; at Google Cloud, a service account) with the credential they reference whenever it holds it. Expo lets no token create robot users, and DigitalOcean no API create a token, so there a person creates each seat’s credential and pastes it, and the Integration holds no credential. At AWS the engine stores no seat credential at all: it issues each seat’s session when a run or a tool needs it. At Google Cloud the engine seals no seat credential either: it issues each seat’s access token at use, for an hour. App Store Connect, Apple Ads and Meta Ads take neither mode’s credentials: no Secret holds a seat’s credential there, since the engine makes every call itself, with the company’s keys or tokens, or with a Meta Ads seat’s own where its identity is Own, and at App Store Connect always with the agent’s own team key, which a person hands in on the engine’s dashboard. So their Integrations leave provisioning unset and Engine is refused (App Store Connect, Apple Ads, Meta Ads).

Caution: an administrator credential is readable by everything the company runs. Under Engine the Integration’s administrator token or organization keys go into the company’s secret store, which every engine pod of the company opens (the data pod and each seat pod hold its keyring), and so does every process that runs as the engine: its stdio MCP servers, a harness, the code a seat runs. A seat steered by a prompt injection, or a compromised MCP package, is then one step from administering the vendor. Give the provisioner the narrowest credential it accepts: a GitLab group Owner’s token rather than an instance administrator’s, an Atlassian API key scoped to the organization’s user management, Datadog keys of a service account limited to what provisioning needs, a Cloudflare account API token holding only the permissions an agent level grants and Account API Tokens Write. A Scaleway provisioner key cannot be narrowed that way: it can mint keys for, and grant anything to, any application in the Organization, so give it a short expiry and rotate it (Scaleway). Google Cloud’s federation key acts as its provisioner, whose grants the Cloud Shell blocks hold to the agents’ levels (Google Cloud). Credential Positions says where each one goes.

Under Engine the engine hands the seat’s credential to the vendor’s tool server and its own tools itself, so a Seat names none of that vendor’s, and Crewlet refuses one it names (An agent’s access). A seat’s executor runs get no tool server’s environment. The credentials an integration’s own CLIs read in the box (GitLab’s, Expo’s and DigitalOcean’s token, Scaleway’s key, GitHub’s app token) are not named: the engine puts them in an agent’s box itself while the seat is on, and a provisioned line under the same name is ignored for it and reported as an advisory (An agent’s own integration credentials). GitHub’s app token is the one exception on a seat whose executor runs on Copilot: it would reach the box as GITHUB_TOKEN, which signs Copilot in ahead of its own login, so the engine withholds it there and reports an advisory at the seat, and the agent’s git and gh read the token from the file the engine writes for them (Where a seat’s executor runs). Any other value they need, such as the Datadog application key a CLI in the box reads, is named in the seat’s spec.sandbox.env as provisioned, by the vendor and the field:

valueFrom:
provisioned: {vendor: Datadog, field: AppKey} # the engine's DATADOG_APP_KEY_<HANDLE>

While the company has no Integration of that vendor with provisioning: Engine, nothing mints it: the seat is applied, its runs start without the value, and it reports ResolvedRefs=False NoProvisioner (Credentials the engine provisions).

Each agent Seat says, per vendor, whether it is on there, what it may do, and where, in its spec.integrations. Each block renders to the role’s block of the same vendor in Crewlet’s integrations. Where the engine provisions the vendor it holds the vendor to the block on every reconcile pass: it creates the account, gives it the access, narrows it to the scope, and puts back a role or scope someone changed at the vendor, reporting that it did.

spec: # Seat sre
integrations:
datadog:
enabled: true
role: 4f0e2b3c-1a2b-11ef-9c2b-da7ad0900002 # a role id from GET /api/v2/roles
github:
enabled: true
permissions: {contents: Read, issues: Write, pullRequests: Write}
repos: [acme/backend]
gitlab:
enabled: true
accessLevel: Reporter
projects: [acme/infra]
jira:
enabled: true
projectRole: "10101" # a role id from GET /rest/api/3/role
projects: [OPS]
confluence:
enabled: true
spaceRole: 8f3b6c1e-2d4a-4e5f-9a0b-1c2d3e4f5a6b
spaces: [ENG]
mattermost:
enabled: true
roles: [SystemUser, SystemPostAllPublic]
channels: [town-square, incidents]
cloudflare:
enabled: true
level: Operate # unset is Read
expo:
enabled: true
level: Developer # unset is Viewer
digitalocean:
enabled: true
level: Operate # unset is Read
scaleway:
enabled: true
level: Operate # unset is Read
projects: [aaaaaaaa-0000-4000-8000-000000000001]
aws:
enabled: true
level: Operate # unset is Read
googleCloud:
enabled: true
level: Operator # unset is Viewer
projects: [acme-prod]
googleAnalytics:
enabled: true
level: Operate # unset is Read
properties: ["123456789"]
admob:
enabled: true
level: Operate # unset is Read
accounts: ["pub-1234567890123456"]
adsense:
enabled: true
level: Operate # unset is Read
accounts: ["pub-2345678901234567"]
appStoreConnect:
enabled: true
level: Operate # unset is Read
apps: ["1234567890"]
appleAds:
enabled: true
level: Operate # unset is Read
adAccounts: ["123456789"]
metaAds:
enabled: true
level: Operate # unset is Read
adAccounts: ["act_1112223333"]
googleAds:
enabled: true
level: Operate # unset is Read
customers: ["1234567890"]
searchConsole:
enabled: true
level: Operate # unset is Read
sites: ["sc-domain:acme.example"]
googlePlay:
enabled: true
level: Operate # unset is Read
apps: ["com.acme.app"]
  • enabled is a stored setting, and every block states it. A vendor with no block is off for the seat, which is how a new agent starts. false turns the seat off and keeps its account at the vendor: disabled where the vendor can disable one (Datadog, GitLab, Mattermost, a suspended GitHub installation), and on Jira and Confluence taken out of its project roles or space access with its token narrowed, its product access kept. Its history keeps its author and turning it back on needs nobody (but on Slack, where a person approves the app’s install again). Cloudflare keeps no history for a seat’s token, so there false deletes it, and turning the seat back on mints a new one. Scaleway keeps no history for an application either, so there false deletes the seat’s keys, its policy and its application. At Expo false clears the seat’s token at once and asks a person to delete its robot at Expo. At DigitalOcean false clears the seat’s token at once and the engine revokes it there. At AWS false attaches AWS’s AWSDenyAll policy to the seat’s role and detaches its levels; the role and its CloudTrail history stay. At Google Cloud false disables the seat’s service account and removes its roles from every project; the account and its audit history stay. At Google Analytics, Google Ads, Search Console and Google Play false takes the seat’s access away at once, and turns its Google growth identity off once no other Google growth product is on for it. At AdMob and AdSense false takes the seat’s access away at once; the company’s sign-in, which every seat shares, stays. At App Store Connect false stops the engine making the seat’s calls and clears the agent’s own key, which the engine’s dashboard then asks you to revoke at Apple. At Apple Ads and Meta Ads no Secret holds a key or token of the seat’s, so false stops the engine making its calls, and gives up a Meta Ads seat’s own identity where its identity is Own. Removing the account is a separate, confirmed action in the engine’s dashboard, offered only while the seat is off.

  • Access is in the vendor’s own terms. Each field takes the identifier the vendor’s API takes, shown in the engine’s dashboard under the vendor’s exact name:

    VendorAccessScope
    Datadogrole: a role id, managed (Datadog Read Only Role, Standard, Admin) or customnone
    GitHubpermissions: Contents, Issues, Pull requests, Checks, Actions, Deployments and Workflows, each Read or Write; unset is No accessrepos, the repositories the seat’s tokens are narrowed to, within the Integration’s provisioning.repos where it lists them
    GitLabaccessLevel: Guest, Planner, Reporter, Developer, Maintainer or Owner; or memberRoleID, a custom role on Ultimateprojects, within the Integration’s engineProvisioning.projects where it lists them; unset is the whole group
    JiraprojectRole: a project role id of the site; what it may do is each project’s permission schemeprojects, by key, among those a Unit’s or a Seat’s spec.project names
    ConfluencespaceRole: a space role id, where the site has role-based access; operations (read:space, create:page) where it does notspaces, by key, among those a Unit’s or a Seat’s spec.space names
    Mattermostroles: SystemUser (Member), alone or with one of SystemPostAllPublic (post:channels), SystemPostAll (post:all) and SystemAdminchannels, within the Integration’s engineProvisioning.channels where it lists them
    Slacknone: the bot token scopes of the app’s manifestnone: the channels the bot is invited to
    Cloudflarelevel: Read (zone, DNS, cache, transform rule, firewall, WAF rule, IP list, SSL and analytics reads), Operate (Read, plus purging the cache and editing cache rules), Configure (Operate, plus editing transform rules, compression rules and every zone setting, the SSL mode and security level included) or Secure (Configure, plus editing WAF rules and IP lists); unset is Readnone: the zones the Integration lists, or every zone in the account
    Expolevel: Viewer, Runner, Developer or ReleaseManager, least access first; unset is Viewernone: the Integration’s account
    DigitalOceanlevel: Read (reads Droplets, volumes, networking, DNS, databases, Kubernetes, apps and monitoring), Operate (Read, plus creating, changing and deleting them) or Administer (Operate, plus cluster credentials, database passwords and consoles, which can outlive the token, so the dashboard asks for a fresh sign-in); unset is Readnone: the Integration’s team
    Scalewaylevel: Read (servers, storage, networks, DNS, databases and the audit trail), Operate (Read, plus restarting servers and changing firewalls, IPs, load balancers and private networks) or Administer (Operate, plus creating and changing servers, disks, databases, Kubernetes and the registry); unset is Readprojects, the Organization’s project IDs its policy grants the level on, at least one while the seat is on
    AWSlevel: Read (describe and list, with no object, parameter or secret contents), Operate (Read, plus starting, stopping, scaling, invoking and S3 object reads and writes) or Administer (Operate, plus managing those services whole, which can leave access behind, so the dashboard asks for a fresh sign-in); unset is Readnone: the Integration’s account, in its regions
    Google Cloudlevel: Viewer (read the project, Compute, GKE, Cloud Run, Cloud SQL, DNS, buckets, metrics and logs, and call Google’s MCP tools), Operator (Viewer, plus restarting and scaling VMs, pods and Cloud SQL, running Cloud Run jobs, editing alerting and reading and writing Cloud Storage objects) or Administer (Operator, plus managing VMs, networks, firewalls, clusters, Cloud SQL, DNS and buckets); unset is Viewerprojects, by project ID, each one prepared for Crewlet; at least one while the seat is on
    Google Analyticslevel: Read (every report and setting, nothing changed), Operate (Read, plus reversible changes made at once and recorded, such as key events, custom definitions and audiences) or Administer (Operate, plus asking an administrator to approve each account, access, link, key or irreversible change); unset is Read. At Operate only, role: Marketer holds the changes to Marketer’s: audiences, key events, attribution settings and event create rulesproperties, by numeric property ID, within the Integration’s properties where it lists them; at least one while the seat is on
    AdMoblevel: Read (accounts, apps, ad units, mediation and the reports, nothing changed), Operate (Read, plus creating apps, ad units and mappings and changing mediation groups and A/B experiments, at once and recorded) or Administer (Operate, plus asking an administrator to approve each change that cannot be undone, such as linking an app to its store listing or removing a mediation line); unset is Readaccounts, by publisher ID, within the Integration’s accounts where it lists them; at least one while the seat is on
    AdSenselevel: Read (accounts, sites, ad clients, ad units, channels, alerts, policy issues, payments, ad code and the reports, nothing changed), Operate (Read, plus creating ad units and custom channels and renaming, archiving or turning them on, at once and recorded, and asking an administrator to approve each change visitors see, a live ad unit’s size or type or a platform site’s review) or Administer (Operate, plus asking an administrator to approve each change that cannot be undone or sets up accounts, such as deleting a custom channel or moving a site to another revenue group); unset is Readaccounts, by publisher ID, within the Integration’s accounts where it lists them; at least one while the seat is on
    App Store Connectlevel: Read (apps, listings, reviews, TestFlight and reports), Operate (Read, plus changes nobody outside the team sees at once, and asking an administrator for anything customers or external testers see) or Administer (Operate, plus asking for the account changes the agent’s own key may make); unset is Readapps, by Apple ID, in the team its own key is in, at least one while the seat is on; teamResources: true for what no app owns
    Apple Adslevel: Read (campaigns, ad groups, keywords, ads, creatives and reports), Operate (Read, plus, at once, a change that raises no spend and publishes nothing, such as a pause or a lowered budget or bid, and asking an administrator for any spend or creative customers see) or Administer (Operate, plus asking for ad account changes and deletes); unset is ReadadAccounts, by ID, among the Integration’s adAccounts where it lists them, at least one while the seat is on
    Meta Adslevel: Read (ad accounts, campaigns, ad sets, ads, creatives, audiences and insights), Operate (Read, plus, at once, a change that raises no spend and shows nobody anything new, such as a pause or a lowered budget or bid, and asking an administrator for any spend or anything customers see) or Administer (Operate, plus asking for account changes and deletes); unset is ReadadAccounts, each act_ and its digits or its digits alone, among the Integration’s adAccounts where it lists them, at least one while the seat is on; businessResources: true for what no ad account owns; identity: Own for calls as the seat’s own system user, unset or Company the company’s
    Google Adslevel: Read (reports, planning and every setting, nothing changed), Operate (Read, plus pausing, lowering budgets and bids, negatives and other changes that spend nothing more) or Administer (Operate, plus asking an administrator to approve each change that spends, publishes ad text, removes, or touches users, links and billing); unset is Readcustomers, by 10-digit customer ID, within the Integration’s customers where it lists them; at least one while the seat is on
    Search Consolelevel: Read (search performance, sitemaps, URL inspection and verification, nothing changed), Operate (Read, plus submitting and removing sitemaps and Indexing API notifications) or Administer (Operate, plus asking an administrator to approve adding or removing a property, verifying a site and changing its owners); unset is Readsites, each a URL prefix with its trailing slash or sc-domain: and a domain, within the Integration’s sites where it lists them; at least one while the seat is on
    Google Playlevel: Read (reviews, listings, releases, products, vitals and reports, nothing changed), Operate (Read, plus draft releases, halted rollouts, tester groups and draft products made at once, and asking an administrator to approve each review reply, listing change, release, price and refund) or Administer (Operate, plus asking an administrator to approve user, access, key, deletion and other irreversible changes); unset is Readapps, by package name, within the Integration’s apps where it lists them; at least one while the seat is on

    While a seat is on, its access is required: a Datadog role, a GitLab accessLevel or memberRoleID, and Mattermost roles; a Jira projectRole where the seat lists projects, and a Confluence spaceRole or operations where it lists spaces (with neither, the seat holds the product’s access alone); a Cloudflare, Expo, DigitalOcean, Scaleway, AWS, Google Cloud, Google Analytics, Google Ads, Search Console, Google Play, AdMob, AdSense, App Store Connect, Apple Ads or Meta Ads level may be left unset, which is the vendor’s least access, and a Scaleway or Google Cloud seat names at least one of its projects, a Google Analytics seat one of its properties, a Google Ads seat one of its customers, a Search Console seat one of its sites, a Google Play seat one of its apps, an AdMob or AdSense seat one of its accounts, an App Store Connect seat one of its apps, and an Apple Ads or Meta Ads seat one of its adAccounts, since an empty list is none, never every one. A fixed set (GitLab’s roles, Mattermost’s roles, GitHub’s permissions and levels, Cloudflare’s, Expo’s, DigitalOcean’s, Scaleway’s, AWS’s, Google Cloud’s, Google Analytics’, Google Ads’, Search Console’s, Google Play’s, AdMob’s, AdSense’s, App Store Connect’s, Apple Ads’ and Meta Ads’ levels) is checked when the Seat is written, and so is each required field; a scope outside the company’s reach is refused by the engine’s dry run, Invalid on the Seat. A role read live from the vendor (Datadog’s roles, Jira’s project roles, Confluence’s space roles, GitLab’s custom roles) is checked by the engine on every pass, and one the vendor no longer has is reported, never replaced by another.

  • The Seat is where access changes. Under the Company’s Enforce policy the engine’s dashboard shows each agent’s access read-only, like the rest of the document (Applying), and its “Keep the vendor’s setting” and “Keep off” offers are changes to the Seat; “Turn back on”, which acts at the vendor, still runs. Whoever may write a Seat grants any role it names, the administration ones included (Datadog Admin Role, GitLab Maintainer or Owner, Jira Administrators, Confluence Admin, Mattermost System Admin, GitHub Contents or Workflows at Write, Scaleway Administer, Google Cloud Operator and Administer, Google Analytics, Google Ads, Search Console, Google Play, AdMob and AdSense Operate and Administer), which the dashboard gates behind a fresh sign-in: hold the Seat to the same review with RBAC.

  • A credential is the engine’s where the engine provisions the vendor, and the seat’s own Secret where it does not. Under an Integration with provisioning: Engine (GitLab, Mattermost, Datadog, Cloudflare, Expo, DigitalOcean, Scaleway, Google Cloud, an Atlassian organization), the engine mints the seat’s credential, seals it under a name it gives it for the seat (such as GITLAB_TOKEN_SRE; at Google Cloud it issues the token at use instead, and seals none), and hands it to the vendor’s per-seat tool server itself, under the variable or header the server reads. At AWS it seals nothing: it issues the seat’s session at use and signs each request to AWS’s server with it. The Seat names none, in spec.mcp or in spec.integrations, and Crewlet refuses one it names there: the refusal comes from the engine’s dry run, Invalid on the Seat. At Google Analytics, Google Ads, Search Console and Google Play there is no credential to name: the seat signs in as its Google growth identity, whose tokens the engine mints inside itself at use. At AdMob and AdSense there is none either: every seat’s call goes as the company’s sign-in, which the engine seals itself. For every other vendor (Slack, GitHub, and GitLab, Mattermost, Jira and Confluence under External) the seat’s credential is a Secret its Seat references, in spec.integrations or spec.mcp, and the Secret key is the seat’s alone: Crewlet refuses one another seat or an Integration names too. There enabled turns the seat’s own tools on and off, and the engine reports its access as managed outside Crewlet. At Apple Ads and Meta Ads no Seat references a credential at all: the engine makes each call with the company’s keys or tokens, or, for a Meta Ads seat whose identity is Own, with the seat’s own, which the engine keeps itself. At App Store Connect no Secret holds one either: the engine signs each call with the agent’s own team key, which a person hands in on the engine’s dashboard and the engine seals.

Most vendors deliver webhooks to the company’s public address (Company.status.endpoints.publicBaseURL, see Exposure). Each Integration’s status.webhookURL is the exact address its vendor delivers to, <publicBaseURL>/webhooks/<vendor>:

VendorWebhooksRegistered by
Slackper seat: Seat.status.integrations.slack.requestURLyou, in the seat’s app
GitHubstatus.webhookURL, and per seat: Seat.status.integrations.github.webhookURLthe engine, with tokenSecretRef; each seat’s app
GitLabstatus.webhookURLthe engine under Engine; you under External
Jirastatus.webhookURLthe engine, with the administrator token
Confluencestatus.webhookURL (Data Center), status.webhookURL/<event> (Cloud)the engine, with the administrator token
Datadogstatus.webhookURLthe engine, with the organization’s keys
Mattermostnone: the engine holds a websocket per seat’s bot—
Atlassiannone: the organization is where accounts are made—
Cloudflarenone: the engine only mints the seats’ tokensnobody
Exponone: the engine only checks the seats’ robot tokensnobody
DigitalOceannone: the engine only checks the seats’ tokensnobody
Scalewaynone: the engine only makes the seats’ applicationsnobody
AWSnone: the engine only makes the seats’ rolesnobody
Google Cloudnone: the engine only makes the seats’ service accounts and issues their tokensnobody
Google Analyticsnone: agents reach it through the engine’s own toolsnobody
AdMobnone: agents reach it through the engine’s own tools, and only the sign-in returns to the public address (AdMob)nobody
AdSensenone: agents reach it through the engine’s own tools, and only the sign-in returns to the public address (AdSense)nobody
App Store Connectnone: the engine only makes the agents’ callsnobody
Apple Adsnone: the engine only makes the agents’ callsnobody
Meta Adsnone: the engine only makes the agents’ callsnobody
Google Adsnone: agents reach it through the engine’s own toolsnobody
Search Consolenone: agents reach it through the engine’s own toolsnobody
Google Playnone: agents reach it through the engine’s own toolsnobody

Without a public address an Integration whose vendor delivers webhooks reports Healthy=False NotExposed; Mattermost and Atlassian need none. The engine still registers the webhooks it registers, at the only address its public listener has then, http://<company>-engine.<namespace>.svc:8081: no vendor reaches it, and it names the company’s Service and namespace to the vendor. Give the company a public address before an Integration holds the credentials the engine registers with. Healthy is otherwise the engine’s own check of the vendor. Jira, Confluence and the Atlassian organization are one tool to the engine, atlassian, so their three Integrations report one verdict.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: gitlab
spec:
companyRef: {name: acme}
provisioning: Engine
gitlab:
url: https://gitlab.com
signingSecretRef: {name: acme-gitlab, key: signingSecret} # whsec_...
tokenSecretRef: {name: acme-gitlab, key: readToken} # optional, read_api
engineProvisioning:
group: acme
adminTokenSecretRef: {name: acme-gitlab-admin, key: token}
projects: [acme/api, acme/infra] # what a seat's projects may name
groupWebhook: Auto
  • signingSecretRef verifies every delivery. GitLab signs with a whsec_ token over 32 random bytes; its Generate signing token button makes one, as does printf 'whsec_%s' "$(openssl rand -base64 32)".
  • tokenSecretRef, a personal access token with read_api, lets the engine read who takes part in an issue or a merge request. Without it a comment reaches only the people its delivery names.
  • Under Engine, adminTokenSecretRef is a group Owner’s personal access token with the api scope (an instance administrator’s, with accountOwner: Instance on a self-managed instance). The engine creates a service account for each agent seat that is on GitLab, makes it a member of the group, or of the seat’s own projects, at the seat’s role, and registers the webhook. projects lists the projects a seat’s projects may name.

An agent is on GitLab by its Seat’s spec.integrations.gitlab (An agent’s access). Under Engine the engine mints the account’s token, seals it as GITLAB_TOKEN_<HANDLE>, and hands it to the seat’s instance of the per-seat MCPServer named gitlab (glab mcp serve, in the engine image) under the variable or header the server reads; the token follows the role, so below Developer it reads the API and the repositories and cannot push:

spec: # Seat lead
integrations:
gitlab:
enabled: true
accessLevel: Developer
projects: [acme/api]

The engine puts the same token in the seat’s box as GITLAB_TOKEN, for git and glab there, with no line on the Seat.

Under External the seat’s GitLab account is made outside the engine, which changes nothing at GitLab, and its token is a Secret the Seat gives the gitlab server in spec.mcp, under GITLAB_TOKEN, the seat’s alone.

A person is tied to their GitLab account by their Seat’s contact.gitlabUsername (A person’s accounts).

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: mattermost
spec:
companyRef: {name: acme}
provisioning: Engine
mattermost:
url: https://chat.acme.example
team: acme
typingStatus: Addressed
engineProvisioning:
adminTokenSecretRef: {name: acme-mattermost-admin, key: token}
usernamePrefix: agent-
channels: [town-square]
displayNameSuffix: " (AI)"

url is the address the engine reaches the server at: each seat’s websocket and the engine’s REST calls, those that create the bots under Engine included, go to it, and each seat’s Mattermost tool server is given the same address (Mattermost’s server). It need not be where people go. They browse the server’s Site URL (ServiceSettings.SiteURL), from which Mattermost builds every link it hands out; the engine builds no Mattermost link from url. Any route to the server serves, the Site URL or the server’s in-cluster Service while people browse a public name: the engine’s websockets carry no Origin header, so Mattermost’s origin check, which holds a browser’s Origin to the Site URL’s scheme and host, never applies to them.

The server has to answer its API at url itself, without a redirect. The engine follows none, and fails each call the server redirects with an error naming where the server sent it; nor does the tool server, which is how an agent posts. So url has:

  • the Site URL’s path. Mattermost serves its API at that path, whatever host a request arrives at, and redirects a request outside the path into it. A longer path is not redirected but reaches its web app, which answers a read with its page and a write with 405 Method Not Allowed. A Site URL of https://example.com/chat takes a url ending in /chat, and a Site URL with no path a url with none.
  • the scheme its address is served on. The other scheme is redirected or refused: Mattermost’s own Forward80To443 redirects a read from http:// to https:// and answers a write 400 Use HTTPS, and a proxy that moves http:// to https:// does so with a redirect.

A connection that stays in the cluster has to pass the class’s network policy too (Network policy). Under networkPolicy.mode: Isolated the engine reaches every pod of the Company’s own namespace already, so a server running there needs nothing more at its Service’s address. Where networkPolicy.egress.exceptCIDRs covers the addresses a connection to url reaches, egress.to has to admit the pods it lands on: the server’s pods for its Service, and, for a Site URL served by an Ingress controller or a Gateway in the cluster, that proxy’s pods, wherever the server runs, because kube-proxy delivers a pod’s connection to a load balancer’s address in the cluster straight to the pods behind it.

Each agent seat speaks as its own bot, whose one token covers the websocket, the REST calls and the Mattermost tool server. Under Engine the engine creates the bot for each seat that is on Mattermost and mints its token, so the Seat names none:

spec: # Seat lead
integrations:
mattermost:
enabled: true
roles: [SystemUser] # Member; see An agent's access
channels: [town-square, leads] # within engineProvisioning.channels

Under External a bot made by hand, or by a platform, is a Secret key the Seat names twice, for the seat’s bot and for its mattermost tool server, and username names the bot when it is not the seat’s handle:

spec: # Seat lead
integrations:
mattermost:
enabled: true
roles: [SystemUser]
botToken:
secretKeyRef: {name: lead-mattermost, key: botToken}
mcp:
- name: mattermost
env:
- name: MATTERMOST_TOKEN
valueFrom:
secretKeyRef: {name: lead-mattermost, key: botToken} # the same token

The seat’s websocket only listens: the agent posts through the mattermost tool server, mcp-server-mattermost, which has to be in the engine image. Without it the agent receives every message and answers none (Mattermost’s server).

A person is tied to their Mattermost account by their Seat’s contact.mattermostUsername (A person’s accounts).

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: jira
spec:
companyRef: {name: acme}
jira:
url: https://jira.acme.example # or cloudID, with siteURL
tokenSecretRef: {name: acme-jira, key: token}
webhookSecretRef: {name: acme-jira, key: webhookSecret}
---
apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: confluence
spec:
companyRef: {name: acme}
confluence:
url: https://wiki.acme.example
tokenSecretRef: {name: acme-confluence, key: token}
webhookSecretRef: {name: acme-confluence, key: webhookSecret} # Data Center
webhookTokenSecretRef: {name: acme-confluence, key: webhookToken} # Cloud

tokenSecretRef is an administrator account’s API token (Cloud, with email for basic authentication) or personal access token (Data Center): the engine reads an issue’s watchers with Jira’s and searches with Confluence’s for a seat that has no credential of its own. A Data Center instance signs deliveries with webhookSecretRef, which it then requires; Confluence Cloud signs nothing, so its hooks carry webhookTokenSecretRef, at least 26 random characters, in their address. The Company runs them as its tracker and knowledge base with spec.tracker.backend: Jira and spec.knowledge.backend: Confluence.

A seat’s Jira and Confluence identity is one Atlassian account: its token for the MCPServer named atlassian (mcp-atlassian, in the engine image), or a product’s own server, jira or confluence, under JIRA_API_TOKEN, CONFLUENCE_API_TOKEN or ATLASSIAN_API_TOKEN (a Data Center personal access token under JIRA_PERSONAL_TOKEN or CONFLUENCE_PERSONAL_TOKEN), with its address under JIRA_USERNAME, CONFLUENCE_USERNAME or ATLASSIAN_EMAIL. Without an Atlassian Integration those come from Secrets.

A person is tied to their Atlassian account, on Jira and Confluence both, by their Seat’s contact.atlassianAccount: their account id on Cloud, their username on Data Center (A person’s accounts).

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: atlassian
spec:
companyRef: {name: acme}
provisioning: Engine
atlassian:
orgID: 1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d # from admin.atlassian.com
apiKeySecretRef: {name: acme-atlassian, key: apiKey} # created without scopes

With the organization connected, the engine creates one service account for each agent seat that is on Jira or Confluence, grants it each product the seat is on, gives it the seat’s project role in each of its Jira projects and its space role (or space permissions) in each of its Confluence spaces, and mints its token; it also discovers the sites, so the Jira and Confluence Integrations may leave url and cloudID out. The engine’s own tracker and knowledge tools sign in as the seat with the token it sealed for it, so the Seat names no Atlassian credential:

spec: # Seat lead
integrations:
jira:
enabled: true
projectRole: "10101" # the site's Developers role
projects: [OPS]
confluence:
enabled: true
spaceRole: 8f3b6c1e-2d4a-4e5f-9a0b-1c2d3e4f5a6b
spaces: [ENG]

A Data Center deployment has no organization: leave this Integration out and give each seat its token from a Secret.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: datadog
spec:
companyRef: {name: acme}
provisioning: Engine
datadog:
webhookTokenSecretRef: {name: acme-datadog, key: webhookToken} # 26+ random characters
routeTo:
seatRef: {name: sre-lead} # or dismiss: true
site: EU1
apiKeySecretRef: {name: acme-datadog, key: apiKey}
appKeySecretRef: {name: acme-datadog, key: appKey}

The engine registers the webhook at Datadog with the organization’s keys, so monitors name it as @webhook-crewlet (webhookName). An alert wakes the seat its monitor’s crewlet:<handle> tag names (handleTag), and routeTo the one an alert naming nobody wakes; a Human seat cannot be one. The engine also creates a service account for every agent seat that is on Datadog, with the role its Seat names by id, and mints the account’s application key:

spec: # Seat sre
integrations:
datadog:
enabled: true
role: 4f0e2b3c-1a2b-11ef-9c2b-da7ad0900002 # GET /api/v2/roles

It seals the key under a name it gives it for the seat, DATADOG_APP_KEY_<HANDLE>, and hands it to the seat’s instance of the per-seat MCPServer named datadog as DD_APPLICATION_KEY, the header Datadog’s remote server reads, beside the organization’s API key from provisioning, the same for every seat, as DD_API_KEY (Datadog’s server).

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: cloudflare
spec:
companyRef: {name: acme}
provisioning: Engine
cloudflare:
accountID: 023e105f4ecef8ad9ca31a8372d0c353
apiTokenSecretRef: {name: acme-cloudflare, key: apiToken} # the provisioner token
zones: [example.com, example.net] # unset: every zone in the account

The provisioner token is an account API token holding Account API Tokens Write, Account Settings Read, Zone Read and every permission group a seat level grants, since the engine grants an agent nothing the token does not hold itself. For every agent seat that is on Cloudflare, the engine mints the seat’s own account API token at its level, scoped to zones, expiring in 90 days; it rolls the token when fewer than 30 days remain, narrows it when the level changes, and deletes it when the seat is turned off:

spec: # Seat sre
integrations:
cloudflare:
enabled: true
level: Operate

It seals the token under a name it gives it for the seat, CLOUDFLARE_API_TOKEN_<HANDLE>, and hands it to the seat’s instance of a per-seat MCPServer at https://mcp.cloudflare.com/mcp as Authorization: Bearer <token>. A seat whose executor runs need it, such as for wrangler, names it in spec.sandbox.env as provisioned: {vendor: Cloudflare, field: APIToken}. Crewlet’s Cloudflare page lists the permission groups each level grants.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: expo
spec:
companyRef: {name: acme}
provisioning: Engine
expo:
accountName: acme # expo.dev/accounts/acme

The Integration holds no agent’s credential. Expo refuses robot creation to every token, so for each agent seat that is on Expo, a person adds a robot user on the account’s access tokens page at the role the seat’s level names, creates its access token, and pastes it on the seat’s row of the Expo card’s Agents tab. The engine checks that the token is a robot’s, that the robot holds that role on the account and that no other seat holds it, then seals it. When the level changes, the row asks the person to change the robot’s role at Expo. When the seat is turned off, the engine clears its token at once and the row asks the person to delete the robot:

spec: # Seat mobile
integrations:
expo:
enabled: true
level: Developer

The engine seals the token as EXPO_TOKEN_<HANDLE> and puts it in the seat’s box as EXPO_TOKEN, the variable the EAS CLI reads, with no line on the Seat. Crewlet’s Expo page says what each level may do.

To have the company’s atlas show the account’s projects and their latest builds, give it a view-only robot of its own. It is optional and no seat uses it. Add a robot named crewlet-atlas with the Viewer role at Expo, put its access token in a Secret, and reference it:

spec: # Integration expo
expo:
accountName: acme
atlasTokenSecretRef: {name: expo, key: atlasToken}

The engine refuses a robot with any other role, and any seat’s own robot, and reads nothing until the robot is a Viewer. Crewlet’s Expo page says what is read and how to undo it.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: digitalocean
spec:
companyRef: {name: acme}
provisioning: Engine
digitalocean:
team: Acme Production # as the control panel's team menu shows it

The Integration holds no agent’s credential. DigitalOcean lets no API create a token, so for each agent seat that is on DigitalOcean, a person creates a personal access token with Custom Scopes for the seat’s level in the team, and pastes it on the seat’s row of the DigitalOcean card’s Agents tab. The engine proves the token’s scopes with requests that change nothing, refuses a token holding billing, team, key or secret scopes (Full Access and Read Only included), and seals it. DigitalOcean cannot change a token’s scopes, so a level change asks for a new token, and the engine revokes the previous one itself. When the seat is turned off, the engine clears its token at once and revokes it at DigitalOcean:

spec: # Seat sre
integrations:
digitalocean:
enabled: true
level: Operate

The engine seals the token as DIGITALOCEAN_TOKEN_<HANDLE> and puts it in the seat’s box as DIGITALOCEAN_ACCESS_TOKEN, the variable doctl reads, with no line on the Seat; DigitalOcean’s MCP router, declared as a per-seat MCPServer at https://mcp.digitalocean.com/mcp, reads it as a bearer header. Crewlet’s DigitalOcean page lists the scopes each level grants.

The token is doctl’s and never the agent’s model sign-in. OpenCode reads DIGITALOCEAN_ACCESS_TOKEN as the key of its DigitalOcean model provider, so on a seat whose executor runs on an OpenCode provider with DIGITALOCEAN_ACCESS_TOKEN in its env (DigitalOcean’s own models) the engine withholds the token from the box and reports an advisory at the seat, and it refuses a provisioned line naming it there, which the operator reports on the Seat as Applied=False Invalid. Give such a seat the MCP router instead.

To have the company’s atlas show what the team runs (Droplets, Kubernetes clusters, databases, load balancers, domains, apps and Spaces buckets), give it a read-only token of its own. It is optional and no seat uses it. Create a personal access token named crewlet-atlas with Custom Scopes and only account:read, droplet:read, kubernetes:read, database:read, load_balancer:read, domain:read, app:read and project:read, put it in a Secret, and reference it:

spec: # Integration digitalocean
digitalocean:
team: Acme Production
atlasTokenSecretRef: {name: digitalocean, key: atlasToken}

The engine proves the token before every read, refuses one that can change anything or read a secret, and any seat’s own token, and reads no password, key or environment value. Crewlet’s DigitalOcean page says what each scope reads and how to undo it.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: scaleway
spec:
companyRef: {name: acme}
provisioning: Engine
scaleway:
organizationID: 11111111-2222-4333-8444-555555555555
accessKey: SCWXXXXXXXXXXXXXXXXX # names the provisioner key
secretKeySecretRef: {name: acme-scaleway, key: secretKey} # the provisioner key's secret
atlas: false # true reads the projects' products for the atlas

The provisioner key belongs to an IAM application whose policy grants IAMApplicationManager, IAMPolicyManager and ProjectReadOnly at Organization scope. Be clear about its reach: it can mint keys for, and grant anything to, any application in the Organization. An API key has no attribute naming its application, so no Scaleway condition can keep it to the agents’ applications, and the engine’s connect check refuses a condition on the resource that would refuse the agents’ keys too. Give it a short expiry, such as 30 days, and rotate it; on an engine with a fixed egress address, a condition on request.ip keeps a leaked key useless elsewhere.

atlas: true is the one optional step of Crewlet’s See more in Atlas: the engine makes one more IAM application, named for the atlas, with read-only permission sets on every project and a key it seals and rotates itself, and reads the Organization’s servers, clusters, databases, load balancers, bucket names, DNS zones, containers and functions under it. There is no Secret to reference. Setting it back to false, or leaving it out, deletes the application, its policy and its key.

For every agent seat that is on Scaleway, the engine makes the seat’s own IAM application with one policy granting its level on its projects, and mints its API key, expiring in 90 days; it replaces the key when fewer than 30 days remain, rewrites the policy when the level or the projects change, and deletes the keys, the policy and the application when the seat is turned off:

spec: # Seat sre
integrations:
scaleway:
enabled: true
level: Operate
projects: [aaaaaaaa-0000-4000-8000-000000000001]

The engine seals the key’s two values as SCALEWAY_SECRET_KEY_<HANDLE> and SCALEWAY_ACCESS_KEY_<HANDLE> and puts them in the seat’s box as SCW_SECRET_KEY and SCW_ACCESS_KEY, the variables the scw CLI reads, beside the Organization, the seat’s default project and SCW_DISABLE_CHECK_VERSION, with no line on the Seat. Granting Administer needs a fresh sign-in on the dashboard: it can leave access behind in what it reaches, which Crewlet’s Scaleway page lists with the permission sets each level grants.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: aws
spec:
companyRef: {name: acme}
provisioning: Engine
aws:
slug: acme # every Crewlet name in the account is crewlet-acme...
homeRegion: eu-west-1 # where the stack and the engine's sign-in live
regions: [eu-west-1, us-east-1] # unset is the home Region and us-east-1
iamRead: false # true lets every agent that is on read IAM
atlasRead: false # true adds a read-only role for the atlas to the stack
certificateAuthoritySecretRef: {name: aws, key: certificateAuthority}
connection: "arn:aws:rolesanywhere:...,arn:aws:rolesanywhere:...,arn:aws:iam::...,arn:aws:rolesanywhere:...,arn:aws:iam::..."

The engine stores no AWS access key. It signs in through IAM Roles Anywhere with a certificate authority it holds, whose certificate one CloudFormation stack in your account registers as a trust anchor. On the dashboard the connect form mints that authority; under the operator you make it once and reference it, since the document is the operator’s. The key must be a P-256 key in an EC PRIVATE KEY block, followed by a self-signed CA certificate whose common name matches crewlet-[a-z0-9-]{1,53}:

Terminal window
openssl ecparam -name prime256v1 -genkey -noout -out ca.key
openssl req -x509 -new -key ca.key -sha256 -days 1825 \
-subj "/O=Crewlet/CN=crewlet-ca-$(openssl rand -hex 8)" \
-addext "basicConstraints=critical,CA:TRUE,pathlen:0" \
-addext "keyUsage=critical,keyCertSign,cRLSign" -out ca.crt
cat ca.key ca.crt > ca.pem
kubectl -n acme create secret generic aws --from-file=certificateAuthority=ca.pem
rm ca.key ca.pem

The key can sign in as the stack’s provisioner, which can create agent roles and attach Crewlet’s levels, so keep it in that Secret alone. Once the engine holds it, the AWS card on the engine’s dashboard shows the CloudShell block, which carries only the certificate. Run it in CloudShell, in the home Region of the account agents will work in: it deploys the stack crewlet-<slug> and prints its CrewletConnection output last, which goes into connection. Until then no agent’s role is made. The engine checks the output against the slug and the home Region, and its dry run reports another stack’s output as Invalid on the Integration. Running the block again updates the stack, which is also how a changed regions list reaches the account. slug cannot change once the stack exists.

atlasRead is optional and no agent depends on it. Set to true, the block the dashboard shows also creates the role crewlet-<slug>-atlas, which the engine signs in as to list what the account runs for the atlas. One step: set it, run the block again, and replace connection with the output it prints, which then holds seven ARNs. To undo it, set it back to false, run the block again, which deletes the role, and set connection to the five ARNs it prints.

For each agent seat that is on AWS, the engine makes the IAM role crewlet-<slug>-<seat> within the stack’s permissions boundary, attaches its level’s policies, and issues the seat a session of an hour whenever a run or a tool needs one. Nothing is sealed, so a Seat names no AWS credential: its box gets ~/.aws/config with the profile crewlet and a credentials file the engine renews, and the seat’s executor runs use the AWS CLI with --profile crewlet:

spec: # Seat sre
integrations:
aws:
enabled: true
level: Operate

Changing the level attaches or detaches level policies on the same role. Turning the seat off attaches AWSDenyAll first, then detaches its levels. Crewlet’s AWS page says what each level may do and what no level can ever do.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: google-cloud
spec:
companyRef: {name: acme}
provisioning: Engine
googleCloud:
identityProject: acme-crewlet-id
provider: projects/123456789012/locations/global/workloadIdentityPools/crewlet/providers/crewlet-engine
atlasRead: false # true lets the atlas search what each project runs
federationKeySecretRef: {name: acme-google-cloud, key: federationKey}
signInClient: # optional: the OAuth client every Google sign-in is made as
clientID: 123456789012-abc123def456.apps.googleusercontent.com
clientSecretRef: {name: google-oauth, key: clientSecret}

No service account key is ever made. The engine signs in as the provisioner service account, crewlet-provisioner@<identityProject>.iam.gserviceaccount.com, through Workload Identity Federation, with a federation key of its own whose public half the provider holds, and makes each agent’s service account in the identity project identityProject names, which holds nothing else. Setting it up:

  1. Choose the identity project for Crewlet’s accounts: a new, empty project beside the projects agents will work on, with nothing else enabled in it, since the provisioner can act as any service account there. Set identityProject to its ID, as the console shows it under the project’s name, never a domain-scoped example.com:id; the Cloud Shell block of step 3 creates the project if it does not exist.

  2. Make the federation key, a P-256 key in PKCS#8 PEM, into the Secret the Integration references, and leave no copy behind:

    Terminal window
    openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256 -out federation-key.pem
    kubectl create secret generic acme-google-cloud --from-file=federationKey=federation-key.pem
    rm federation-key.pem
  3. Apply the Integration without provider. The engine’s Google Cloud card (Company › Integrations › Google Cloud) then shows a Cloud Shell block made from the key’s public half and the identity project. Run it in Cloud Shell: it creates the identity project if it is missing, then the provisioner, a workload identity pool and a provider pinned to this company, lets the engine act as the provisioner, and prints the provider’s full name as its last line.

  4. Set provider to that name. Until it is set, the engine makes no agent’s account and reports the step that is missing.

  5. Prepare each project an agent may use, once, as Crewlet’s Google Cloud page shows: it lets the provisioner grant the agents’ levels on the project and nothing else.

atlasRead is optional and no agent depends on it. Set to true, the Cloud Shell block on the engine’s card also makes the service account crewlet-atlas in the identity project and grants it one permission, to search resources by name and type, on each project the provisioner holds a role in; the engine then lists what those projects run for the atlas. One step: set it and run the block again. To undo it, set it back to false and delete the crewlet-atlas service account.

signInClient is optional: the company’s own OAuth client, which every Google sign-in is made as, set once here. AdMob and AdSense sign in as it, and so do the Administrators of Google Analytics and Google Play who add agents’ identities, wherever their Integration names no oauth of its own; one that names its own signs in as that instead. Make it as AdMob describes, with each product’s API turned on in its project. clientSecretRef is its one credential, and those Integrations’ oauth.clientSecretRef may name the same Secret key. Changing signInClient.clientID ends every sign-in made as it, and each is made again.

For every agent seat that is on Google Cloud, the engine makes the seat’s own service account, grants it the seat’s level on each of its projects, and changes the roles when the level or the projects change. Turning the seat off disables the account and removes its roles; the account and its audit history stay:

spec: # Seat sre
integrations:
googleCloud:
enabled: true
level: Operator
projects: [acme-prod, acme-staging]

The engine seals no token for the seat. It issues the account’s access token at use, for an hour, by impersonation, and hands it to the seat’s instance of each of Google’s managed MCPServers as Authorization: Bearer <token> (Google Cloud’s servers). In the seat’s box it writes the token to .config/crewlet/gcloud-token under the box’s home, keeps it current while the run lasts, and sets CLOUDSDK_AUTH_ACCESS_TOKEN_FILE to its path and CLOUDSDK_CORE_PROJECT to the seat’s first project, beneath the seat’s own spec.sandbox.env, so the Google Cloud CLI in the box image runs as the seat. Crewlet’s Google Cloud page lists the roles each level grants, and the ones no level does.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: google-analytics
spec:
companyRef: {name: acme}
googleAnalytics:
properties: ["123456789", "987654321"] # unset is every property an agent's identity is added to
oauth: # optional: a client for this sign-in alone, in place of signInClient
clientID: 123456789012-abc123def456.apps.googleusercontent.com
clientSecretRef: {name: google-oauth, key: clientSecret}
approverRefs: # Human Seats an agent's held acts are routed to first
- name: jane

Google Analytics holds no agent’s credential, and the engine creates nothing there: each agent signs in as its own Google growth identity, a service account the engine makes in the identity project of the company’s Google Cloud Integration, and the engine mints its tokens inside itself at use, so none reaches an agent’s box. The Integration needs that Google Cloud Integration, and the engine’s dry run refuses it without one, Invalid on this Integration; its provisioning is External, the default. No project needs preparing for it. Setting it up:

  1. Apply this Integration beside the Google Cloud one, then run the Cloud Shell block on the engine’s Google Cloud card again: it turns on the Analytics Data and Admin APIs in the identity project and makes the company reader, the identity the engine reads the company’s figures as.
  2. Add the company reader’s email, shown on the engine’s Google Analytics card, to each property at Viewer (in Google Analytics: Admin, Property access management, Add users).
  3. Turn agents on in their Seats, each with its properties, and set up each agent’s identity in its box on the engine’s Agents tab: add its email to those properties at the role its level needs, or press Add it for me once an Administrator has signed in. The engine checks each agent’s access on every pass, and the agent reads Needs you until it passes.

An Administrator who signs in on the engine’s dashboard lets the engine add each agent’s identity to its properties itself. The sign-in is made as the Google Cloud Integration’s signInClient, or as oauth where the Integration names one, which overrides it for Google Analytics alone; with neither, a person adds each identity. The sign-in signs no agent’s call. oauth is optional, its clientSecretRef the Integration’s one credential, and the Google Play, AdMob and AdSense Integrations and signInClient may name the same Secret key.

properties narrows what agents may be given: at most 200 numeric property IDs, written 123456789 rather than properties/123456789. Unset, an agent may be given any property its identity is added to. approverRefs names the Human Seats an agent’s held acts are routed to first: the ones an administrator must approve, which are account, access, link, key and other irreversible changes, and turning on a BigQuery export, which Google Cloud bills. Only an administrator answers one, at a fresh sign-in, and with no approvers every administrator is asked. A Seat there that does not exist, or an Agent seat, holds the document (RefNotFound, AgentSeat), as Crewlet refuses an approver that is not a person’s seat.

For every agent seat that is on Google Analytics, the engine holds each call to the seat’s level and properties before Google is asked:

spec: # Seat growth-lead
integrations:
googleAnalytics:
enabled: true
level: Operate # unset is Read
role: Marketer # optional, at Operate only
properties: ["123456789"]

The seat holds its level in every property it names. A seat that is on names at least one property, each within the Integration’s properties where it lists them; the engine’s dry run refuses another, Invalid on the Seat. The role a person gives the agent’s identity in each property is Google’s own ceiling beside it, and a call needs both: Viewer for Read, Marketer or Editor for Operate, and Editor, or Administrator for access, for Administer.

role: Marketer runs a seat at Operate as Google Analytics’ Marketer: the engine holds its changes to Marketer’s, which are audiences, key events, attribution settings and event create rules, and refuses any other change before Google is asked. Without it, Operate makes every reversible change, as Editor. The API server refuses role at any other level, an unset one included, as Crewlet does. The identity needs Marketer in each property, which a person adds: Google Analytics’ API can neither grant Marketer nor list it, so Add it for me cannot add it, and the engine’s Agents tab reads the agent’s role as not checked. An identity that holds Editor or Administrator there is held to Marketer’s changes all the same.

The agents reach Google Analytics through the engine’s own tools, so it needs no MCPServer, and Crewlet refuses Google’s Analytics MCP server in the company’s tool servers while the integration is on: it would reach the same properties around the seats’ levels and properties. Crewlet’s Google Analytics page lists every tool, what each level may do, and the role each needs.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: admob
spec:
companyRef: {name: acme}
admob:
oauth: # optional: a client for AdMob alone, in place of signInClient
clientID: 123456789012-abc123def456.apps.googleusercontent.com
clientSecretRef: {name: google-oauth, key: clientSecret}
accounts: ["pub-1234567890123456"] # unset is every account the person who signs in reaches
approverRefs: # Human Seats an agent's held acts are routed to first
- name: jane

Google refuses service accounts at AdMob, so the agents reach it through one sign-in: a person who manages the company’s AdMob account signs in with Google once, on the engine’s AdMob page, as the company’s own OAuth client: the Google Cloud Integration’s signInClient, or oauth where this Integration names one, which overrides it for AdMob alone. With neither, the engine’s dry run refuses the Integration, Invalid on it. The engine seals that grant and renews it inside itself, and makes every agent’s call through it, so no token reaches an agent’s box. The grant is never in the company document, so signing in changes nothing there and works under every management policy. The one credential the Integration holds is its own OAuth client’s secret, where it names one, pushed to the engine’s store as every referenced Secret is. The engine creates nothing at AdMob for a seat, so provisioning is External, the default, and the Integration needs no Google Cloud one where it names its own oauth. Setting it up:

  1. In a Google Cloud project the company controls, turn on the AdMob API and make an OAuth client of type Web application. Add the engine’s callback, <publicBaseURL>/webhooks/mcp-oauth, as an authorized redirect URI, and publish the consent screen (or make the app Internal on Google Workspace): an external app left in Testing loses its sign-in after seven days.
  2. Put the client’s secret in a Secret and name the client in the Google Cloud Integration’s signInClient, or in this Integration’s oauth, and apply this Integration.
  3. Sign in with Google on the engine’s AdMob page, as a person who manages the AdMob account, and turn agents on in their Seats, each with its accounts.

The sign-in returns to the engine’s public address, so it needs the Company exposed (Choose how webhooks arrive): with exposure.webhooks.mode: None its only address is the in-cluster one, which no browser reaches and Google does not accept as a redirect. Until somebody signs in, and again once Google stops renewing the grant, no agent’s call reaches AdMob. Changing the client’s ID ends the grant: Google renews a sign-in only for the client it was made as, so a person signs in again.

accounts narrows what agents may be given: at most 50 publisher IDs, each written as AdMob’s Settings, Account information shows it, pub-1234567890123456. Unset, an agent may be given any account the person who signed in reaches. approverRefs names the Human Seats an agent’s held acts are routed to first: the changes that cannot be undone, which are linking an app to its store listing, removing a mediation line, and stopping an A/B experiment keeping the treatment’s lines. Only an administrator answers one, at a fresh sign-in, and with no approvers every administrator is asked. A Seat there that does not exist, or an Agent seat, holds the document (RefNotFound, AgentSeat), as Crewlet refuses an approver that is not a person’s seat. No other field of the company may reference the OAuth client’s Secret key but another Google sign-in’s (the AdSense, Google Analytics and Google Play Integrations’ oauth.clientSecretRef and the Google Cloud Integration’s signInClient.clientSecretRef): the engine’s dry run refuses one, Invalid on the object that names it, as it keeps a growth integration’s credential in the engine alone.

For every agent seat that is on AdMob, the engine holds each call to the seat’s level and accounts before Google is asked:

spec: # Seat monetization
integrations:
admob:
enabled: true
level: Operate # unset is Read
accounts: ["pub-1234567890123456"]

The seat holds its level in every account it names. A seat that is on names at least one account, each within the Integration’s accounts where it lists them; the engine’s dry run refuses another, Invalid on the Seat. One sign-in serves every seat, so nothing at Google tells two agents apart: the level and accounts are Crewlet’s to enforce, and the role of the person who signed in is Google’s own ceiling beside them, for every seat alike. Read needs any role, and Reports and performance data at View for the reports; Operate and Administer need Inventory management at View and manage, or Manager, and the sign-in made again once a seat is raised to them, to allow changes.

The agents reach AdMob through the engine’s own tools, so it needs no MCPServer. Crewlet’s AdMob page lists every tool and method, what each level may do, and the role each needs.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: adsense
spec:
companyRef: {name: acme}
adsense:
oauth: # optional: a client for AdSense alone, in place of signInClient
clientID: 123456789012-abc123def456.apps.googleusercontent.com
clientSecretRef: {name: google-oauth, key: clientSecret}
accounts: ["pub-2345678901234567"] # unset is every account the person who signs in reaches
approverRefs: # Human Seats an agent's held acts are routed to first
- name: jane

Google refuses service accounts at AdSense as at AdMob, and the agents reach it the same way: a person who manages the company’s AdSense account signs in with Google once, on the engine’s AdSense page, as the company’s own OAuth client: the Google Cloud Integration’s signInClient, or oauth where this Integration names one, which overrides it for AdSense alone. With neither, the engine’s dry run refuses the Integration, Invalid on it. The engine seals and renews that grant inside itself and makes every agent’s call through it. No token reaches an agent’s box, and the grant is never in the company document, so signing in changes nothing there and works under every management policy. The one credential the Integration holds is its own OAuth client’s secret, where it names one. The engine creates nothing at AdSense for a seat, so provisioning is External, the default, and the Integration needs no Google Cloud one where it names its own oauth. Setting it up:

  1. In a Google Cloud project the company controls, turn on the AdSense Management API and make an OAuth client of type Web application, or use signInClient or AdMob’s (below). Add the engine’s callback, <publicBaseURL>/webhooks/mcp-oauth, as an authorized redirect URI, and publish the consent screen (or make the app Internal on Google Workspace): an external app left in Testing loses its sign-in after seven days.
  2. Put the client’s secret in a Secret and name the client in the Google Cloud Integration’s signInClient, or in this Integration’s oauth, and apply this Integration.
  3. Sign in with Google on the engine’s AdSense page, as an Administrator or Standard user of the AdSense account, and turn agents on in their Seats, each with its accounts.

The sign-in returns to the engine’s public address, so it needs the Company exposed, as AdMob’s does (Choose how webhooks arrive). Until somebody signs in, and again once Google stops renewing the grant, no agent’s call reaches AdSense. Changing the client’s ID ends the grant, and a person signs in again.

One OAuth client may serve AdSense and AdMob. Both sign in as the Google Cloud Integration’s signInClient where neither names its own oauth, and two that do may name the same clientID and the same Secret key in oauth.clientSecretRef: the operator pushes the key once, and Crewlet admits one variable at the two products’ OAuth clients. Each product keeps its own Integration, its own sign-in on its own page and its own seats’ access. Signing out of one revokes nothing at Google while the other signs in as a client of the same Google Cloud project, since Google’s revocation would end both; a client in a project of its own keeps every sign-out a revocation.

accounts narrows what agents may be given: at most 50 publisher IDs, each written as AdSense’s Account, Settings, Account information shows it, pub-2345678901234567, without the ca- an ad client’s ID adds. Unset, an agent may be given any account the person who signed in reaches. approverRefs names the Human Seats an agent’s held acts are routed to first: the changes visitors see, which are a live ad unit’s size or type and asking Google to review a platform site, and the changes that cannot be undone or set up accounts, which are deleting a custom channel, creating or closing a platform’s sub-account, adding or removing its sites, recording its events and moving a site to another revenue group. Only an administrator answers one, at a fresh sign-in, and with no approvers every administrator is asked. A Seat there that does not exist, or an Agent seat, holds the document (RefNotFound, AgentSeat), as Crewlet refuses an approver that is not a person’s seat. No other field of the company may reference the OAuth client’s Secret key but another Google sign-in’s, as at AdMob: the engine’s dry run refuses one, Invalid on the object that names it.

For every agent seat that is on AdSense, the engine holds each call to the seat’s level and accounts before Google is asked:

spec: # Seat revenue
integrations:
adsense:
enabled: true
level: Operate # unset is Read
accounts: ["pub-2345678901234567"]

The seat holds its level in every account it names. A seat that is on names at least one account, each within the Integration’s accounts where it lists them; the engine’s dry run refuses another, Invalid on the Seat. One sign-in serves every seat, so nothing at Google tells two agents apart: the level and accounts are Crewlet’s to enforce. AdSense’s two roles, Administrator and Standard user, each reach every method of its API, so the person’s role sets no narrower ceiling. While every seat reads, the sign-in allows reading alone; once a seat is raised to Operate or Administer, the sign-in is made again to allow changes. Google answers some writes, creating and changing ad units and custom channels among them, and every AdSense for Platforms method only for the Google Cloud projects it enables; Crewlet offers them all the same, and says so when Google refuses one.

The agents reach AdSense through the engine’s own tools, so it needs no MCPServer. Crewlet’s AdSense page lists every tool and method, what each level may do, and which methods Google enables per project.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: app-store-connect
spec:
companyRef: {name: acme}
appStoreConnect:
approverRefs: [{name: founder}] # optional: Human Seats asked first
connections:
- name: main # the team's connection id
issuerID: 57246542-96fe-1a63-e053-0824d011072a

Each agent signs every App Store Connect call with its own team key, through the engine’s own tools; the company holds no key, so the Integration names only each team’s issuer ID and leaves provisioning unset. No Secret holds an agent’s key: a person hands it in on the engine’s dashboard, which checks it, seals it and hands it to no box. Setting it up:

  1. The Account Holder requests App Store Connect API access once, in Users and Access, Integrations.
  2. List each team under connections, with its issuer ID, shown above the keys on Users and Access, Integrations, App Store Connect API.
  3. For each agent seat, press Set up identity on the integration’s Agents tab in the engine’s dashboard, make a team key at Apple with the role the agent’s level needs (Marketing to read, App Manager to operate or administer, never Admin; Sales for an agent that reads sales, Customer Support for one that answers reviews), and hand in its .p8 file, with the team’s vendor number for a Sales key. The engine keeps the key only if it works, and the check lists the team’s apps, which the agents’ app chooser then offers.

Until its key is verified, an agent’s row on the Agents tab reads Needs you and the agent makes no call: each is refused, pointing to Set up identity. A change only Apple’s Admin role may make is refused too: Crewlet holds no Admin key, so a person makes it in App Store Connect. A company may connect several teams, each under its own name.

A call customers or external testers would see, an account change and a delete that cannot be undone are held for an administrator, who answers at a fresh sign-in, never a delegate. approverRefs names the people asked first, unset every administrator. The engine’s dry run refuses an Agent seat there, and a Seat that does not exist holds the document, RefNotFound on the Integration.

For each agent seat, its Seat names its level and the apps it may touch, in the team its own key is in, and teamResources: true lets it reach what no app owns (users, devices, certificates, profiles, sandbox testers, reports across apps), within its level:

spec: # Seat growth-lead
integrations:
appStoreConnect:
enabled: true
level: Operate
apps: ["1234567890"]

Crewlet’s App Store Connect page lists the role each level’s key needs, what each level may do, the agents’ tools, and the limits Apple sets.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: apple-ads
spec:
companyRef: {name: acme}
appleAds:
approverRefs: [{name: founder}] # optional: Human Seats asked first
adAccounts: ["123456789"] # optional: the ad accounts agents may be given
connections:
- name: main # the API user's connection id
orgID: "987654321" # optional: the engine checks the user answers it
clientID: SEARCHADS.aeb3ef5f-0c5a-4f2a-99c8-fca83f25a9e1
teamID: SEARCHADS.aeb3ef5f-0c5a-4f2a-99c8-fca83f25a9e1
keyID: a273d0d3-4d9e-458c-a173-0db8619ca7d7
privateKeySecretRef: {name: acme-apple-ads, key: main}
spend: # optional: without both caps every spend is refused
accounts:
- {account: "123456789", currency: USD, perChange: "50.00", daily: "300.00"}

No agent ever holds an Apple Ads key or token. The engine keeps each API user’s private key, signs its client secret with it, and makes every call for the agents through its own tools, through the connection whose user reaches the call’s ad account. So the Integration leaves provisioning unset: no seat has an account or a credential there. Setting it up:

  1. An account administrator invites an API user in Apple Ads (Account Settings, User Management), with the role agents need on each ad account. Apple sets roles in its own interface alone; the engine reads them and refuses a call the role on that ad account cannot make.

  2. Make the user’s key pair, and put the private key straight into the Secret the Integration references, leaving no copy behind:

    Terminal window
    openssl ecparam -genkey -name prime256v1 -noout -out private-key.pem
    openssl ec -in private-key.pem -pubout -out public-key.pem
    kubectl create secret generic acme-apple-ads --from-file=main=private-key.pem
    rm private-key.pem
  3. Signed in as that user, paste public-key.pem under Account Settings, API. Apple then shows its client ID, team ID and key ID.

  4. List the user under connections, with the three IDs, the Secret key of its private key and, optionally, the organization’s ID.

A company may connect several API users, each under its own name; the API refuses one client ID in two connections. A private key’s Secret key may be referenced by its own connection alone: the engine’s dry run refuses the same Secret key anywhere else in the company, Invalid on the object that names it, since that would hand the key to something other than the engine’s own calls. Like the administrator credentials above, the keys sit in the company’s secret store, which every engine pod of the company opens.

A spend, a creative customers see, an ad account change and a delete are held for an administrator, who answers at a fresh sign-in, never a delegate. approverRefs names the people asked first, unset every administrator. The engine’s dry run refuses an Agent seat there, and a Seat that does not exist holds the document, RefNotFound on the Integration. Before anybody is asked, a spend passes the caps of its ad account: it may add at most perChange to the account’s daily capacity, the daily budgets of its enabled campaigns that have not ended, and leave it at most daily, each a decimal amount in the account’s own currency, which currency must equal where it is set, or every spend on the account is refused. An ad account without both caps refuses every spend; reads, operate changes and pausing still work. Caps name an ad account by its ID, among adAccounts where the Integration lists them, and the engine’s dry run refuses a perChange above daily.

For each agent seat, its Seat names its level and the ad accounts it may touch:

spec: # Seat growth-lead
integrations:
appleAds:
enabled: true
level: Operate
adAccounts: ["123456789"]

Crewlet’s Apple Ads page lists what each Apple role and each level may do, the agents’ tools, how a change is classed, and the limits Apple sets.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: meta-ads
spec:
companyRef: {name: acme}
metaAds:
approverRefs: [{name: founder}] # optional: Human Seats asked first
appID: "987654321012345" # the company's own Meta app
appSecretSecretRef: {name: acme-meta-ads, key: appSecret}
readTokenSecretRef: {name: acme-meta-ads, key: readToken}
operateTokenSecretRef: {name: acme-meta-ads, key: operateToken} # optional: changes and asks
adminTokenSecretRef: {name: acme-meta-ads, key: adminToken} # optional: account changes
adminSystemUserTokenSecretRef: {name: acme-meta-ads, key: adminSystemUserToken} # optional: agents' own system users
businessID: "1234567890" # optional; needed with adminSystemUserTokenSecretRef
adAccounts: ["act_1112223333"] # optional: the ad accounts agents may be given
spend: # optional: without both caps every spend is refused
accounts:
- {account: act_1112223333, currency: EUR, perChange: "50.00", daily: "200.00"}

No agent ever holds a Meta token. The engine keeps the company’s own Meta app’s secret and one system user’s tokens, and makes every call for the agents through its own tools, each through the least privileged token that holds the permissions its operation needs and with a proof made from the app secret. So the Integration leaves provisioning unset: no seat has an account or a credential there. Setting it up:

  1. In the business portfolio, create a Business app (or use one) with the Marketing API product, and turn on Require App Secret in its Advanced settings, so a token is useless without the app secret.
  2. In Business Settings, System users, add an Employee system user (never an admin one) and assign it the ad accounts agents may use, and the Pages, pixels, catalogs and apps an ad uses where agents should reach them.
  3. Generate the system user’s tokens from the app: the read token with ads_read and only permissions that read; optionally the operate token with ads_management and never business_management, without which agents only read; optionally the admin token with business_management, used only for an account change an administrator allows.
  4. Optionally, so the engine makes each agent its own system user, add an Admin system user (Meta allows one) and generate its token from the same app with business_management. The engine uses it for nothing else: it makes crewlet-<handle> an Employee system user for each agent whose seat asks for its own identity, assigns it the seat’s ad accounts with its level’s tasks, and mints, renews and revokes its token. Without it a person makes each one in Business Settings and hands in its token on the integration’s Agents tab. It needs businessID (Meta Ads Manager).
  5. Put the app secret and each token into the Secret the Integration references (Supplying credentials), and list the app’s ID, the business portfolio’s ID where agents should read its ad accounts as its own, and the ad accounts agents may be given.

An ad account is act_ and its digits, as Meta writes it; in adAccounts its digits alone name it too. The app secret’s and each token’s Secret key may be referenced at its own field alone: the engine’s dry run refuses the same Secret key at another of the five or anywhere else in the company, Invalid on the object that names it, since that would hand a token to something other than the engine’s own calls. Like the administrator credentials above, they sit in the company’s secret store, which every engine pod of the company opens: give the operate and admin tokens only when agents need them. A token that expires is renewed by the engine before it does, and the renewal is sealed in the store under the engine’s own growth/ names, which the operator neither lists nor deletes (its own names start with K8S_); a new value in the Secret wins over it. Meta’s own Ads MCP server (mcp.facebook.com/ads) is refused while the Integration is there: an MCPServer reaching it would reach the same ad accounts around the caps and the seats’ ad accounts, and the engine’s dry run refuses it, Invalid on the MCPServer.

A spend, something customers see, an account change and a delete are held for an administrator, who answers at a fresh sign-in, never a delegate. approverRefs names the people asked first, unset every administrator. The engine’s dry run refuses an Agent seat there, and a Seat that does not exist holds the document, RefNotFound on the Integration. Before anybody is asked, a spend passes the caps of its ad account: it may add at most perChange to the account’s daily capacity and leave it at most daily, each a decimal amount in the account’s own currency, which currency must equal where it is set, or every spend on the account is refused. An ad account without both caps refuses every spend; reads, operate changes and pausing still work. Caps name an ad account as act_ and its digits, among adAccounts where the Integration lists them, and the engine’s dry run refuses a perChange above daily.

For each agent seat, its Seat names its level and the ad accounts it may touch, each once, and businessResources: true lets it reach what no ad account owns (the business portfolio, Pages, Instagram accounts, pixels, catalogs, apps, billing), within its level. identity says whose identity its calls go as, which Meta records against each one: unset or Company, the company’s system user; Own, a system user of the seat’s own, which the engine makes with the company’s admin token, or a person makes in Business settings. The engine checks it before it keeps it and on every pass, and until it keeps one the seat reads Needs you on its dashboard:

spec: # Seat growth-lead
integrations:
metaAds:
enabled: true
level: Operate
adAccounts: ["act_1112223333"]
identity: Own # optional: unset is Company

Crewlet’s Meta Ads page lists what each token and each level may do, the agents’ tools, how a change is classed, and the limits Meta sets.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: google-ads
spec:
companyRef: {name: acme}
googleAds:
customers: # unset is every account an agent's identity is added to directly
- id: "1234567890"
manager: "9876543210" # the manager account the identity is added to, if any
- id: "1112223334"
approverRefs: # Human Seats an agent's held acts are routed to first
- name: jane
spend:
accounts:
- {account: "1234567890", currency: EUR, perChange: "50.00", daily: "200.00"}

Google Ads holds no credential, and the engine creates nothing there: each agent signs in as its own Google growth identity, a service account the engine makes in the identity project of the company’s Google Cloud Integration, and the engine mints its tokens inside itself at use, so none reaches an agent’s box. Google needs no developer token for it. The Integration needs that Google Cloud Integration, and the engine’s dry run refuses it without one, Invalid on this Integration; its provisioning is External, the default. No project needs preparing for it. Setting it up:

  1. Apply this Integration beside the Google Cloud one, then run the Cloud Shell block on the engine’s Google Cloud card again: it turns on the Google Ads API in the identity project and makes the company reader, the identity the engine reads the company’s figures as.
  2. Apply for Explorer or Basic access to the Google Ads API on the identity project’s API page: access levels and quotas belong to the project.
  3. Add the company reader’s email, shown on the engine’s Google Ads card, to each account at Read-only (in Google Ads: Admin, Access and security, Users).
  4. Set each account’s caps under spend, below.
  5. Turn agents on in their Seats, each with its accounts, and add each agent’s email, shown in its box on the engine’s Agents tab, to those accounts, or to the manager account they are reached through, at the access level its level needs. The engine checks each agent’s access on every pass, and the agent reads Needs you until it passes.

customers narrows what agents may be given: at most 200 accounts, each by its 10-digit customer ID written without hyphens (1234567890, not 123-456-7890), and each with the manager account its identity is added to, where it reaches the account through a manager. Unset, an agent may be given any account its identity is added to directly. approverRefs names the Human Seats an agent’s held acts are routed to first: the ones an administrator must approve, which are changes that spend, publish ad text, remove, or touch users, links and billing. Only an administrator answers one, at a fresh sign-in, and with no approvers every administrator is asked. A Seat there that does not exist, or an Agent seat, holds the document (RefNotFound, AgentSeat), as Crewlet refuses an approver that is not a person’s seat.

spend.accounts caps each account in its own currency: perChange is the most one approved change may add to its daily capacity, and daily the ceiling on that capacity after any approved change, each a decimal amount with at most six decimals. An account without both caps refuses every spend call; reads, operate calls and pausing still work. currency, an ISO 4217 code, must be the account’s own, which the engine reads live, or every spend call on it is refused. A cap names an account customers lists, by its customer ID; a perChange above daily is refused by the engine’s dry run, Invalid on this Integration.

For every agent seat that is on Google Ads, the engine holds each call to the seat’s level and accounts before Google is asked:

spec: # Seat media-buyer
integrations:
googleAds:
enabled: true
level: Administer # unset is Read
customers: ["1234567890"]

The seat holds its level in every account it names. A seat that is on names at least one account, each within the Integration’s customers where it lists them; the engine’s dry run refuses another, Invalid on the Seat. The access level a person gives the agent’s identity in each account is Google’s own ceiling beside it, and a call needs both.

The agents reach Google Ads through the engine’s own tools, so it needs no MCPServer, and Crewlet refuses Google’s Google Ads MCP server in the company’s tool servers while the integration is on: it would reach the same accounts around the caps, the approvals and the seats’ accounts. Crewlet’s Google Ads page lists every tool, what each level may do, and the access each needs.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: search-console
spec:
companyRef: {name: acme}
searchConsole:
sites: # unset is every property an agent's identity is added to
- https://www.acme.example/
- sc-domain:acme.example
approverRefs: # Human Seats an agent's held acts are routed to first
- name: jane

Search Console holds no credential, and the engine creates nothing there: each agent signs in as its own Google growth identity, a service account the engine makes in the identity project of the company’s Google Cloud Integration, and the engine mints its tokens inside itself at use, so none reaches an agent’s box. Agents reach the Search Console, Site Verification and Indexing APIs. The Integration needs that Google Cloud Integration, and the engine’s dry run refuses it without one, Invalid on this Integration; its provisioning is External, the default. No project needs preparing for it. Setting it up:

  1. Apply this Integration beside the Google Cloud one, then run the Cloud Shell block on the engine’s Google Cloud card again: it turns on the Search Console, Site Verification and Indexing APIs in the identity project and makes the company reader, the identity the engine reads the company’s figures as.
  2. Add the company reader’s email, shown on the engine’s Search Console card, to each property as a Restricted user (in Search Console: Settings, Users and permissions, Add user).
  3. Turn agents on in their Seats, each with its sites, and add each agent’s email, shown in its box on the engine’s Agents tab, to those properties at the permission its level needs. The engine checks each agent’s access on every pass, and the agent reads Needs you until it passes.

sites narrows what agents may be given: at most 1000 properties, each as Search Console writes it, a URL prefix with its scheme and trailing slash (https://www.acme.example/) or a domain (sc-domain:acme.example). Unset, an agent may be given any property its identity is added to. approverRefs names the Human Seats an agent’s held acts are routed to first: adding or removing a property, verifying a site and changing its owners. Only an administrator answers one, at a fresh sign-in, and with no approvers every administrator is asked. A Seat there that does not exist, or an Agent seat, holds the document (RefNotFound, AgentSeat), as Crewlet refuses an approver that is not a person’s seat.

For every agent seat that is on Search Console, the engine holds each call to the seat’s level and sites before Google is asked:

spec: # Seat seo-lead
integrations:
searchConsole:
enabled: true
level: Operate # unset is Read
sites: ["sc-domain:acme.example"]

The seat holds its level in every site it names. A seat that is on names at least one site, each within the Integration’s sites where it lists them; the engine’s dry run refuses another, Invalid on the Seat. The permission a person gives the agent’s identity on each property is Google’s own ceiling beside it, and a call needs both. An agent at Administer can also verify a property itself and become its owner, once an administrator approves.

The agents reach Search Console through the engine’s own tools, so it needs no MCPServer. Crewlet’s Search Console page lists every tool, what each level may do, and the permission each needs.

apiVersion: crewlet.ai/v1alpha1
kind: Integration
metadata:
name: google-play
spec:
companyRef: {name: acme}
googlePlay:
apps: ["com.acme.app", "com.acme.reader"] # unset is every app an agent's identity is invited to
developerAccounts: ["5732191048837265001"] # accounts whose users and permissions may be asked about
reportsBuckets: ["pubsite_prod_rev_5732191048837265001"] # each account's monthly reports bucket
oauth: # optional: a client for this sign-in alone, in place of signInClient
clientID: 123456789012-abc123def456.apps.googleusercontent.com
clientSecretRef: {name: google-oauth, key: clientSecret}
approverRefs: # Human Seats an agent's held acts are routed to first
- name: jane

Google Play holds no agent’s credential, and the engine creates nothing there: each agent signs in as its own Google growth identity, a service account the engine makes in the identity project of the company’s Google Cloud Integration, and the engine mints its tokens inside itself at use, so none reaches an agent’s box. Agents reach the Google Play Android Developer API, the Play Developer Reporting API and the monthly reports: reviews and replies, store listings and images, releases and staged rollouts, testers, in-app products and subscriptions, orders and refunds, vitals and the developer account’s users. The Integration needs that Google Cloud Integration, and the engine’s dry run refuses it without one, Invalid on this Integration; its provisioning is External, the default. No project needs preparing for it. Setting it up:

  1. Apply this Integration beside the Google Cloud one, then run the Cloud Shell block on the engine’s Google Cloud card again: it turns on the Google Play Android Developer and Developer Reporting APIs in the identity project and makes the company reader, the identity the engine reads the company’s figures and the monthly reports as.
  2. Invite the company reader’s email, shown on the engine’s Google Play card, in Play Console (Users and permissions) with View app information for all apps, and View financial data for the financial reports.
  3. Turn agents on in their Seats, each with its apps, and set up each agent’s identity in its box on the engine’s Agents tab: invite its email with the permissions its level needs on those apps, or press Add it for me once a Play Console admin has signed in. The engine checks each agent’s access on every pass, and the agent reads Needs you until it passes.

A Play Console admin who signs in on the engine’s dashboard lets the engine add each agent’s identity to its apps itself, in the developer account developerAccounts names that holds each app. The sign-in is made as the Google Cloud Integration’s signInClient, or as oauth where the Integration names one, which overrides it for Google Play alone; with neither, a person invites each identity. The sign-in signs no agent’s call. oauth is optional, its clientSecretRef the Integration’s one credential, and the Google Analytics, AdMob and AdSense Integrations and signInClient may name the same Secret key.

apps narrows what agents may be given: at most 200, each an Android package name (com.acme.app) of at most 150 characters. Unset, an agent may be given any app its identity is invited to. developerAccounts names, by the digits after /developers/ in a Play Console address, at most 20 developer accounts whose users and permissions an agent at Administer may ask to change, and whose account-wide reports an agent that reaches every listed app may read. reportsBuckets names each account’s monthly reports bucket, at most 20, as Play Console’s Download reports page copies it without gs:// (pubsite_prod_rev_ and digits). approverRefs names the Human Seats an agent’s held acts are routed to first: a review reply, a listing or image change, a release that reaches users, a price or offer, a refund, and user, access, key, tax and irreversible changes. Only an administrator answers one, at a fresh sign-in, and with no approvers every administrator is asked. A Seat there that does not exist, or an Agent seat, holds the document (RefNotFound, AgentSeat), as Crewlet refuses an approver that is not a person’s seat.

For every agent seat that is on Google Play, the engine holds each call to the seat’s level and apps before Google is asked:

spec: # Seat mobile-lead
integrations:
googlePlay:
enabled: true
level: Operate # unset is Read
apps: ["com.acme.app"]

The seat holds its level in every app it names. A seat that is on names at least one app, each within the Integration’s apps where it lists them; the engine’s dry run refuses another, Invalid on the Seat. The Play Console permissions a person gives the agent’s identity on each app are Google’s own ceiling beside it, and a call needs both. Building and uploading releases stays with Expo or your pipeline: the agents promote, roll out and halt the version codes they upload.

The agents reach Google Play through the engine’s own tools, so it needs no MCPServer. Crewlet’s Google Play page lists every tool, what each level may do, and the permission each needs.

Slack has no company-wide credential: each agent seat is its own app, in its Seat’s spec.integrations.slack. GitHub’s Integration holds the webhook secret of the company-wide route and an optional organization token, and each agent seat is its own GitHub App, in spec.integrations.github. Supplying credentials shows both.

A Slack agent posts through the slack tool server, slack-mcp-server, on its app’s bot token, which its Seat names a second time for the server; the server offers its posting tool only when told to (Slack’s server). Each Slack Seat also gives the server a channel cache of its own, SLACK_MCP_CHANNELS_CACHE, as a literal path in its spec.mcp: the server otherwise keeps the channels its bot can see in one file per workspace, which every seat on an engine pod shares for a day, and shows each seat the private channels and direct messages of whichever bot wrote it last. GitHub’s tool server is GitHub’s own remote one, which needs nothing in the image; the engine hands the seat’s instance of it the installation token it issues for the seat’s app, narrowed to the seat’s permissions and repos (GitHub’s server).

The engine creates no account for a person. A Human seat is tied to the person’s own account on each surface by its spec.contact, which renders to the role’s contact in Crewlet: agents mention the person there and message them directly, and what the person does there, a post, a comment or a review, reaches the engine as theirs. A Human seat takes one field for each chat surface or tool it is reached on, and needs none: a person who works only through the engine’s dashboard has no account to name, and signs in on their seat through the engine’s identity directory (Bringing people in). A company with a Mattermost or Slack Integration talks there, and the engine warns of a Human seat with no account on it, since a message addressed to it there reaches nobody; the operator records the warning as an EngineWarnings event on the Company. A company with neither talks on Chatlet, the engine’s own chat in its dashboard, where every Human seat is reached without a contact. The fields:

FieldSurfaceThe valueWhere to find it
slackUserIDSlackthe member id, such as U0123ABCDthe person’s Slack profile: More, then Copy member ID
mattermostUsernameMattermostthe username, such as jane.doe, without the @; never the 26-character user idthe person’s Mattermost profile, under Username
atlassianAccountJira and Confluenceon Atlassian Cloud, the account id, such as 557058:f58131cb-b67d-43c7-b30d-6b58d40bd077 or 5b10ac8d82e05b22cc7d4ef5, never the email address; on Data Center, the username, such as jane.doeon Cloud, the accountId of Jira’s GET /rest/api/3/myself called as the person, or of GET /rest/api/3/user/search?query=<email address>; on Data Center, the name of Jira’s GET /rest/api/2/myself, or the username of Confluence’s GET /rest/api/user/current
githubLoginGitHubthe login, such as jane-founderthe person’s profile address, https://github.com/<login>
gitlabUsernameGitLabthe username, without the @the person’s GitLab profile, after the @
apiVersion: crewlet.ai/v1alpha1
kind: Seat
metadata:
name: jane
spec:
companyRef: {name: acme}
kind: Human
displayName: Jane Founder
contact:
mattermostUsername: jane.doe
atlassianAccount: 557058:f58131cb-b67d-43c7-b30d-6b58d40bd077
gitlabUsername: jane-doe

Each value is checked in its platform’s own form when the Seat is written: a Mattermost username in capitals, with an @, one Mattermost reserves (all, channel, matterbot, system), and here, whose mention, like all and channel, notifies the whole channel rather than the person, are refused.

An Atlassian account takes any value of up to 255 characters without whitespace or ${, since a Data Center username may hold almost any character, and it is checked against the deployment the company reaches Jira and Confluence on, which the operator reads as Crewlet does, by one rule for both products. A product connected by cloudID, or by neither, on the sites the Atlassian organization discovers, is on Cloud, and so is one whose url is on a host of Atlassian’s own Clouds: a site under atlassian.net or jira.com, or under Atlassian Government Cloud’s atlassian-us-gov-mod.net, or the API gateway itself, api.atlassian.com or api.atlassian-us-gov-mod.com. Any other url is a Data Center instance, other hosts under atlassian.com among them: no customer’s site is served there.

Where either product is on Cloud, which names a person by account id alone, a value that is no account id, such as an email address, is applied and reported on the Seat as ResolvedRefs=False with the reason NotAnAccountID, naming the products on Cloud. Jira and Confluence share the one value, so a company with one product on Cloud and the other on Data Center reaches the person on only one of them.

Crewlet places a host that is not Atlassian’s own by the deployment a company declares in integrations.atlassian.deployment, which the operator does not render. So Crewlet reads a site of Atlassian Isolated Cloud, which is served at the customer’s own base domain, as a Data Center instance. For such a site:

  • the product needs its webhookSecretRef, which Crewlet requires of a Data Center instance;
  • Jira is spoken to over /rest/api/2, which Jira Cloud serves too, rather than /rest/api/3;
  • Confluence’s webhook is registered as on Data Center, one hook for every event, signed with that secret. Confluence Cloud signs no delivery and names no event in one, so no Confluence event reaches the company. Give Confluence’s url with its /wiki, which Crewlet adds only to a site on a host it recognises;
  • a person’s atlassianAccount is not reported as NotAnAccountID, although the site names people by account id alone.

One account belongs to one person: a Seat claiming an account another Seat of the company claims reports Accepted=False with the reason Conflict, naming the other, and holds the company’s document until one of them gives it up. GitHub logins, GitLab usernames and Mattermost usernames are compared without case, as those platforms compare them; Slack member ids and Atlassian accounts exactly.

Humans in the Org Chart describes what Crewlet does with each account.