Two modes, one artifact
Agent key present → managed. Supply the key either as theVS_AGENT_KEY
environment variable, or in the engine config file by reference:
ventstream.yaml. The engine connects out to
the Cloud gateway, identifies itself with the key, and from then on fetches the
selected configuration revision for its deployment, reports health, and
executes operations.
No key → standalone. The engine reads its local ventstream.yaml and never
opens a connection to the platform. This is an invariant, not a default: no
telemetry, no version checks, nothing.
The chain of authority
The key identifies a deployment; the deployment belongs to a pipeline; the pipeline has a selected configuration revision authored withventstreamctl.
The key answers “who am I”; the control plane answers “then this is your
config”. Your data never transits the platform in either mode.
Mode rules
- A managed key alongside local pipeline sections (
source,sink,specs) is a hard error at startup that names exactly what to remove. Config ownership is never ambiguous. - Key set but the control plane unreachable, or the key revoked: the engine exits nonzero with the reason. It never falls back to local configuration.
- Key absent: no network path to the platform exists in any code path.
Keys, not enrollment tokens
Agent keys (vsa1. prefix) are minted per deployment, shown once, and
revocable at any time: