Component ยท Shared or other
Agent Management SaaS flags per environment
What it is
Agent Management feature flags are Flux substitution variables. Each environment branch sets its own values, so the same release can behave differently in dev, stage and the live environments. The flags switch Agent Manager features on or off, such as agent identity handling, gateway provisioning, billing checks and metering. The names are listed here. The settings of each environment are read from its own branch.
They are light switches on a panel in each building. The wiring is the same everywhere, but each building's panel can be set differently.
Why it exists
Some features are not ready for every environment at once. A per-environment switch lets a feature reach one environment first, and it lets a team turn something off without a code change.
How it works
- Non-secret values are written under postBuild.substitute in each environment branch's Flux Kustomizations. Credentials come from a Vault-backed Secret instead, never from Git.
- Each manifest reads a Flux variable as ${name:=default}, so an environment that does not set it uses the default written next to the variable in the component's manifest. The capital-letter names below are the service settings that these variables feed. The Flux variable is usually a lowercase name, for example agent_manager_identity_management_mode feeds IDENTITY_MANAGEMENT_MODE. The older manifests that stage and prod are pinned to do not contain some of these variables at all, such as the provisioner and the console backend-for-frontend.
- Identity and builds: IDENTITY_MANAGEMENT_MODE chooses how agent identities are managed. AMP_BUILD_CLIENT_ENABLED makes builds publish their workload through Agent Manager with a short-lived organization token.
- Provisioning: FIRST_LOGIN_ENABLED lets the provisioner start an organization's setup at first sign-in. AMP_GATEWAY_ORCHESTRATED hands the Agent Manager gateway to the provisioner. The provisioner and metering also have replica counts that default to 0.
- Organization and billing: ORG_LIFECYCLE_CONSUMER_ENABLED lets the service react to organization suspend and activate events. SUBSCRIPTION_GUARD_ENABLED rejects new work while an organization's subscription is suspended. ENTITLEMENT_CHECK_ENABLED runs billing quota checks when agents are created.
- Other: am_console_gateway_bff turns on the console's backend-for-frontend session handling at the gateway, and METERING_ENABLED controls the usage metering service.
Key facts
- Set in
- Flux Kustomizations on each environment branch
- Defaults in
- the manifest of each component (release-binding.yaml, or deployment.yaml for metering)
- Secrets
- Vault-backed, never in Git
- Service settings
- IDENTITY_MANAGEMENT_MODE, AMP_BUILD_CLIENT_ENABLED, FIRST_LOGIN_ENABLED, AMP_GATEWAY_ORCHESTRATED
- More service settings
- ORG_LIFECYCLE_CONSUMER_ENABLED, SUBSCRIPTION_GUARD_ENABLED, ENTITLEMENT_CHECK_ENABLED, METERING_ENABLED
- Namespace
- env branches
Talks to (1)
- depends on agent-manager-service (SaaS deployment) env flags change AMS behaviour per environmentFlux postBuild substitution
Inside and around
Part of: Choreo Cloud environment: dev, Choreo Cloud environment: stage, Choreo Cloud environment: prod, Choreo Cloud environment: prod-eu, Choreo Cloud environment: stage-v2, Choreo Cloud environment: prod-v2, Choreo Cloud environment: prod-v2-eu