Overbear.ing
In this guide

Environments and integrations

Keep each environment intentional

Separate staging from production, connect applications through declared contracts, and switch fleet configuration without confusing it with code promotion or data recovery.

Independent owner & app operatorSource-reviewed guideVerify on your host

This guide follows the reviewed Den source. It describes supported controls and their limits, not a claim that your host has this version or that these operations have been rehearsed here. Check the installed build and current evidence before making changes.

Choose the right kind of change

Environment
A Production or Staging deployment of one application, with its own branch, registration, operations and data.
Shared values
Owner-managed values that applications opt into explicitly, within the same environment namespace.
Integration
A declared provider/consumer relationship checked against the repository's Compose and manifest contract.
Runtime profile
An encrypted snapshot of configuration for the entire active fleet. It switches settings, not repository identity or application data.

An encrypted recovery profile is a portable export of registrations and protected settings, with its own recovery key. An installation access mode defines local/Cloudflare/HTTPS access to Den itself. Neither is a deployment environment or runtime profile.

Do not use runtime profiles as a substitute for staging branches, a data backup, or a way to publish a second production route. Decide which of these scopes you intend before saving anything.

Create an isolated staging deployment

  1. Create the intended staging branch in GitHub. In the existing application's detail page choose Add environment, verify that the sibling Staging environment is selected and review repository, branch, slug and Compose selection. Branches must differ within an application.
  2. Complete repository access. A private deployment needs its own read-only deploy key. The wizard reuses repository identity and Compose selection, but does not copy secrets, URLs, webhook credentials or application data.
  3. Configure staging values, distinct host ports, distinct public and health URLs, separate database credentials and staging-specific external resources. Do not point staging writes at a production database.
  4. Run a fresh deployment check, resolve findings, deploy and verify services, health and behavior in staging.
  5. If using automatic deployment, configure that environment's own signed GitHub webhook and matching branch. Keep production automation and credentials separate.

Each environment keeps independent operations, known-good revisions, rollback, backups and automatic-deployment settings. Archived environments remain reserved; restore the existing registration or follow the explicit forget procedure before recreating one. Do not invent a second registration merely to evade a reservation.

Shared host does not mean interchangeable resources. Use environment-scoped network names, ports, image names, databases, callback URLs and external credentials. Review the actual resulting Compose model, not just a staging label.

Check networks and image isolation

For declared cross-application traffic, Compose should use the supplied INTEGRATION_NETWORK_NAME rather than a hard-coded production bridge. Staging receives the installation's integration-network name with a -staging suffix. Arbitrary host networks or hard-coded production integration networks are rejected in staging.

Providers and consumers resolve within the same deployment environment. Network aliases must be explicit and globally unique for their intended scope. An alias or a container name alone is not evidence that the declared provider is compatible.

For buildable services, omit an explicit image name so Compose creates a project-scoped one, or use the deployment's am-<slug>- prefix for staging image names. A staging build must not replace a production image tag on the same host.

Explicitly selected managed PostgreSQL and Seq can use shared infrastructure. PostgreSQL roles and databases still remain deployment-scoped. External URLs and credentials require your own staging isolation; Den cannot infer that a third-party account is safe for testing.

Promote code through GitHub

  1. Deploy the staging branch and test the intended change. Record the tested revision, services, health and relevant application behavior.
  2. Choose Review promotion in GitHub to compare staging with production and open a pull request. Review the diff, configuration needs and migration compatibility in GitHub.
  3. Merge using your repository's normal approval process. Den does not merge automatically or publish a required GitHub check for this workflow.
  4. When enabled, the matching production webhook builds and deploys the production branch afresh. Otherwise deploy production deliberately.
  5. Verify the production operation, resulting revision, services, health and application behavior independently of the staging result.

This is source promotion, not immutable-image promotion. Data and database migrations are not copied between environments or reversed by code rollback. Plan production migrations and recovery separately; a passing staging deployment is not production acceptance.

Manage explicit shared references

As the independent owner, open Shared values and choose Production or Staging before adding or changing a value. Use a clear allowed name, set the protected value and save. Raw sources are write-only; do not expect to reveal a secret later. Den may display an effective value only when every connected field is safe and non-secret. Contextual results can differ between consumers.

Applications opt in from their variable configuration, using a full or embedded reference such as ${{shared.ATTIC_ORIGIN}}/v1. An application does not receive every shared value. Missing references become setup findings; staging has no fallback to production.

  1. Review the value's environment and every referencing app before replacing it.
  2. Save the change and inspect which applications are marked for Deploy latest version.
  3. Refresh readiness and deploy affected consumers in an order suitable for the dependency change.
  4. Verify the consumers' actual behavior. A saved reference is not proof the new value is in running containers.

Remove application references before deleting a shared value. Both namespaces are included in encrypted recovery profiles; existing destination values with the same name take precedence during profile import. Review collisions rather than assuming an import overwrote the destination.

