Agent policies, secrets, and custom probes
This page covers three related screens under Fleet: Agent Policies, Secret Injections, and Custom Probes. They’re grouped together in the app’s navigation, but each controls something different - read the headings below rather than assuming they’re variations on one setting.
Agent policies
Section titled “Agent policies”Fleet → Agent Policies (/gravity/settings/agent-policies) controls how much
autonomy automated and AI-driven actions are given within your organization. This is
different from the per-agent capability grants described elsewhere in this section
(those control what a specific fleet agent is allowed to be asked to do at all - patch
scanning, remote exec, and so on); agent policies control how much an automated system
is allowed to act on its own once something is being considered.
Each policy has:
- Scope - organization-wide, a specific environment (like
prodordev), or a specific action-type pattern - Autonomy level:
- L0 - Observe Only: read-only, no writes
- L1 - Suggest Only: generates recommendations, a human executes them
- L2 - Execute with Approval: can act, but requires human approval first
- L3 - Auto-Execute: acts without approval, within the policy’s other limits - the app shows an explicit warning when you choose this level
- Freeze windows - recurring time windows (with days and a timezone) during which automated actions are always blocked, regardless of level, useful for a change freeze or a standing weekend blackout
- Max blast radius - the largest scope a single automated action is allowed to affect: a single resource, a service tier, an availability zone, or a region
- Blocked / allowed action types - an explicit list on top of the level
Safe defaults
Section titled “Safe defaults”Start new policies at L0 or L1 until you’ve reviewed what they’d actually do in practice. If you do use L2 or L3, pair it with a tight blast radius and at least one freeze window, rather than leaving it unconstrained.
Automated cloud provisioning checks these policies before an action proceeds.
Secret injections
Section titled “Secret injections”Fleet → Secret Injections (/gravity/fleet/secret-injections) tracks delivery of
secrets from your configured secret store to a service running on one of your fleet
agents. Secret values are never stored in Sencai - only a reference to where the
value lives in your secret store.
- Click Add Injection.
- Give it a Secret Name (a label, not the value), a Secret Reference (the path in your secret store holding the actual secret), the Target Service, and a delivery method: environment variable, file, or Kubernetes Secret.
- Optionally scope it to one cloud instance.
Revoking an injection marks it as revoked; the agent stops delivering it on its next cycle.
Custom probes
Section titled “Custom probes”Fleet → Custom Probes (/gravity/fleet/probes) lets you define a check - an
allow-listed binary plus arguments - that runs as root, on every enrolled agent in
your organization, on a schedule you choose.
Only a fixed set of binaries can be used: docker, kubectl, systemctl,
journalctl, cat (restricted to /etc/os-release), dpkg-query, and rpm. The exact
command a probe will run is always shown before you save it - never hidden behind a
label.
- Click New probe.
- Choose a binary and, if applicable, arguments.
- Set a timeout and how often it runs.
- Save.
Results - exit code, output, and when each run was collected - are listed per agent under Recent results, filterable by probe.
Safe defaults
Section titled “Safe defaults”Prefer genuinely read-only commands, and start with a longer interval - a probe with a mutating command run fleet-wide is closer to a scheduled runbook than an inspection check. A probe failing or timing out on one host has no effect on any other host it runs on.
What’s next
Section titled “What’s next”- Fleet agent - the capability model these policies sit alongside
- Remote execution - commands and runbooks, gated the same way
- Agent releases - cohorts and staged rollouts
- AI governance - the related EU AI Act oversight controls