CetiAdmin
CetiAdmin is a Hermes Agent that the operator installs to operate the
platform. It diagnoses the platform and manages Agents with kubectl and
helm. CetiAdmin uses its own Kubernetes ServiceAccount, its own AI Gateway
key, and its own monthly budget.
The operator chart and make deploy enable CetiAdmin by default
(cetiadmin.enabled: true). An installation stops with an error until you
supply the inputs of CetiAdmin or disable it.
A standard Agent is an Agent that does not select a policy-bound Team or a Sandbox. A Sandbox Agent runs in a Sandbox of its policy-bound Team. Refer to Policy-bound Teams.
Warning: CetiAdmin can read the Secrets of every standard Agent and run commands in its Pods. Its owner can tell CetiAdmin to use this access. Before you supply the inputs of CetiAdmin, examine its access and select its owner. If the deployment does not need CetiAdmin, disable it.
How CetiAdmin runs
- The operator creates an Agent and a Team with the name in
cetiadmin.instanceName,cetiadminby default. The Agent runs in the namespacecetirun-<instanceName>. - The owner is the user in
cetiadmin.owner. The owner opens CetiAdmin in the Portal in the same way as the other Agents of the owner. Agent UI signs the owner in to the Hermes Webapp. If the owner opens the Webapp address directly, the Webapp asks for a username and a password. Use the usernamecetirunand the Hermes API / Webapp Key from the Overview tab. Refer to Open a Hermes Agent. - The deployment configures CetiAdmin. In the Portal, the owner can restart, suspend, and resume CetiAdmin, but cannot edit, upgrade, or delete it. The Admin → Agents pages do not edit or delete it either. Admission refuses these changes also for a cluster administrator.
- To change the model of CetiAdmin, set
cetiadmin.model.defaultand runmake deployagain. CetiAdmin then restarts once. To remove CetiAdmin, disable it. - CetiAdmin does not count toward the limit of Agents of its owner
(
features.maxInstancesPerUserof the Portal). - CetiAdmin uses the model in
cetiadmin.model.default,autoby default. Its AI Gateway key starts with the budget incetiadmin.model.initialMonthlyBudgetUSD. GitHub Copilot is disabled by default (cetiadmin.model.githubCopilot: false). - The built-in
cetiadminskill gives the model the operations procedures. - CetiAdmin manages all standard Agents of this operator. There is no Agent or Team allowlist.
- The optional monitor (
cetiadmin.monitor.enabled) runs scheduled health checks. It keeps the results in CetiAdmin, or it sends them to one Slack channel.cetiadmin.monitor.modelcan run it on another model thanmodel.default; see Model use and budget.
The cetiadmin Team supplies only context. Users can select this Team for
their own Agents, but the Team gives these Agents no CetiAdmin access.
Model use and budget
CetiAdmin uses many tokens. Each request carries the cetiadmin skill, its
references, and the output of the earlier commands. These numbers come from one
test installation; yours depend on the number of Agents and on what CetiAdmin
finds:
| Use | Requests | Input tokens |
|---|---|---|
| One interactive request | 1 | About 47,000 |
| One monitor run | 12 to 21 | About 0.8 to 1.6 million |
| One monitor run that finds no change | 14 | About 0.9 million |
- With the
autorouter asmodel.default, every request of a monitor run went to theREASONINGtier, the most expensive tier of that installation. The classifier of the router took the long monitor prompt for a reasoning task. Setcetiadmin.monitor.modelto a fixed model, and the monitor runs on that model. Interactive work keepsmodel.default. - The default schedule,
every 30m, is 48 runs a day, or about 48 million input tokens. Choose the schedule and the budget together. For example,every 6his 4 runs a day. cetiadmin.model.initialMonthlyBudgetUSDis the monthly budget of the AI Gateway key of CetiAdmin when the operator creates the key. A platform administrator can change it later in the AI Gateway console; refer to Budgets. When the key reaches its budget, each model request of CetiAdmin fails, also the requests of the monitor. The Portal shows the spend and the budget of the key, and Budget reached; refer to Read the spend.
Access
The operator gives the CetiAdmin ServiceAccount these Kubernetes permissions:
| Scope | Permissions |
|---|---|
| Namespace of each standard Agent | Read all Secrets (get, list, watch). Run kubectl exec in the Agent Pods. Delete Pods to restart them. Create and change Secrets and ConfigMaps. Change Services, StatefulSets, and Deployments. Write Events. Expand PVCs. Read Pod logs and the diagnostic resources. |
| Namespace of each Sandbox Agent | Read Pod logs and the diagnostic resources. Write Events. Expand PVCs. No Secret access and no kubectl exec. |
Namespaces in cetiadmin.platformReadNamespaces | Read Pod logs and the diagnostic resources. |
| Cluster | Read the cluster-scoped diagnostic resources. Create, update, and patch Agent resources. |
The diagnostic resources are an explicit list of resource types, with get,
list, and watch. Examples are Pods, Events, ConfigMaps, Nodes, Namespaces,
RBAC objects, CustomResourceDefinitions, admission configuration, and network,
Istio, storage, and CetiRun resources. The list does not include Secrets.
Kubernetes RBAC and the CetiAdmin admission webhooks enforce these
permissions. The admission webhooks check writes and kubectl exec, for
example the target Pod and the fields that CetiAdmin can change. They do not
check reads. CetiAdmin gets no write access to itself, to the platform
components, to the credential stores, or to a retained migration source.
CetiAdmin can create an Agent only for an owner whom the platform already
knows. A live Agent of that owner must have both owner annotations,
agentidentity.cetirun.microsoft.com/owner-tenant-id and
agentidentity.cetirun.microsoft.com/owner-object-id. The new Agent copies
these annotations, the alias, and the email of that Agent. It also needs a
Team other than the CetiAdmin Team. The Portal records the owner annotations
when it creates an Agent for a verified owner. Older Agents can lack them.
As a result, CetiAdmin can read these Secrets of each standard Agent:
- The AI Gateway key (
ai-gateway-virtual-key) - The native authentication Secret, for example
gateway-token - The GitHub Copilot token of the owner (
github-copilot-token)
With kubectl exec, CetiAdmin can also read the files in the HOME of a
standard Agent, for example its sessions and its private memory. The data that
CetiAdmin reads can go into its model context. The AI Gateway sends this
context to the model provider. By default, the AI Gateway also keeps the request
in its spend logs. Refer to
Data collection.
Sources: permissions, operator values, and the cetiadmin skill.
Exec exception
The agent chart of each Agent renders a policy that denies kubectl exec
in the Agent namespace. Refer to
Kubernetes exec restriction. The
chart template has no fixed exception. When CetiAdmin is enabled, the operator
adds a match condition at runtime to the policy of each standard Agent. This
condition exempts the CetiAdmin ServiceAccount. The operator removes the
condition when CetiAdmin loses access to the Agent, for example when you
disable CetiAdmin.
Confirmation tiers and rate limits
The cetiadmin skill sorts the operations of the model into tiers:
- No confirmation: health checks, bounded logs, restarts of eligible Pods of standard Agents, native authentication rotation, and recovery of failed Helm releases.
- Administrator confirmation: batch creation, planned version upgrades, rollback without a fault, changes to resource limits, and PVC expansion.
- Out of scope: changes to RBAC, policies, identity, platform configuration, and CetiAdmin itself, and the deletion of Agents or data. The skill leaves these changes to another authorized principal.
The skill also sets rate limits, for example 30 Kubernetes API writes and 10
kubectl exec calls each minute.
Warning: These tiers and rate limits are instructions to the model. They are not an approval service, and the platform does not enforce them. Only Kubernetes RBAC and admission limit what CetiAdmin can do. Give the owner role only to a person who is permitted to have the access of CetiAdmin.
Configure CetiAdmin
With make deploy, configure CetiAdmin under
platform.values.cetirun-operator.cetiadmin in the environment file. When
CetiAdmin is enabled, its owner, its initial monthly budget, and its Kubernetes
API audience and addresses are necessary.
CetiAdmin values gives the format and
the default of each value. make deploy also examines these rules:
owner.aliasis equal toownerAlias.owner.tenantIDis equal toidentity.tenantId.
For a complete example, the monitor, Slack delivery, and the migration from an older administration Agent, refer to Configure CetiAdmin.
If you install the operator chart without make deploy, an enabled CetiAdmin
also needs the admission server, even when sandboxAdmission.enabled is
false. CetiAdmin values lists the
inputs of the admission server.
Owner access also needs Portal ID-token verification. For separate chart
installations, configure the Portal’s agentIdentity.tenantId and
agentIdentity.portalClientId, even if Agent Identity and Agent Tools are off.
The tenant must match cetiadmin.owner.tenantID. Opening the Agent UI also
requires the Portal’s istio.internalAuthMTLS and the separate Istio chart’s
portalAuth.mtls configuration. make deploy supplies these settings; the
platform chart rejects an incompatible bundled CetiAdmin/Portal configuration.
The API audience is cluster-specific. Replace the example placeholder with an audience accepted by the target API server. Neither its DNS address nor an OIDC issuer URL is a portable default. The configuration and verification steps are in the platform configuration example.
Disable CetiAdmin
For a new installation, disable CetiAdmin in the environment file before the
first make deploy:
platform:
values:
cetirun-operator:
cetiadmin:
enabled: false
The operator then does not create the CetiAdmin Agent.
For an installation that has CetiAdmin, do these steps:
In the environment file, set
platform.values.cetirun-operator.cetiadmin.enabledtofalse. Keep the other CetiAdmin fields.Examine the plan. This command does not connect to the cluster:
make deploy-plan DEPLOY_CONFIG=/absolute/path/environment.yamlThe plan shows
"enabled": falsein itscetiadminsection.Run the deployment as an admission administrator. While the installation has CetiAdmin, only admission administrators can change its configuration, as Before you upgrade describes. Connected, mutating:
make deploy DEPLOY_CONFIG=/absolute/path/environment.yaml
The operator removes the access of CetiAdmin and stops its Agent. It keeps the
Agent, its HOME, and its installation records, so that you can enable
CetiAdmin again. The Agent reports Ready=False with reason CetiAdminDisabled.
After shutdown is confirmed, the Agent and installation controllers stop
periodic retries. Relevant resource changes can still trigger a check, and
Helm’s check and stop hooks still verify safe shutdown during upgrades and
removal. Before you remove the operator, disable CetiAdmin. Refer to
Disable CetiAdmin before removing the Operator.
To install the operator chart directly without CetiAdmin, set
cetiadmin.enabled: false.