Forgeplane Docker Compose validation
Use Docker Compose to validate the packaged local stack. The default path checks the coordinator, database initialization, dependencies, and control-plane access; the opt-in OpenTofu profile exercises a real queue-to-worker run. Use the Helm chart for a durable Kubernetes installation.
The managed broker contract is greenfield-only. Existing shared-auth deployments remain unrepaired and unsupported and require recreation, not an in-place migration or compatibility fallback. Obtain a separately reviewed data and recovery plan before recreation; these instructions do not authorize deleting existing data.
The disposable native Compose/browser journey with bundled NATS 2.15.1 passed all seven lifecycle gates, a real signed, persisted and audited OpenTofu Run, native job-ACK checks, and human-session CSRF rotation checks. Full local Agent CI also passed; standard release packaging remains pending. This is bounded local evidence, not arbitrary production support or unknown-guard recovery; packaging or a control-plane smoke check alone does not establish repaired isolation.
Validate the control plane
Section titled “Validate the control plane”Build the packaged images, then configure a fresh deployment only:
make docker-build
# Replace these placeholders with deployment-measured durations.export FORGEPLANE_BROKER_RECONCILE_INTERVAL='<measured-pacing-duration>'export FORGEPLANE_BROKER_OPERATION_TIMEOUT='<measured-operation-tripwire-duration>'export FORGEPLANE_BROKER_PUBLISHER_ID='local-compose-publisher'export FORGEPLANE_BROKER_ACQUISITION_ID="$(python3 -c 'import uuid; print(uuid.uuid4())')"export FORGEPLANE_BROKER_IMAGE='<built-forgeplane-broker-image-reference>'
make docker-upmake deploy-testRoot Compose requires all four FORGEPLANE_BROKER_* pacing and publisher inputs above; it has no production duration defaults. Python’s standard library generates a fresh nonzero acquisition UUID here only for a new deployment. Retain the publisher/acquisition pair with that actual deployment, use the same pair for its peers, and reuse it on restart. Generating a new UUID is not a safe publisher takeover procedure.
make docker-build creates local release-style binaries and images. Select the integrated forgeplane-broker image reference emitted by the reviewed build: it contains exact NATS 2.15.1 and the trusted broker-reconciler. Plain NATS is not a substitute. make docker-up generates local TLS material and a private broker base without overwriting installed credentials, then starts PostgreSQL, the managed broker, the coordinator, and the default worker.
make deploy-test is a disposable harness that checks coordinator health, readiness, and authenticated API access. It and make quickstart-smoke supply 100ms reconcile pacing and a 10s operation tripwire only when absent, based on measured subsecond native component applications and the Compose default/peer/tool qualification settings. They similarly default the publisher to COMPOSE_PROJECT_NAME and generate a real nonzero acquisition UUID only when absent, retaining the pair throughout the process and preserving explicit inputs. These are disposable qualification settings, not root Compose or production defaults. An operation-timeout overrun fails; diagnose the observed operation before revising a measured tripwire.
This path does not prove an IaC run. The default/production worker image bundles no Terraform, OpenTofu, or Ansible binaries and advertises [].
The broker wrapper owns trusted startup, durable policy publication, native reload and application reporting. Registration releases each worker’s unique broker credential and scheduling readiness only after verified application; lifecycle fencing must cover every serving node. See Broker identity and lifecycle for pending operations and the separate IaC execution boundary.
Run the opt-in OpenTofu profile
Section titled “Run the opt-in OpenTofu profile”The repository provides a separate Compose worker for real tool execution:
make docker-up-opentofuThat profile uses the opt-in Dockerfile.worker-opentofu image, which verifies and installs OpenTofu 1.10.6 and advertises only the canonical tofu capability. It does not modify the default worker image or production Helm configuration.
For a bounded, self-cleaning acceptance test, run:
make quickstart-smokeThe smoke path builds the opt-in tool worker, serves the committed provider-free fixture over local TLS, queues a plan through the public registry API, waits up to two minutes for success, verifies a 0 add / 0 change / 0 destroy result, and removes its containers, volumes, and generated fixture data.
Run the opt-in Ansible profile
Section titled “Run the opt-in Ansible profile”To validate Ansible playbook execution with Compose, run the dedicated Ansible worker profile:
docker compose \ -f docker-compose.yml \ -f docker-compose.ansible.yml \ --profile ansible \ up -d --build worker-ansibleThis builds Dockerfile.worker-ansible with its pinned Python base image and ansible-core 2.20.8, advertising the ansible capability.
Understand the image contract
Section titled “Understand the image contract”| Image | Role | Bundled IaC capabilities |
|---|---|---|
| Coordinator | HTTP API, UI, scheduler, persistence, drift, and worker control plane | Not applicable; it does not execute IaC |
| Default worker | Execution runtime and built-in executor code | None; advertises [] |
| Local OpenTofu worker | Opt-in execution image for repository validation | OpenTofu 1.10.6; advertises only tofu |
| Local Ansible worker | Opt-in execution image for playbook validation | ansible-core 2.20.8 and OpenSSH; advertises ansible |
| Migrator | Initializes the database schema | None |
| Integrated broker | Exact NATS 2.15.1 with trusted reconciliation, startup, and application reporting |
None |
Every tool-enabled image must bundle and verify the binary, then advertise only the capabilities that image can execute. Pin images by immutable release or digest outside local development.
Keep execution isolated
Section titled “Keep execution isolated”The coordinator is the control plane. Workers execute module code and provider processes. Keep their identities and writable filesystems separate.
The local worker container starts a root supervisor with a tightly limited capability set: CHOWN, DAC_OVERRIDE, FOWNER, SETUID, and SETGID. The supervisor uses those capabilities to hand workspace ownership to the configured isolated IaC UID/GID and to materialize or clean private run files. Tool processes, including ansible-playbook, run as that isolated identity rather than as root. no-new-privileges remains enabled, and worker-only writable mounts are constrained to temporary files and isolated workspaces. Do not mount those paths or provider credentials into the coordinator.
Compose credentials, certificates, and storage are local test material. They are not a production secret-management or backup design.
Compose publishes every port on 127.0.0.1 only, and the coordinator requires a worker client certificate on gRPC. Do not expose the stack beyond the host.
Plugin deployment settings
Section titled “Plugin deployment settings”The optional plugin deployment overlay uses FORGEPLANE_PLUGINS_CONFIG as its
host file locator and FORGEPLANE_PLUGINS_FILE inside setup/coordinators. Supply
the coordinator-only private settings root explicitly. See settings and scoped
references for ownership/modes, immutable
mounts, review, maintenance restart and reference recovery. No credential bytes
belong in deployment JSON.