Build-time feature defaults
Last updated: 2026-11-06T01:59:59-03:00 (UTC-3)
Edit internal/config/edition/defaults.json before building a distribution. This versioned file selects boolean defaults from the existing flag catalog; it does not grant an administrative permission or define an enterprise license.
{"version":1,"defaults":{"docs_site":false}}The defaults object is deliberately sparse. An omitted flag preserves both its existing compiled fallback and its existing shipped profile value. The unmodified empty object preserves today’s behavior. Explicit selections change the compiled fallback and the generated default profile. Unknown flags, non-booleans, duplicate members, unsupported versions and missing prerequisites fail the build tools. Prerequisites involving storage, secrets and model policy are still checked at gateway startup; the builder never invents them.
Run go run ./cmd/edition -catalog to list every known flag and its compiled fallback. -template prints an empty valid manifest; -check validates the manifest and the bundled profile. The catalog fallback differs from an explicit value in the shipped profile.
Matching distribution artifacts
Section titled “Matching distribution artifacts”scripts/build-gateway.sh /absolute/new/output builds the executable, manifest and matching default profiles. The output includes config/gateway.yaml, config/edition-defaults.json, a Helm chart directory, the Compose file and Kubernetes resources. Build the console and documentation before compiling Go; the script does this. Use the profiles from that output directory for this build. A source checkout’s old YAML is an explicit configuration and may intentionally override the compiled defaults.
The Docker image and NPX package generate their shipped profile from the same embedded manifest during packaging. The generated Compose profile uses a prebuilt image: set its existing image selector to the image built with this edition. It does not contain a checkout or build context; the source Compose file retains its developer build option. Helm, Compose and Kubernetes deployments use the matching generated files; edit those or supply an explicit operator profile as needed. Changing an image alone does not rewrite an external ConfigMap or an existing Helm value.
For an explicit native configuration, run GATEWAY_CONFIG=/absolute/output/config/gateway.yaml /absolute/output/gateway. Explicit YAML values and versioned console overrides retain their normal precedence. Removing a console override restores that build’s selected YAML or compiled fallback. Selection changes require a new build and deployment; they do not change an already running instance.
gateway edition prints the embedded versioned manifest without reading environment variables, resolving credentials or starting services. Compare it with the packaged edition-defaults.json when identifying a build. No provider credentials belong in this file.
Offline bundle boundary
Section titled “Offline bundle boundary”The fixed offline bootstrap remains an explicit, trusted smoke-test profile, independent of product defaults. Its trusted hash is not replaced by a value supplied by the bundle. The bundle additionally carries config/defaults.yaml and config/edition-defaults.json in its complete integrity map. Preparation verifies that the explicitly approved local image reports the same edition manifest, using a short utility container with no network or volumes and exact cleanup. These advisory default artifacts do not replace the fixed bootstrap or certify a new deployment channel.
Commercial classification is separate
Section titled “Commercial classification is separate”The optional vendor catalog internal/config/edition/enterprise.json classifies feature administration independently of boolean defaults. It ships empty; choosing the free/enterprise cutoff is deferred. Licensing and trial behavior, permission scope, recovery exceptions and validation are described in license activation. Do not use operational defaults as commercial entitlements.