The storage prefix DEN_STAGING__ is reserved; staging shared names are limited to 116 characters. Keep names semantic and never encode secret values in names.

Review and synchronize integrations

As the independent owner, open Integrations to review the current plan. Den checks repository declarations against Compose services, published ports, network aliases and health checks before proposing changes. Providers and consumers are selected within the same environment.

  1. Read every finding and the proposed app/field/value change. Missing or ambiguous providers and invalid declarations need correction before synchronization.
  2. Confirm public browser origins versus private server origins. Review derived browser-origin allowlists and client registries as well as URLs. Ensure they include only the declared consumers in the intended environment; do not fix a failed check with a broad wildcard.
  3. Browser code cannot use a Docker-only network alias, and a public URL is not automatically the best private service endpoint.
  4. Use Synchronize for the reviewed valid plan. It is tied to the plan fingerprint; if evidence changes, refresh and review the new plan rather than forcing the old one.
  5. Inspect the returned updated field count and affected apps, then deploy those apps to apply the values to containers.
  6. Verify actual provider/consumer requests, browser origin policy and authentication. A synchronized field does not establish end-to-end communication.

Only visible fields declared as binding-derived or Den-derived are changed here. Secret fields and user-owned values are excluded. Synchronization does not manufacture credentials, repair application code or grant access to an external account.

Keep integration logging distinct from Den audit. If a provider is unavailable, inspect its deployment and contract before rotating credentials or changing all consumers.

Capture and validate a runtime profile

As the independent owner, open Runtime profiles. Capture the current complete active fleet with a meaningful name and description. Capture does not stop applications or copy data. The encrypted payload stays protected and is not returned to the browser.

A profile includes shared and profile-scoped application values, managed dependencies, storage mappings, cached endpoints, public/health settings, timeouts and automatic-deployment flags. Installation-scoped settings, such as local host-port choices and integration-network names, remain with the installation. Repository identity, deploy keys and application data are excluded.

Mark this snapshot active is appropriate only when it represents the configuration already in use and routing permits it. When installation routes exist, capture inactive and use the reviewed activation path. Cloning a profile does not copy Cloudflare installation credentials or publish another route.

Use Clone to make a named configuration copy, then validate it independently. Delete only an inactive profile that you no longer need, after reviewing the confirmation. Deletion removes that saved configuration snapshot, not running apps or their data; keep an independent recovery export for valuable settings.

Before activation, select Validate. It requires the same active fleet, no queued, running or uncertain work, stopped apps, unique endpoints/public URLs, valid shared references and the necessary webhook secrets for any enabled automatic deployment. Read every finding; a snapshot from a different fleet is not interchangeable.

Switch the whole fleet deliberately

  1. Protect valuable data and record the current profile. Review the saved profile's automatic-deployment flags as well as current automation and pending work. Wait for active operations. Disabling current automation does not change the captured profile.
  2. Where Cloudflare mappings exist, unpublish affected routes and reconcile partial outcomes first. Then stop every active application, verify its state and release the exact stopped-app bindings through their reviewed procedure. Den retains networks and old rollback state; it does not prune them.
  3. Select Review routing on the target profile. Inspect hostnames, old/target profile IDs, bindings, blockers and expiry. Complete any required exact-effects acknowledgment. A stale review must be refreshed.
  4. Validate and activate the intended profile. The server rechecks fleet and routing evidence; activation switches protected configuration with rollback safeguards and reruns preflight.
  5. Review the resulting profile and findings. Activation itself performs no lifecycle operation, but it restores captured automatic-deployment flags. Retained webhook intent may dispatch after automation becomes enabled, so do not assume the fleet will stay stopped. Review that risk before activating; deliberate start/deploy is otherwise the follow-up. Deploy the affected applications, verify services and health, then prepare and publish desired routes separately.

Activation itself does not start applications or republish hostnames; restored automation can dispatch retained intent. Hostnames stay denied until separately published. Profile rollback safeguards cover configuration changes, not application data migration or cloud-route activation.

If activation fails or is held, read the exact result and current active profile before trying again. Do not remove retained binding files, restore partial host state or restart old connectors to escape a guard.

Verify the resulting environment

Environment acceptance checklist

  • Production and staging branches, ports, images, credentials, URLs and data are intentionally separated.
  • Shared references and integration providers resolve in the intended namespace.
  • The saved plan/profile and the running configuration are distinguished; affected apps have been deployed deliberately.
  • Provider/consumer calls and browser-origin behavior have been checked, not inferred from a synchronized label.
  • Profile routing remains denied until explicitly prepared and published.
  • Application data, backup policies and automation are in their intended final state.

Use the operation guide for deployment evidence and code rollback. Configuration profiles are useful coordination tools, but they do not replace data recovery or host backups.

Configuration saved. Running state still needs verification.

Check every affected deployment and consumer after applying configuration. A profile, shared value or synchronized binding is not a deployment, a data copy or a published route.

Previous guideNext: Routing & CloudflareBack to top