In this guide
Reference and release notes
Know the contract. Check the version.
A practical reference for Den's roles, repository contract, configuration boundaries, release evidence and independently approved self-updates.
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.
Documentation scope and provenance
This edition was source-reviewed on 9 November 2026 against Den revision 02a3017992fb0eede711b6c9f4e64a6623c1dedb. It is an operator reference for that source, not a statement that your installation runs it.
The website guides were checked for real routes, keyboard/native navigation and responsive behavior. Writing these guides did not execute Den installations, deployments, updates, restores, credential changes or Cloudflare mutations. A disposable installation walkthrough and live acceptance remain separate evidence.
Check your installation's reported component identities and the applicable signed release. An old README limitation may have been superseded by current guarded code, while an old successful test report may apply only to its frozen source and fixtures. Do not combine those into a claim of production readiness.
Roles and responsibility boundaries
- Independent Den owner
- Local Den identity, independent of Attic. Manages security, owner-only shared/integration/profile/recovery controls, Cloudflare and eligible Den update approval with the required fresh proof.
- Optional Attic admin
- An enabled separate sign-in path for authorized application operations. It does not grant independent-owner recovery, Cloudflare, owner MFA management or a granular delegated-role editor.
- Host administrator
- Operates Docker, protected files, keys, exact volume/engine identity, updater bootstrap and host recovery. Dashboard ownership alone does not establish host permissions.
- Repository maintainer
- Owns trusted source, Compose/manifest contracts, health checks, migrations, image safety and application behavior.
Operator glossary
- Preflight
- Saved analysis of a specific repository revision, Compose model and configuration. It is not runtime health.
- Known-good revision
- A revision retained from successful deployment evidence, distinct from the latest observed repository head.
- Operation / receipt
- A durable requested action and the retained evidence of its effects. A receipt is not another instruction to execute.
- Hold / fence
- A protection against conflicting work while ownership or effects are unresolved. Time passing does not release it.
- Profile
- Specify runtime profile (whole-fleet configuration) or recovery profile (encrypted portable settings). Neither means all application data.
- Drill
- An isolated restore/semantic check of a particular artifact and verifier. It does not certify every host-loss scenario.
- Publication / association
- A reviewed serving rule/DNS effect versus local metadata identifying an existing route. Association alone grants no cloud ownership.
- Release / installation
- A signed available artifact versus the components and state actually running on a specific host.
The API enforces action-specific checks. A visible panel is not proof that every action is allowed. Local data/portable imports additionally need the enabled loopback local-owner prerequisites. Required owner MFA is incompatible with optional Attic sign-in; no default credentials exist.
Managed Compose contract
- Use a trusted GitHub repository, explicit branch and repository-relative Compose path. Bake source into images rather than relying on host-relative bind mounts.
- Use named volumes for durable data. Review any exact Den-managed storage conversion; it creates empty storage and does not edit the repository.
- Bind published ports explicitly to
127.0.0.1or::1. Use only the configured allowed external networks and applicable Den-owned integration/ingress networks. - Declare meaningful container health checks and, where useful, an agent-reachable HTTP readiness URL.
- Keep migrations backward compatible when relying on automatic code rollback. Den does not reverse persistent data changes.
- For staging, use the supplied environment integration network and project-scoped build image names. Do not overwrite production tags or attach arbitrary production networks.
Privileged containers, forbidden resources, invalid manifests and unsafe policies are hard failures. The limited manual incomplete-setup override is not an arbitrary shell, exec, prune or volume-deletion capability.
A registration saves intent; a preflight checks a revision/configuration; a lifecycle operation changes runtime; a follow-up inspection observes afterward. Preserve those distinctions in operational tooling and incident reports.
Deployment manifest and value ownership
The optional .den/deploy.yaml explains information Compose cannot safely infer. Its authoritative parser is manifestSchema in services/agent/src/preflight.ts, with shared schemas for referenced contracts. Use the exact strict schema in your approved source; unknown fields or malformed declarations are rejected rather than ignored. Version 2 supports environment metadata and declared provider/consumer contracts alongside managed dependencies and data targets.
- Environment
- Names, required/secret flags, labels, format, ownership, scope and semantics. Template suggestions do not themselves authorize production values.
- Ownership
- User, generated, binding and derived values have different update paths. Integrations synchronize only visible binding/derived fields, not secrets or user-owned values.
- Semantics
- Public/internal origins, allowed origins, consumer registries, host ports and health URLs guide safe derivation. A name alone does not grant a capability.
- Provides/consumes
- Explicit service, port, health path, network alias, capability and consumer bindings, validated against effective Compose.
- Dependencies/data
- Managed PostgreSQL/Seq and exact eligible file/data target contracts. Consumers, connection variables and target ownership must agree.
Field-name map for authors
- Top level:
version,environmentTemplate,environment,dependencies,dataImports,provides,consumes,originPolicies,consumerPoliciesandrecoverySets. Semantic integration and recovery-set contracts require version 2. - Variable metadata:
label,description,required,secret,format(string/uri/integer/boolean),ownership,scope(profile/installation) andsemantic. - Dependencies:
id,label,configuredByand optional typedprovision. PostgreSQL declaresconnectionVariable,consumers,majorVersionand optional fixedbackupPolicy. Seq declares its connection variable, optional API-key variable and consumers. - File imports: exact
id,label,service, absolute containermountPath,uidandgid. The mount must resolve to eligible managed storage; this is not an arbitrary host path. - Providers:
id,capability,service,containerPort,healthPath,networkAlias,public,bindings. Consumers declare capability, server/browser/both access, optional client ID and explicit bindings. - Origin/consumer policies name the destination environment variable and capability, with the supported
browser_consumersorconsumersinclusion. They are derived registries, not arbitrary policy scripts.
Validate the manifest against the intended Compose branch and installed agent before deployment. This field map is not a runnable sample or a substitute for strict schema constraints.
Managed PostgreSQL's reviewed catalog uses major version 17. Production requires the approved immutable PostgreSQL image digest. Shared Seq has its own production digest prerequisite. Do not let a repository choose arbitrary managed dependency images.
The fixed mediamuncher-youtube-v1 PostgreSQL policy excludes only rows of the two declared cache tables in the exact schema, while retaining DDL and durable data. It requires a supported verifier and policy-aware artifact handling; it is not arbitrary SQL/dump customization.
The current complete-set contract is attic-v1 with exactly one managed PostgreSQL member and one file subtree. Do not interpret it as a generic multi-service snapshot API.
Configuration ownership and key settings
Use the reviewed installation templates and selected Compose override, not this list as a copy-and-paste environment file. Existing values and keys must be preserved during upgrades and recovery.
CONTROL_PUBLIC_ORIGIN/COOKIE_SECURE- Exact browser origin and cookie security. Production needs HTTPS without a path and secure cookies. Application Public URL is a different setting.
CF_ACCESS_REQUIRED/MFA_REQUIRED/TRUST_PROXY- Choose a supported access mode. Standalone required-MFA HTTPS does not trust arbitrary forwarded headers. Do not stack mode overrides.
LOCAL_DATA_IMPORTS- Only works with loopback origin and independent-owner access, without Cloudflare Access or trusted-proxy mode. It is not a remote import switch.
SESSION_ENCRYPTION_KEY/AGENT_HMAC_SECRET/WEBHOOK_SECRET_ENCRYPTION_KEY- Independent installation secrets with different purposes. Preserve securely with matching state; never publish them or casually regenerate them.
WEBHOOK_PUBLIC_BASE_URL- Exact externally reachable signed-GitHub-webhook destination, separate from interactive dashboard Access.
INTEGRATION_NETWORK_NAME- Installation network for declared app-to-app traffic; staging receives its separate suffix. Not an arbitrary network allowlist.
POSTGRES_IMAGE/SEQ_IMAGE/DATA_HELPER_IMAGE- Host-reviewed dependency/helper images. Check required immutable digests, actual local availability and installed capability before using their workflows.
REMOTE_BACKUP_ENABLED/REMOTE_BACKUP_RESTORE_TEST- Separately configured encrypted remote copying and isolated drill behavior. Destination and independent encryption key are host responsibilities.
The local template uses development mode. When converting preserved local configuration to Cloudflare remote mode, set NODE_ENV=production for the agent as well as manager and disable local imports. Follow the full remote setup.
Limits, states and identifiers
- App health timeout: 15–600 seconds, with a 120-second registration default in this source. A timeout is not a substitute for correct readiness.
- Execution concurrency: default one; explicit settings negotiate a supported limit of one to four across matched manager/agent capabilities. Shared resources still exclude conflicting work. Do not raise production concurrency merely because the field exists.
- Owner verification: persistent ten-attempt/five-minute account-wide budget, separate from route limits. Fresh successful proof also consumes the budget.
- Dashboard API reads: current source has a 1,200/minute valid-session provider/account GET/HEAD budget; anonymous/default traffic has 120/minute IP limits and explicit routes retain their own limits. Follow Retry-After.
- Cloudflare inventory is stale after fifteen minutes; publishing plans expire after fifteen minutes; external diagnostic evidence expires after five minutes. They are different clocks.
- Import chunks are resumable and verified; inactive uploads expire after 24 hours. Free-space and archive expansion/count limits still apply.
Operations and saved recovery jobs have durable identities. App slugs, registration UUIDs, backup/set/target IDs, source commits, profile IDs, installation/host IDs and cloud record IDs are not interchangeable. A matching name or URL does not establish ownership.
Unknown/unavailable means missing evidence. Succeeded, failed, rolled_back, rollback_failed, interrupted and needs_attention describe different outcomes. Read the retained operation and current runtime rather than flattening them into a single healthy/unhealthy badge.
Source change notes and release evidence
These dated notes describe verified commits in the reviewed source history, not an assertion that a particular published or installed semantic version contains them:
- 9 November 2026 · 02a3017: dashboard request limits and polling cooldown handling were corrected. See the version-specific limits above.
- 9 November 2026 · da0b6ca: read-only agent build handling and backup verifier classification were corrected.
- 9 November 2026 · ed11d8d: updater inventory timing and pre-manager-stop recovery handling were corrected.
- 8 November 2026 · dadaa2f: independent update status gained a Den-owner login grant option, distinct from recovery authority.
To evaluate an actual release, inspect its configured signed envelope: exact version, release UUID, source commit, issue/expiry times, platform, immutable component images, state-format reader ranges and required capabilities. The publisher's artifact is den-release.json; a GitHub title or mutable image tag alone is insufficient.
The reviewed publisher builds Linux amd64 manager/agent artifacts, with helper tied to the agent digest. Broader schema support for a platform does not prove the publisher has built/tested that platform. Private repository/image access may require separately reviewed server-side credentials; public availability is not assumed.
Expired signatures, incompatible readers, unknown identities or missing capabilities must block review rather than being bypassed. This documentation does not fabricate a latest release number or a minimum supported installed version.
Prepare the independent Den updater
Available release, installed version and update readiness are three separate facts. Normal manager/agent installation does not enroll the independent updater. Its default packaging is disabled and grants no production Docker access, release trust, credentials or persistent listener.
A qualified host administrator must review and establish the exact installation scope before the owner can approve routine updates:
- Pin installation/host/engine identities, exact manager/agent containers and images, platform, matching state formats and all six actual checkpoint volume roles: manager_data, manager_repos, manager_keys, manager_config, manager_imports and manager_backups.
- Keep updater state and protected ownership registry independent. Pin the updater's own identity separately and exclude it from replacement targets.
- Configure approved release trust, protected request/observer identities and narrow executor authority. Do not copy secrets into browser code, generic Compose examples or logs.
- Establish maintenance/drain, stopped-state, archive, encryption-key-provider and readback capabilities. Checkpoint protection keys must remain recoverable after loss of the host.
- Protect external deployment configuration and infrastructure secrets separately. Volume archives do not necessarily include every container environment value or bootstrap key.
- Configure and test independent status access and the exact eligible recovery route before an update can stop the manager. Do not treat packaged recovery components as an installed recovery service.
Built-in owner MFA must be enrolled. The owner's dashboard approval is separate from host bootstrap and external credential/permission setup. If System health says Update setup required, resolve the reported prerequisite instead of rebuilding Den over its existing state.
Review and approve a routine Den update
- Open System health → Update Den. Read installed state and Refresh update status. Resolve unavailable evidence or active/held work before planning a new job.
- Use Check for a release and Review published release, or select an approved Signed release file and choose Review release. Discovery does not prepare or approve an installation by itself.
- Review the exact source commit, installation/project/platform, old and target state formats, matched component images and any compatibility findings. Confirm a protected checkpoint/recovery plan and expected dashboard downtime.
- Open the separately configured independent status link before restart. Check it works using the configured authentication mode.
- Enter the current owner password and an unused authenticator or MFA recovery code, acknowledge the restart/checkpoint and choose Approve Den update. Approval binds the exact plan and installation.
- Track the retained job and phase evidence. The fixed sequence stages images, acquires maintenance/drains work, stops manager then agent, captures/verifies matched protected state, replaces/verifies agent/helper, replaces/verifies manager and releases the exact maintenance owner.
- After completion, verify the actual component/container identities, reported versions, state compatibility and health. Inspect managed applications and automation before declaring the installation ready.
Configured release discovery runs on opening the page and every five minutes while visible, online and idle. Review, pending delivery and active/held updates pause it. Discovery never authorizes an update. Observation itself is bounded; use explicit status refresh after it pauses.
Cancel before execution is only for an approved job whose steps are all still unclaimed, with fresh required proof. Once a phase is claimed, it is not a general cancel/undo button. Lost approval or cancellation replies use the same saved request after inspecting progress; do not approve a new job to replace uncertain work.
Read progress while Den restarts
The independent gateway is separately configured. Its observer-only mode and local-owner status-grant mode are read-only. An externally authenticated Access-owner mode can additionally expose eligible recovery controls only when a separate protected recovery controller is configured. It can observe availability/current progress while the manager is down, but still needs its own service, host, ingress and updater to work. Read-only status cannot approve, cancel, retry, reconcile, clear maintenance, restore a checkpoint or perform Docker changes. The optional recovery controls use a separate authority path described below; the observer key gains no mutation authority.
One supported mode validates an independently protected exact-owner Cloudflare Access assertion against pinned trust. Another opt-in mode lets the signed-in Den owner explicitly obtain a same-origin HTTPS status grant before restart. These modes are configured deliberately, not mixed as fallbacks.
The local-owner status grant lasts at most fifteen minutes and no longer than the owner's current session. A new browser, missing cookie or expired grant cannot obtain fresh access while the manager is unavailable. There is no fallback login or background renewal. A copied grant can remain valid until expiry; logout is not an instantaneous offline revocation guarantee.
Grant mode is read-only and cannot be combined with browser recovery authority. An independent recovery controller is a separate protected setup with external-owner authentication, real Den owner proof and narrow execution boundaries. Do not infer it exists because the status link works.
Automatic status observation stops at its bound, a hold, terminal job or read failure. Last observed progress is labeled stale rather than silently substituted as current success. Refresh reads evidence; it does not resend approval.
Choose the correct update recovery branch
Unknown or needs-attention outcomes retain exact claims and receipts. Timeout cancellation is cooperative and cannot prove a Docker effect stopped. No automatic rollback or generic hold-release bypass is implied.
For the narrowly eligible pre-replacement stop_agent hold, the same original agent is healthy and later steps are unclaimed. The reviewed offline procedure cancels that held job under fresh stopped proofs and owner/MFA authority. It is before checkpoint capture and does not replace components, migrate state, capture a checkpoint or retry the update. See held-update diagnosis.
Optional browser recovery for an eligible hold
This flow requires the separately configured Access-owner gateway, protected controller and compatible bridge, plus trusted claim-bound evidence that no agent-stop effect was dispatched. A legacy held claim without that evidence is unavailable here. Current-generation history and exact original service identities must be trusted; missing lineage is not repaired by a name match.
- Open the independent page and read both updater and controller status. Verify the exact held job and pre-replacement boundary.
- Acknowledge I approve stopping the already-held updater to prepare recovery, then select Prepare held-job recovery. Preparation may stop only that exact held updater with the required no-dispatch evidence; it cannot stop an active or ambiguous executor.
- When preparation is ready, enter the actual Den owner password and unused Authenticator or recovery code. Acknowledge restoring the same original services without installing the proposed release, then choose Verify owner and restore original services. External login alone cannot release fences.
- Track the retained recovery operation. Reload or Refresh status observes it without posting another action. Recovery requests are never automatically resent; unknown bridge creation or effects remain held.
- After exact fence release and cancellation are durably committed, completion of that same authorized original-service restoration can proceed without consuming another MFA code. This is not new release authority or permission to start a different job.
- Require authenticated original-service health and installation-pinned updater availability before calling recovery complete. Merely seeing containers running is insufficient. The proposed release was not installed.
If replacement may have started, use the separate matched-checkpoint/host-recovery procedure with actual schema/journal compatibility. An old image is not enough. Historical ownership-registry upgrades can be one-way; a successful cancellation does not authorize an incompatible old binary to reopen newer state.
For host loss, recover the complete matching protected artifacts, external key-provider material and separately protected deployment configuration. Cloudflare metadata or an ordinary app profile is insufficient. Reestablish independent owner access and verify actual identities/effects before releasing any hold or resuming service.
Where maintainers verify the contracts
Within an approved Den checkout, use these source areas to check behavior for your exact revision. Filenames identify source, not public download links or operator commands.
README.md, Compose overrides and config modules: installation modes and application model.apps/dashboard/src/App.tsxand focused page/panel components: current labels, workflows, visible evidence and guarded actions.packages/shared/src: shared recovery, release, operation and Cloudflare schemas. The manifest parser itself is inservices/agent/src/preflight.ts.services/control/src/server.ts, worker and dedicated route modules: owner/session/local-mode checks, queues and durable results.services/agent/src: preflight, lifecycle, protected environment/storage, backup/import/verifier, execution journal and cloudflared boundaries.services/updater/src: independent executor, status/recovery, ownership, checkpoints and immutable phase evidence.docs/release-publishing.md,build-identity.md,pre-replacement-abort.mdand focused backup/Cloudflare documents: rationale, evidence limits and installation prerequisites.
Bounded API and host-CLI index
This is an integration map, not a bypass for UI reviews. Use the installed strict request/response schema, authenticated session and required origin/CSRF/owner proof. Agent signed internal routes and updater IPC are not public APIs. Never expose them or invent a generic command endpoint.
GET /api/apps,GET /api/apps/:id/statusandGET /api/apps/:id/preflight: authenticated reads of registration/runtime/saved check. The preflight GET does not run a full check.POST /api/apps/:id/preflight: authenticated guarded inspection that records fresh analysis without deploying. Direct API lifecycle callers must explicitly refresh required preflight first.POST /api/apps/:id/actions: authenticated guarded lifecycle mutation with strict action and optional eligible readiness acknowledgment. Returns a queued operation; readGET /api/operations/:idfor outcome.GET /api/execution-reviewandPOST /api/execution-review: independent-owner observation versus evidence-bound hold release. Release never replays the mutation.POST /api/apps/:id/importsand its chunk/complete routes: enabled loopback local-owner upload/import workflow, not arbitrary file execution. Completion queues the import; see the dedicated guide.POST /api/apps/:id/recovery-authorities: owner-only strict policy creation, currently without a dashboard creation form. Shadow, activate, rollback and restored review are distinct guarded endpoints, not interchangeable retries.GET /api/system/updates/current: independent-owner update observation.POST /api/system/updates/preparereviews a signed plan; job approve/cancel routes require exact fresh proof. The job retry route redelivers a saved request, not an arbitrary execution retry.services/control/dist/admin.js initandreset-password: interactive host-terminal owner bootstrap/recovery. Hidden prompts, no credential arguments. These change security state.services/agent/dist/import-env.js <slug>: host-operator protected environment import from standard input. It changes saved configuration and does not deploy. Do not expose secrets through command arguments or logs.services/agent/dist/remote-backup-cli.js <copy|recover> <slug> <backup-uuid>: host-operator transport with configured destination/key. Copy writes/verifies off-host state; recover creates verified local artifacts, not live data or a catalog entry.
For executable installation commands use the installation guide. Advanced privileged bootstrap/recovery paths need installation-specific protected configuration and exact identities; this index deliberately supplies no fabricated IDs, keys or runnable recovery command.
Source tests, disposable runtime acceptance, signed publication and an installed production verification are different evidence sets. Report which one you have. Never copy a historical schema/version or success count into a claim about a different running installation.