
A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

AppCrane runs internal apps on a server you own, letting an agent create, deploy, roll back and manage apps through its MCP server while the platform enforces SSO, per-app roles and an audit log.
AppCrane: self-hosted PaaS with a built-in MCP server is cataloged as an MCP server attributed to gitayg. AppCrane runs internal apps on a server you own, letting an agent create, deploy, roll back and manage apps through its MCP server while the platform enforces SSO, per-app roles and an audit log. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: GNU AGPL v3. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for AppCrane: self-hosted PaaS with a built-in MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
No. AppCrane deploys containers only on the machine it is installed on and has no agent, host registry or remote-execution path.
Env-var access follows app assignment, which also applies to platform_admin, so an admin cannot read plaintext secrets of an app they are not assigned to; reveals are throttled and audited.
Yes. Clients that support MCP OAuth can connect with a browser sign-in instead of a pasted API key, approving the client on a consent page and optionally granting read-only access.
README.md · 06f0d0c42c6e · Fetched 2026-11-13 12:40:14 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
Self-hosted PaaS where the agent is the operator and the platform keeps the receipts.
appcrane.dev · How it compares · Deploy from Claude · MCP connector · Changelog
AppCrane runs the internal apps your team builds with Claude Code or Cursor, on a server you own. An agent creates the app, deploys it, reads the logs and rolls it back through 74 MCP tools — no browser, no curl — while the platform enforces SSO and per-app roles, records every action against the actor that took it (tagged agent or human), and keeps app secrets out of reach of the person administering the box.
It is for teams that have to self-host — data residency, a customer contract, an internal-only network — and still have to answer who deployed this, what was in it, and can we undo it?
Self-hosted PaaS caught up on governance during 2026. Coolify shipped structured audit logging and first-class OIDC; Dokploy shipped SSO, SCIM, custom roles and audit logs. Komodo has had granular per-resource permissions and a full audit trail for longer than either. Most of what used to be a differentiator here no longer is, and the claims below are the ones that survived checking their docs. Four things still stand out:
1. Governance is in the open-source build, not behind a license key. SAML 2.0, OIDC, SCIM provisioning, per-app roles and the audit log are all in the AGPL-3.0 build with nothing to activate. Dokploy ships the same category of capability as Enterprise, gated on a license key. Coolify's are free, but its changelog lists OIDC and audit logging without SAML or SCIM. Komodo's are free too — GPL-3.0, with per-resource permissions and an audit trail in the box — but its documented sign-on is username/password and OAuth (GitHub, Google, generic OIDC), with no SAML or SCIM in the docs. So the free-versus-paid line is really only Dokploy's; against Coolify and Komodo the difference is which enterprise-directory protocols are covered, not what you have to pay to turn them on.
2. The built-in agent interface can change things. Coolify's instance-level MCP server is deliberately read-only — ten list/get tools. AppCrane's 74 include appcrane_deploy, appcrane_rollback, appcrane_promote, appcrane_set_secret and appcrane_grant_app_access. Dokploy's official MCP package is write-capable too, and far larger (508 tools across 49 categories) — AppCrane's surface is smaller by choice, not by capability, and is paired with appcrane_get_guide(topic="onboarding"|"operations"), which serves the current playbook from the server so the agent reads the procedure instead of inferring it from a tool list. Komodo ships no MCP server of its own; neither its repo nor its docs contain one, and the several that exist are third-party wrappers over its REST API.
3. The audit log tells an agent from a person. Every row carries actor_kind, so "what did the agents do on this box last week" is one query. The others record a user identity — Komodo's trail records "who made it and when" (intro) — but none of their docs describe separating automated actors from humans.
4. The operator is locked out of app secrets. Env-var access follows app assignment, and that holds for platform_admin as well — the role that installs and updates the platform cannot read the plaintext of an app it is not assigned to. Reveals are throttled and audited across both doors, HTTP and MCP, so switching transport does not buy a fresh allowance. Komodo documents the opposite arrangement explicitly: marking a variable secret prevents access to the value for non-admin users, which is to say an admin can read it.
Four more that are unusual but worth measuring against your own requirements rather than reading as headlines: per-tenant data isolation for deployed apps; repo-less uploads identified by a server-side SHA-256 over the received bytes instead of a self-reported commit SHA; a daily vulnerability digest mailed per recipient — fleet-wide to a platform admin, own-apps-only to an app owner, so the digest cannot leak which other apps are exposed; and managed repos, so an agent can create and ship an app for someone who has no GitHub account at all.
Versus vendor-hosted governed platforms (Replit, Lovable, Retool, Superblocks), the trade is the usual one: their governance is more mature, and your app data, database connections and API keys live on their infrastructure.
| AppCrane | Coolify | Dokploy | Komodo | CapRover / Dokku | |
|---|---|---|---|---|---|
| Multi-host / fleet deploys | no — single host | yes (experimental) | yes, remote servers | yes, agent per host | Swarm cluster (CapRover) |
| Built-in MCP that can deploy | 74 tools, incl. rollback | 10 tools, read-only | 508 tools (official package), incl. rollback | community projects only | community projects only |
| SAML 2.0 | yes | not in changelog | Enterprise | not documented | no |
| OIDC | yes | yes (v4.4-rc.1) | Enterprise | yes, generic OIDC | no |
| SCIM provisioning | yes | not in changelog | Enterprise | not documented | no |
| Audit log | yes, agent vs human attributed | yes, structured (v4.1.0) | Enterprise | yes, full change trail | no |
| Governance behind a paid tier | no | no | yes | no | n/a |
| Operator cannot read app secrets | yes | not documented | not documented | no — admins can | no |
| Per-tenant data isolation for apps | yes | not documented | not documented | not documented | no |
| Deploy identity for repo-less uploads | server-side SHA-256 | not documented | not documented | not documented | no |
| Core license | AGPL-3.0 | Apache-2.0 | Apache-2.0 + paid Enterprise | GPL-3.0 | open source |
The first row is the one AppCrane loses outright. Komodo is built around fleet management: a Core web server plus a stateless Periphery agent on every connected machine, with "no limit to the number of servers you can connect", Docker Swarm management, and declarative resource sync from a git repo. AppCrane has no agent, no host registry and no remote-execution path — it deploys containers on the machine it is installed on, and that is the whole design. Coolify and Dokploy both reach other servers too, and CapRover joins nodes through Docker Swarm.
CapRover and Dokku are in one column because their access model is the same shape: a single admin account (CapRover) or SSH keys where the word admin in a key name grants key-management rights (Dokku), with multi-user access an explicitly out-of-scope request in one and an unaudited community plugin in the other. That is a reasonable design for a one-operator box; it is not something to put an IdP in front of.
Checked against each project's own documentation and changelog in September 2026. "not documented" means the capability does not appear in their docs — that is not proof it is absent, and a vendor page is a claim, not a test. Verify anything load-bearing on your own install.
Honest scope. Coolify has a far larger template marketplace, a much bigger community, and multi-server orchestration; if you want one-click Postgres and hundreds of app templates, use Coolify. Dokploy's API surface is broader than AppCrane's and it sells support with an SLA. Komodo is the better choice the moment the answer involves more than one machine — a fleet of hosts, a Swarm, builds farmed out to spot instances, configuration synced declaratively from git; AppCrane deploys to the box it runs on and nowhere else, so a multi-host estate is not a smaller version of this, it is a different product. Dokku and CapRover are simpler and lighter if one person operates the box. Choose AppCrane when the apps are agent-built, the agent should do the deploying, everything lands on one server you own, and someone will later ask you to prove who did what.
Why it matters now. Three things changed in 2026:
/<slug> on the platform's host, so every app and the dashboard shared one browser origin: one app's script could call any other app as the visitor (AppCrane's sign-in accepted the visitor's one session for every app), and could read the dashboard's session token from browser storage — a full AppCrane session, a platform admin's if an admin opened that app. A platform admin can now set an apps domain (Settings > Security > App isolation; PUT /api/settings/isolation). Each app then answers at https://<slug>.<domain>/ and its sandbox at https://<slug>-sandbox.<domain>/, and the visitor is signed in there by a one-time handoff from the platform host into a cookie that only that app and environment accept (__Host-cc_app); the platform API never accepts it, and signing out of AppCrane ends it. Old /<slug> links redirect (308) to the new address, and a path still starting with /<slug>/ has that prefix removed, so apps need no change and keep their APP_BASE_PATH. /api/me and /api/directory keep working from an app's own pages. With it on, the platform cookie becomes __Host-cc_token (everyone signs in again once). The domain can be the platform host itself (apps at <slug>.<platform host>) or another name such as apps.<platform domain>. Needs a wildcard DNS record *.<domain> pointing at the server, and either a wildcard certificate (file paths in the same card) or Caddy's on-demand certificates, which AppCrane approves only for its own app addresses. Use a domain under the same registrable domain as the platform host, or apps opened inside the dashboard lose their sign-in (browsers block third-party cookies). Off (no domain) changes nothing. Custom domains can now use AppCrane sign-in too: per app, "Require AppCrane sign-in on the custom domain" (custom_domain_auth, also on appcrane_set_app_meta), off by default. App objects now carry url and sandbox_url. With it on, the dashboard's own policy allows frames from https://*.<domain>, so app tabs keep working.package.json move with them. npm audit: 0 vulnerabilities.appcrane_cp writing into a folder that did not exist yet left that folder (and the file) owned by root, so an app running as node got EACCES on every later write there until the next deploy re-owned /data. New folders and the file now belong to whoever owns the app's /data (1000:1000 after a deploy), whether the write goes into the container with docker cp or onto the host. Folders that already exist are left exactly as they are, owner and mode included.node:20-alpine, which is end of life and gets no fix for Node2Shell (CVE-2026-111497). The Node line is now node_version in deployhub.json, else engines.node in deployhub.json, else engines.node in package.json, else 22. When the stated range allows 22, 22 is used; otherwise the newest of 26, 24 and 22 that satisfies it, and Node 20 or 18 only when the range allows nothing newer (with a warning in the deploy log). A deployhub.json value no buildable line satisfies fails the build and names it; a package.json value that cannot be satisfied falls back to 22 with a warning. The deploy log says which line was chosen and why. App Studio's coding image moves to Node 22 as well.curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && sudo apt-get install -y nodejs && sudo systemctl restart appcrane, then check node -v.vuln_alerts_immediate (Settings > Security, on by default) turns it off. The daily digest is unchanged. Each batch is recorded as a vuln.alert event.change.auto_approved (actor "AppCrane runtime patch"), owners are e-mailed and a request is recorded. Prebuilt-image apps, uploads, PHP branches with no fix (8.1 and older) and non-Docker Hub bases are listed in Job Health for a person, and platform admins get one e-mail per advisory.MONGO_KERNEL_INCOMPATIBLE). Settings > Job Health ("Managed MongoDB kernel check") and the managed-database status show the same warning. A database server that stops while starting is now reported within seconds with its exit code and last log lines, instead of after a 2-minute wait. MANAGED_DB_MONGO_SKIP_KERNEL_CHECK=1 turns AppCrane's own pre-check off; MongoDB still runs its own.change.auto_approved (actor: AppCrane auto-patch) and owners are e-mailed. It runs only when the branch tip is exactly the commit live in production, so changes a person has not promoted are never shipped with the bump, and it re-checks the switch, the app opt-out and any running restore right before promoting and before any rollback. Any guardrail that does not hold, and every non-RCE fix, stays with a person. A platform admin can turn it off or change the cooldown in Settings → Security; owners can opt an app out on its Manage page. Supported today: npm with a root package-lock.json; other ecosystems keep the human flow. The npm helper runs on an internal Docker network whose only exit is a proxy that allows a tunnel to registry.npmjs.org:443 and nothing else, from a node image pinned by digest; if that confinement cannot be set up, the fix goes to a person. When the lowest fixed version is deprecated on npm, AppCrane picks the lowest release in the same major version that is newer than it, not deprecated, has no advisory of its own on OSV and is past the cooldown, and bumps to that. It never follows the maintainer's suggested version on its own, and if no such release exists the fix goes to a person. An exact version pin stays exact. For auto-patch and runtime-patch runs only, the release check's dependency step passes when the target advisory is gone and every fixable finding left in the candidate is one the live production scan already has. Those findings are listed as unchanged in the release check record, the change.auto_approved audit row and the owner e-mail. A missing or failed production scan, or any new fixable finding, stops the run for a person. Every other release-check step, and every deploy or promote a person starts, is checked exactly as before. Auto-heal after a restart redeploys the exact commit that was live and is not re-checked, so an app with an older known issue still comes back./api/access-reviews/*.ENCRYPTION_KEY). Verification every 6 hours and on demand (Audit integrity page, /api/audit-chain/*) names the first row that was modified, deleted or inserted out of order and catches forged checkpoints; platform admins get one critical e-mail per failure. Rows removed by event retention are told apart from rows deleted by hand, and checkpoints go into the event/SIEM stream so a third party can hold them. Limit: someone with both the database and ENCRYPTION_KEY can rebuild the chain; only checkpoints held outside AppCrane detect that.APPCRANE_FIPS=require refuses to start unless Node runs a FIPS provider and a startup self-check (known-answer tests, MD5 refused) passes. Passwords are PBKDF2-HMAC-SHA256 (600k iterations) and old scrypt hashes convert at each user's next sign-in. S3 DeleteObjects uses a SHA-256 checksum instead of MD5 (with a fallback for buckets that insist on MD5). APPCRANE_TDE_KDF=pbkdf2-sha256 moves the MariaDB key file off SHA-1 (needs MariaDB 12). Settings → Security → Cryptography shows the status and anything still on a legacy algorithm. The deployer provides the FIPS Node build, a FIPS Caddy, FIPS base images and host FIPS mode; see docs/FIPS.md./intake. Every production deploy and promote runs a release check (intake, dependency/image scan, secrets in code, required access rules, SSO gate not bypassed, sandbox health) that enforces for confidential/restricted and warns for public/internal by default. A vulnerable dependency with a published fix blocks production for every app by default (one with no fix warns); a platform admin can turn that off in Settings → Security, after which it blocks nowhere. Owners or platform admins record per-check exceptions with a reason and an expiry (90 days at most). Rollbacks are not re-checked; existing apps are grandfathered as approved and internal./adopt, MCP appcrane_adopt_app) — bring a Lovable, Bolt, v0, Replit or Figma Make app (or any GitHub repo or zip) onto your server. AppCrane reads the code without running it, reports the framework, build and port, the env vars to fill, Supabase/Firebase/Clerk/Auth0 use and exposed keys, then creates a Crane-hosted app, adds a Dockerfile and health check if missing, stores the secrets encrypted, deploys to the sandbox only, records the intake and can open a request per needed change. Critical findings must be acknowledged first._bulk, Sumo Logic, Microsoft Sentinel) or a daily JSONL export to S3/R2, as ECS-style JSON or CEF. At-least-once delivery from a durable per-destination cursor with a stable event.id, filters by kind, severity and app, verified TLS (custom CA allowed), private addresses only by allowlist, encrypted credentials, and a Job Health job per destination. Settings → Security.ANTHROPIC_BASE_URL / OPENAI_BASE_URL pointing at /api/service/llm and a per-app, per-environment gateway token as ANTHROPIC_API_KEY / OPENAI_API_KEY, so the official SDKs work unchanged and the real key never enters the container. Internal-only, with a fixed path and model allowlist, per-app/env budgets, a per-minute rate limit and a max-tokens cap; usage shows tokens and cost per app, model and day, and prompts are never stored./api/mcp/apps/<slug> (or <slug>-sandbox), with OAuth sign-in (a token scoped to that one app) or an API key. Each call acts as the person connected: AppCrane checks their role on the app, the tool's roles and the app's access rules, then calls the app with that person's signed identity headers. Read-only keys see only GET tools; every call is rate limited, size and time capped, and audited without bodies. Declare tools under mcp.tools in deployhub.json (name, description, method, path with {param}s, input_schema, roles), or "mcp": { "path": "/mcp" } for an app that already speaks MCP.appcrane_delete_app runs the same teardown as the dashboard (containers, images, volume records, managed databases, rows, Caddy routes) and requires confirm_slug equal to the slug, the app owner or a platform admin, and app.delete in the role matrix; it is refused for read-only keys, the coder's connection and keys scoped away from the app. The audit trail, the app's data directory and a Crane-hosted repository at DATA_DIR/repos/<slug>.git are kept (so that slug cannot be reused for a new managed app until the repository is removed); GitHub repositories are never touched. appcrane_get_audit returns an app's audit trail, gated by app.audit.view (default: owner, app admins, platform admins), newest first, paginated with before/next_before, limit up to 200, with an optional action filter; credential fields are masked on the way out, including in rows written before audit redaction existed.appcrane_submit_feedback lets a user say "send AppCrane feedback that the deploy error didn't name the missing env var" and have their agent file it, with what it knows attached (the tool it was using, the task, the deploy id, the error text cut to 4 KB, the client name). With slug it becomes a request in that app's queue, the same one the intake form and appcrane_list_requests use (the caller needs access to that app; the owners and admins get the usual new-request mail; unlike a form request it is not copied to the app's GitHub issues, since a read-only key may file it). Without slug (or with appcrane) it becomes a platform request (_platform) that only platform admins see in Requests, and each platform admin gets at most one e-mail an hour about it (migration 162). Secrets, URL credentials and e-mail addresses are removed before it is stored; unknown fields and oversized ones are refused; 20 per user per hour; audited as feedback-submitted with the actor tagged agent or human. Read-only keys may call it (View as previews and the coder's connection may not). Returns { id, target, where }, where where is the request's page.POST /api/files/staged/chunked {slug, filename}, then PUT /api/files/staged/<handle>?offset=N (raw application/octet-stream, resumable; a wrong offset answers 409 with the bytes received so far), then POST /api/files/staged/<handle>/finalize {sha256}. Finalize checks the SHA-256 before anything is staged, and its token works with appcrane_push_staged_file, appcrane_push_to_managed_app (staged_token) and appcrane_deploy_artifact. Handles are owner-only, expire after STAGED_TTL_MIN (10 minutes), are capped at STAGED_MAX_BYTES (200 MB) and are swept every 5 minutes./__appcrane/picker page from the app's host, which (being same-origin with the app frame) highlights and captures the clicked element and postMessages it to the platform origin only; the page can be framed only by the platform host, and the dashboard accepts messages only from that helper. No app change; falls back to the whole page if the helper does not answer within 5 seconds or the app has left its host (2.125.19).scripts/host-hardening.sh sets (journal cap, syslog size rotation, hourly logrotate, Docker log defaults, apt news off, unattended upgrades, /var/log/caddy, disk reserve) as applied, missing or not applicable, read without root (GET /api/settings/host-hardening). A platform admin can Apply it (POST /api/settings/host-hardening/apply, two-factor code required when enrolled, one run at a time, audited as host-hardening-started / -applied / -failed). When AppCrane runs as root it runs the repo script; otherwise install.sh runs scripts/install-host-hardening.sh, which installs a root-owned copy at /usr/local/lib/appcrane/host-hardening.sh and a sudoers rule allowing only that file with no arguments (the repo copy is never sudoed, since self-update rewrites it as the run user). Without that rule the card shows the command to run instead, and it says when the root-owned copy is older than the running version (re-run sudo bash scripts/install-host-hardening.sh).scripts/host-hardening.sh (run by install.sh, safe to re-run on an existing box with sudo bash scripts/host-hardening.sh) caps the journal at 500 MB and applies it at once (restart plus vacuum), rotates syslog by size hourly, sets Docker's default container log limit, turns off Ubuntu Pro apt news, turns on unattended security upgrades (no automatic reboots), creates /var/log/caddy for the Caddy user, and keeps a 1 GiB reserve file at the root of the DATA_DIR filesystem that you delete to recover a full disk (only when that mount point is root-owned and not writable by others, and never through a symlink, since DATA_DIR comes from the run user's .env; 2.127.1). In AppCrane: deploys, builds and self-update are refused (HTTP 507, DISK_LOW) when the DATA_DIR or Docker filesystem is below the absolute disk floor (Settings > Job Health, default 5 GB; rollbacks are not refused); update snapshots are capped at 5 and 1 GiB together and skipped rather than filling the disk; cron jobs whose container is gone are skipped instead of failing every tick, with one e-mail to the app's owners per outage; deploy logs keep the newest 20 per app and environment and clear older ones after 90 days (the deployment record stays), one deploy log is capped at about 1 MB, and build output no longer goes to the journal; Docker's build cache is pruned weekly and when disk reaches warning.DOCKER_BUILDKIT=0) leaves step containers behind: never-started ones when a build is cut off mid-way (a daemon restart or an OOM kill), and an exited one, holding that step's layers, every time a RUN step fails. Each keeps an untagged image in use, so the docker image prune after every deploy could not remove those images (one host held 91 never-started containers pinning 105 images, 13.5 GB; another 285 stopped containers holding 47.9 GB). Builds now pass --force-rm, so a failed step's container is removed. After every successful deploy, and in the weekly and low-disk build-cache prune, AppCrane also removes stopped (created or exited) containers older than 6 hours that are build steps, recognised by an image that is a bare sha256: id (the builder runs each step from the previous step's id; every container AppCrane or a person starts records a name or digest ref) or by the builder's /bin/sh -c #(nop) command. A running build keeps its own. Then untagged images are pruned. No other container is touched; Job Health's build-cache job shows how many were removed and what the image prune reclaimed.platform_anthropic_key_encrypted, never returned by the settings routes; GET/PUT/DELETE /api/appstudio/anthropic-key, platform admin, audited with the last 4 characters only). The first boot moves a key from .env or the environment into the database and removes the .env line; after boot nothing reads process.env.ANTHROPIC_API_KEY. Ask, App Studio, the coder, the builder and Crew turns get it through a 0600 --env-file that is removed once docker starts, never on the docker run / docker exec command line; the long-lived Ask container no longer carries it at all.services/repoMigration.js) fetched only with the GitHub service-account token, which an org that enforces SAML SSO refuses (403) until that token is authorized for the org. A managed app whose repo_backend is still NULL can now have this instance's GitHub App installation attached (Applications > gh app, platform admin; githubAppEligible in services/githubCredential.js), and the move then fetches with a short-lived installation token for that one repository; an attached installation that cannot issue a token fails the move (GITHUB_APP) instead of falling back to the service token. Without an installation nothing changes. Deploys of a managed app still on GitHub keep using the service account.appcrane_grant_app_access / appcrane_revoke_app_access, access-review decisions), and a link to the app (none on removal). Every writer is covered, including SCIM group sync, access reviews and app deletion: triggers on app_user_roles (migration 171) record each change in app_access_changes, and a worker (services/appAccessMail.js, every 15 s, Job Health app-access-mail) mails a person once their latest change on an app is 30 seconds old, comparing the role before the first change with the role they hold now, so a grant undone within that time sends nothing. Nothing is sent when the app was deleted, when the person is inactive, an agent or has no e-mail, or for the owner role an app's creator gets when the app is created. Platform admins can turn it off under Settings → Mail (app_access_mail_enabled, on by default); changes made while it is off are not mailed later./api/me, set-password and the forward_auth verify now refuse a deactivated account (enhancements accepted one) and an expired key (accepted until the expiry sweep moved it aside), through assertUserKeyUsable in services/userKeyUse.js, called from assertUserKeyIngress. The agent preflight groups each test in { …; }: if ! a && b negated only a, so no check ever failed. The boot note about an Anthropic key still held by the secrets provider names systemd encrypted credentials when that is the provider, not AWS Secrets Manager./api/me, set-password and the forward_auth verify each accept a personal key with their own lookup and never stamped api_key_last_used_at, so a key used only there looked never-used. Every route now records the use through assertUserKeyIngress (one stamp per user per hour, services/userKeyUse.js); a key refused on the public port still does not count.credentials.json handed to Ask, builder and coder containers stays 0666 (the image's studio user has an arbitrary uid and must rewrite it on a token refresh), but DATA_DIR/claude-credentials-tmp and each per-session folder are now 0700 (were 0755), so only the AppCrane user and root can reach it; a root folder left 0755 by an earlier version is closed on the next mount. Docker resolves the bind mount as root, so the container still reads and writes it.docker inspect or ps (2.136.0) — a coder, planner, codebase-summary or Crew container (docker run) gets the platform key, or the user's own CLAUDE_CODE_OAUTH_TOKEN, on its stdin: a fixed wrapper reads it, exports it and execs the CLI (a docker run --env-file would copy the value into the container's Config.Env). A docker exec turn (Studio chat, Ask, builder) gets either one from a 0600 --env-file deleted once docker has read it; the user token used to be a -e argument. A credential that is not delivered stops the container with exit 75; a value with a line break is refused.sudo crane secrets migrate --provider systemd-creds seals ENCRYPTION_KEY with systemd-creds into /etc/credstore.encrypted/appcrane.ENCRYPTION_KEY (root only, bound to this host's credential key), adds a LoadCredentialEncrypted= drop-in to the appcrane unit and removes the key from .env. systemd hands it to the service at start in $CREDENTIALS_DIRECTORY; the boot fails closed if it is missing or differs from a .env value. crane secrets status checks it; sudo crane rotate-key rotates into a new credential. Needs systemd 250+; app secretsmanager: references stay AWS-only.POST /api/identity/set-password (by session or API key) and admin password resets are refused with 403 SSO_REQUIRED and audited (sso-required-refused); only the IdP issues dashboard sessions. API keys, MCP keys and OAuth tokens keep working as API credentials. With no SSO provider enabled it has no effect. Migration 170 turns it on wherever a provider is enabled. Turn it off under Settings > Security, or on the host with crane sso enforce off if the IdP is down.appcrane_set_secret values in plaintext. A one-time boot scrub masks secret-named fields in them ([redacted:N chars]) and changes nothing else; backups taken before that boot still hold the values.APPCRANE_SECRETS_PROVIDER=aws-secrets-manager (the AWS SDK is not loaded otherwise). crane secrets migrate moves ENCRYPTION_KEY and ANTHROPIC_API_KEY out of .env into one platform secret; a secret that cannot be read stops the boot and never falls back to .env (crane secrets status checks it). An env var can hold secretsmanager:<NAME>[#field], always resolved under <prefix>/<app namespace>/<env>/ at deploy and restart; the namespace is random per app, so an app reaches only its own secrets and sandbox cannot read production. Dashboard: Settings > Security card and "Store in Secrets Manager" on an env var; MCP appcrane_set_secret(..., store="secrets_manager"). Template with the secret and the instance role's policy: deploy/aws/appcrane-secrets.yaml.ENCRYPTION_KEY, ANTHROPIC_API_KEY, SMTP_PASS, GRAPH_CLIENT_SECRET, GITHUB_TOKEN and CATALOG_GITHUB_TOKEN (the 2.135.0 denylist let a writer of that secret set GIT_SSH_COMMAND, NODE_EXTRA_CA_CERTS or HTTPS_PROXY on the server). The API rate limiter no longer gives a made-up X-API-Key its own bucket when the route authenticated with the Bearer beside it.dhk_user_* key. A user creates one at Settings > Account (POST /api/me/api-key/rotate creates when there is none, audited user-api-key-create); a platform admin can issue one from Users. Agent users still get a key at creation. GET /api/users reports has_api_key.git-upload-pack fetches are audited; Ask, plan feedback and /api/plan/:id/feedback run only for people allowed to reach the credentials in that container, and tokenized clone URLs are swept at boot; a managed app's GitHub URL is a platform-admin choice; repo URLs can never be read as git options; BuildKit npm cache ids are not derivable from the slug; reconcile takes the slug from the container name, not image labels; pre-flight never runs the image's code and never blocks the event loop, and leftover pre-flight containers are swept.promoteApp copies the sandbox release (instead of rebuilding from a commit) whenever the live sandbox deployment came from appcrane_deploy_artifact (commit_hash = sha256:<bundle digest>), on any source type; managed apps whose sandbox was built from a commit still rebuild at that commit. The copy carries the artifact identity to the production row, verifies the production tree against the sandbox tree_sha256, creates production/shared on a first promote, and leaves behind only the sandbox's own top-level .env and data symlinks (a real or nested data/ directory is part of the release).advice: [{ rule, severity, message, fix, evidence }] (services/deployAdvice.js): single-file-pushes (3+ pushes of at most 2 files to one app in 10 minutes; on push, patch, assemble, wait/deploy-log and appcrane_get_app), half-pushed-build (a failed build on a missing export or unresolved import with another push within 10 minutes; on appcrane_wait_deploy, appcrane_get_deploy_log, appcrane_get_app), large-inline-file (an inline file over 64 KB; suggests appcrane_managed_push_chunk + appcrane_managed_assemble) and upload-created-state-dir (appcrane_cp created a /data folder the app should create itself). A warn-level rule is written once per app into the agent context (marker <!-- appcrane-advice:<rule> -->), only when the caller is an app admin or owner. Advice never fails a call.services/pushCoalescer.js) and deployed once when that deploy ends; a local push deploys the branch tip at that moment. The push result says deploy_queued with queued_behind; queued follow-ups live in memory and a restart drops them (the commits stay).<crane-app-topbar> is defined by the entry chunk again, so an app tab opened before the Applications page shows its full bar.du), MCP appcrane_ls/appcrane_cat/staged-file copies and git clone/fetch no longer block the server while they run (they used to stall the identity check every app request goes through). The metrics sampler reads every container with one docker stats, one docker ps and one docker inspect per tick instead of two calls per app; CPU, memory and disk checks share one short-lived Docker snapshot (services/dockerSnapshot.js), dropped after every container start. Health probes are spread across their interval and disk-quota du runs 3 at a time. Deploys: generated Dockerfiles get a .dockerignore (.git, node_modules; an app's own is never replaced), ARG APP_BASE_PATH moves to just before the first instruction that needs it so a promote reuses the dependency layers, BuildKit builds cache npm downloads in a per-app cache (id=npm-<slug>, never shared between apps), health probes back off from 250 ms instead of sleeping 2 s, and base images are pulled 3 at a time. The admin UI is code-split (first load 326 kB instead of 1 MB), its hashed assets are cached for a year, Caddy compresses AppCrane's own UI and API responses (never event streams), polling pauses while the tab is hidden, and the Requests badge uses GET /api/enhancements/count (/owned/count, /my/count). SQL statements are prepared once and reused (db.js), GET /api/apps reads with one query per kind instead of ~11 per app, and migration 166 indexes deployments(app_id, env, started_at DESC)./data to 1000:1000; where AppCrane runs as an ordinary user a host chown cannot take back a folder another user owns (e.g. one left by appcrane_cp before 2.123.1), so the deploy now retries in a throwaway root container of the pinned busybox helper that mounts only that folder, with no network. Two deploys of one app starting in the same millisecond no longer collide on one release folder.docker image prune that lands while another build is between steps deletes the containerd lease that build is exporting its next layer under, and the build fails with failed to export layer: NotFound: lease does not exist (reproduced on Docker 29.6.1: a 51-step build with prunes beside it failed every time). Every deploy ends with such a prune, so two apps deploying at once could fail one of them. services/buildGate.js now holds builds and prunes apart on the host: any number of builds run together; the post-deploy image prune, the build-leftover sweep, old-image removal and the build-cache prune each wait until no build is running, and a build waits while one of them runs. Prunes of one kind asked for during a build are coalesced into one. The gate is inside the AppCrane process, so a docker image prune run by hand or by another tool on the host can still break a running classic build; BuildKit (install docker-buildx) is the other way out./var/log/caddy/access.log (50 MiB x 5, 14 days; CADDY_ACCESS_LOG_FILE moves it) instead of the journal, when that directory exists. Caddy's error records for the same requests are now redacted too: before, a failed request on a sign-in-exempt path wrote its query-string token to the journal in plain text.container-recovered / container-recovery-failed) and one e-mail to the owners per outage. A failed recovery no longer blocks every later attempt, and the health checker hands a missing container to it instead of running docker restart. An environment with no recorded commit and no release folder is not rebuilt from the branch head; it is reported instead.pro security-status, falling back to apt-get -s dist-upgrade), a pending reboot and whether unattended upgrades are on, shows the result in Job Health and at GET /api/server/host-vulns, and e-mails platform admins when something new appears (and at most once a week while it stays unresolved).auth_bypass_paths (or anywhere in a headless app) is proxied to the app instead of 308-redirected, because most HTTP clients (ureq, many SDKs) do not re-send a POST on a 308. GET and HEAD still redirect. The pass-through drops the request's Cookie header and forged X-AppCrane-* headers, removes Set-Cookie and every other origin-scoped response header (Clear-Site-Data, Access-Control-*, NEL, Report-To, Link, Refresh, Location, Cross-Origin-* and the like), forces HSTS to the platform value (2.125.18), and adds Content-Security-Policy: sandbox and nosniff, so no app content runs as the dashboard origin. Those requests are access-logged with query strings redacted (2.125.17).appcrane_push_staged_file copies with docker cp -a, so the file is owned by the container's user, not root, and an app running as node can rewrite it (2.125.16; appcrane_cp since 2.123.1).claude.ai, claude.com and localhost), and read-only connections and keys can no longer reveal secrets or read container files. Off-site backup manifests are signed: unsigned or forged sets are never restorable or counted by retention. Path role rules also hold against method-override headers, ?_method=, .json/.html suffixes and Next.js / SvelteKit / Nuxt data routes, and both old and new rules apply while a deploy starts.public/icon.png linked to a host file was published at the unauthenticated icon URL; a dangling Dockerfile link had the generated file written wherever it pointed). A declared volume whose host path passes through a link is refused, checked again after the old container stops. That check alone still left a window, so the host no longer walks a declared volume's path at all: its directory is created, seeded and chowned inside throwaway containers of a digest-pinned busybox (no network, only the CHOWN, DAC_OVERRIDE and FOWNER capabilities) that mount only the app's volumes/ directory; the seed content is read out of the app's image without running it (docker create + docker cp to a tar stream) and every archive entry is checked before it reaches tar (absolute or .. names, hard links out, and writes through a symlink the archive made are refused), and the app container gets it through one Docker volume bound to that directory with volume-subpath, which Docker resolves itself and refuses when it leads outside. Measured on Docker 29.6.1 against a container swapping a directory for a link: before, an app's /var/lib/odoo was mounted from a host directory outside its tree 5 times in 120 deploys; after, 0 in 60 (twice). Data stays where it was and container paths are unchanged. Needs Docker Engine 26+ (API 1.45); an older daemon keeps the host-path bind and logs a warning. Images with no shell (distroless, FROM scratch) deploy with declared volumes, and a declared volume is chowned to the image's own non-root USER (read from the image, else 1000:1000 as before). Deleting or renaming an app removes these volumes; the data on disk stays. Seeding /data now copies into a staging directory and renames entries in, so a link the app plants in /data is not followed. Setting container_command, volume_paths or catalog_slug now takes the Modify repo settings permission (owner by default) and restarting production takes Deploy to production — before, any member could set a command and restart production with its secrets. Over MCP, an app admin can no longer grant, change or remove the owner role, appcrane_rename_app is platform-admin only (an unknown tool role now denies instead of allowing), and appcrane_set_secret honours Write production env vars. Health probes follow a redirect only on the app's own port, skill fetch-by-URL uses the shared private-address guard (https only, no redirects), runtime logs accept only production or sandbox (/api/a/logs/b-production read app a-b's logs), frame_ancestors is validated on MCP and again when the Caddyfile is written, and the Ask Claude audit row records who asked.<slug>-coder (runs as app-coder), owned by the app's owner (its creator while still an owner, else the owner granted first), and addressable like any agent over appcrane_crew_send and A2A. A task to it passes Crew's usual gate — blocks, first contact, standing rules, declared approvals — except that first contact is decided per app coder: the first task from each sender to each app coder is held and the owner gets one e-mail; Allow then covers that sender on that app coder only (a person-level Allow for the owner's own agents does not reach app coders, and allowing one app's coder does not open another's), Allow once covers one task, and a standing rule whose scope names the app coder (sender declares e.g. action: "code", scope: "<slug>-coder") lets exactly that sender in. Once let through, AppCrane runs a coder turn on that app with the task as its instruction, in a conversation of the task's own: never a person's coder session, so the other agent neither sees nor continues the owner's history (a follow-up on the same task continues that task's conversation). The turn runs on the owner's credential (their own Claude login, else the platform API key; never the app's shared login, and never the sender's; with neither, the turn fails with that reason), with the coder's usual container, sandbox and read-only MCP key; the first-contact e-mail and the Crew log say "starts a coder session on , billed to you" and that the approval is for that app's coder only. The request is fenced and framed as another agent's request, not the owner's instruction. The coder's final reply comes back as the task's answer (a long one as an artifact); a reply ending in QUESTION FOR REQUESTER: sets input_required for the sender's owner, whose Reply starts a follow-up turn. An answer that looks like it carries a credential is withheld. One task per app at a time: a second one while the coder works, while another person holds the app's coder workspace (even idle), or while anyone's interactive coder session on the app is mid-turn, fails as busy rather than queuing; a person who starts a turn while a Crew turn runs waits in the app's work queue. The workspace is shared, so the Crew turn's changes show, unreleased, in the owner's Changes tab. Production and deletions always ask: for an app coder the task's own words are checked even when it declares no action or scope, and so is every later message (the sender's, or its owner answering the coder) before a follow-up turn runs; an owner's approval covers exactly the messages the question showed them in full, so one posted after they were asked, or left out to keep the question short, is checked again (the line that triggered the question is always shown first and whole, and the question says how many more will be asked about separately). Only the app coder's current owner decides its first contact; an ownership change deletes the previous owner's approvals for it. Nobody acts as an app coder (no inbox, token or removal), its name is reserved, and nothing it changes is released until the owner releases it. Renaming the app renames it; deleting the app removes it and its tasks; an ownership change fails the open tasks the previous owner approved. Slugs over 34 characters get no app coder. Every turn is audited (crew.app_coder.run / .done, with who it billed, never the text). Each Crew turn runs in its own short-lived container (appcrane-crew-<slug>-t<task>-<rand>, read-only root, 2 GB, 1 CPU, through memory admission) that mounts only the app's workspace, the task's own ~/.claude under DATA_DIR/crew-coder/<task> (so a follow-up turn resumes) and the one credential the turn uses (the owner's own Claude login or the platform API key, never the app's shared login): it cannot read or edit the owner's coder transcripts or the app's Claude login, or leave hooks or processes in the app container. Task homes are removed when the task closes, is deleted or is purged; a pre-upgrade transcript is copied into a task home only when the home is first created, and nothing AppCrane does to a task home follows a symlink a turn left there. Known gap: the workspace is shared on purpose (the owner reviews Crew changes in the Changes tab), so a Crew turn can still change files such as .claude/settings.json or CLAUDE.md that the owner's next turn loads.input_required and says whose decision it is (ask: sender_owner, the default, or my_owner); over A2A that is TASK_STATE_INPUT_REQUIRED with message.metadata.ask. The question goes to that one person in the dashboard only: a Crew log entry with Approve, Approve and always allow, Reply and Decline, and a count on the Crew nav item. No e-mail: e-mail stays for first contact. Nobody else can answer it, platform admins included. A reply reaches the agent as a message from a person (actor_kind: "human", A2A ROLE_USER); Approve or Reply resumes the task, Decline ends it rejected. A sender can also declare a task's action and scope (MCP args, A2A message.metadata), and the receiving person is then asked before their agent starts. Standing rules ("db-steward may migrate on sandbox", optional expiry) answer such questions without asking; they match only the exact agent, action and scope, are created from an approval or by hand on Crew → Rules & blocks, are revoked in one click, and are ended by blocking the agent. Rules apply only after blocks and first contact. Production and deletions always ask: a rule never covers a scope mentioning production or an action that deletes, nor a task whose title or question says so, and a task that leaves out action or scope matches no rule. Tasks that ran under a rule are marked with it in the Crew log. New read-only MCP tool appcrane_crew_rules; REST /api/crew/rules, /api/crew/decisions/:id, /api/crew/waiting. Every rule create, revoke and use and every decision is audited, without message bodies./events, GET /api/events) joins the audit log, deploys, dependency-scan findings, browser errors, Job Health failures and recoveries, server memory and disk alerts, memory admission, secret reveals, sign-ins and MCP tool calls; each event links back to its source row. There is a per-app timeline on the Manage page (GET /api/apps/:slug/events, for the app's owners and admins), a personal one (GET /api/me/events) and a "related" view of the same app or person within ±2 hours. Events are kept by severity: info 30 days, warning 90, critical 365 (Settings > Job Health), pruned daily.deployhub.json as "access": { "rules": [ { "path": "/admin/*", "roles": ["admin"] }, { "path": "/api/settings", "methods": ["PUT","POST","PATCH","DELETE"], "roles": ["admin"] }, { "path": "/api/users/*/delete", "roles": ["owner"] } ] }. path is exact, /x/* for everything under /x, or * for one segment; roles are per-app roles and each admits the roles above it (viewer < user < admin < owner); every matching rule applies and the strictest wins; unmatched paths stay open to anyone with access. Paths are matched case-insensitively after decoding and resolving ./.., so encoded or dotted variants cannot get around a rule. Invalid rules fail the deploy. Owners, admins and platform admins can add more rules on the Manage page (Access rules) without redeploying. Headless apps, auth-bypass paths and custom domains are not gated. A second open access request from the same person for the same app is refused (409).POST /api/me/mcp-keys with purpose: "onboarding"): the server labels it "App onboarding, ", expires it after 30 days (or the platform's shorter key window), and in the same step revokes that person's earlier onboarding keys that were never used. Keys that have been used, keys made on the MCP page, coder session keys and other people's keys are left alone; each revoke is audited. Platform admins get an "MCP keys (all users)" list on the MCP page with owner, label, last use ("never" highlighted) and expiry, a Revoke button per key, and "Revoke unused 30+ days", which shows the count before it revokes anything (a never-used key counts from when it was created; coder session keys are excluded). API: GET /api/admin/mcp-keys?status=live|all, DELETE /api/admin/mcp-keys/:id, POST /api/admin/mcp-keys/revoke-unused {days, dry_run}; the list never includes the key hash.409 RESTORE_IN_PROGRESS, and push-triggered deploys are skipped. The restore panel shows the current step; platform admins can pass keep_running: true to restore without stopping the app..env, app icons, per-app /data and volumes, managed-database dumps, and every managed-app git repository) as multipart uploads, with a manifest recording each object's SHA-256. Optional client-side AES-256-GCM encryption uses a key derived from ENCRYPTION_KEY (lose that key and encrypted backups cannot be recovered); optional SSE-S3 / SSE-KMS. The bucket keeps 7 daily / 4 weekly / 6 monthly backups by default. Settings > Backup can test the connection, list the backups in the bucket, and download or restore one with hash verification.--memory) and a guaranteed amount of half the max (--memory-reservation, cgroup memory.low). The guaranteed half is derived, never entered, and is never above the max. The server only promises the guaranteed halves; an app can burst up to its max while the server has memory free. That burst room is shared, not promised. Host swap (2.132.0): AppCrane keeps one swapfile of its own (/var/lib/appcrane/swapfile, APPCRANE_SWAPFILE to move it), sized to the sum of every deployed app's max in both environments minus the host's RAM and any swap it already has, rounded up to 256 MB. It is created at boot, re-sized every six hours and after a limit change, and recorded in /etc/fstab; it grows when needed, shrinks or goes away only while nothing is swapped out to it, and never takes free disk below the Job Health disk floor or warning percentage (with no room it is not created). Where the host has swap, each app container may swap out the part above its guarantee (--memory-swap = max + (max - guaranteed), so a 512 MB app gets 256 MB of swap): under pressure the kernel moves an app's burst to disk instead of OOM-killing it, so it slows down rather than dies. On a host without swap, --memory-swap stays equal to --memory. Running containers get the matching allowance live at boot. Linux, AppCrane running as root; APPCRANE_MANAGE_SWAP=0 turns the swapfile off. Managed databases, coder and helper containers get no swap. The Manage page and the Applications list show the guaranteed amount next to the RAM setting. App containers started before guaranteed memory existed are given theirs live (docker update --memory-reservation, no restart) when AppCrane starts (2.131.5); until then admission counted them at their full cap, so an upgraded server reported far more committed than its apps were promised.MemoryReservation) when it has one, otherwise at its cap; a new app start counts at half its max, while coder, crew-coder, auto-patch and managed database containers, which get no guaranteed amount, count at their full cap. A container with no limit, or one AppCrane did not start, counts at its current memory use rather than its cap (2.127.2), and the e-mail names each container's image and, in its subject and body, the server it came from (CRANE_DOMAIN, else the hostname; 2.131.5). Since 2.132.2 every AppCrane e-mail does the same: sendEmail() (services/mailServerName.js) turns a [AppCrane] subject into [AppCrane: <server>] and the platform-admin footer into "…of the AppCrane at ", so server alerts, security notices and deploy results all say which server sent them. Changing an app's RAM or CPU limit on the Manage page applies it to the running sandbox and production containers at once with docker update (memory and swap equal, the guaranteed amount moved to half the new max, no restart; 2.129.0); a container already using more than 90% of a lower limit keeps its old one until the next deploy or restart, and the page says which environments changed. In the default warn mode it starts anyway and e-mails platform admins the numbers and the largest commitments; in refuse mode the start is refused, the running version keeps serving, and the person who started it (or the owners, for an automatic deploy) is told to try again later. A redeploy, restart or rollback that does not raise the total is always allowed. Mode, reserve and alert thresholds are under Settings > Job Health. App containers run with --oom-score-adj=500 (databases 300) and AppCrane with -500, so under whole-host memory pressure the kernel kills apps first. To keep SSH and a security agent alive too, run systemctl edit ssh (and the agent's unit) and add [Service] / OOMScoreAdjust=-900.--cpu-shares 128 for apps and helpers, 256 for managed databases, 2 for builds; cgroup v2 weight 21 / 35 / 1 against the default 100), and AppCrane, Caddy and SSH run with CPUWeight=1000. install.sh sets this; an existing install writes the drop-in /etc/systemd/system/<unit>.d/50-appcrane-cpu-priority.conf ([Service] / CPUWeight=1000) for appcrane, caddy and ssh/sshd at startup when AppCrane runs as root, and otherwise says in Settings > Job Health what to run as root (write that file for each unit, then systemctl daemon-reload). docker build and nixpacks builds are capped at every core but one (APPCRANE_BUILD_CPUS) and the host's memory minus a reserve (APPCRANE_BUILD_MEMORY_MB); the classic builder and buildx 0.35+ apply the caps (buildx per build step), older buildx ignores them, and Job Health says which applies. Managed databases get a 1-CPU cap (MANAGED_DB_CPUS, or MANAGED_DB_<ENGINE>_CPUS) when a server is next created; an upgrade does not recreate a running database, and its status reports the cap as not applied until then. CPU admission works like memory admission against the host's cores minus a reserve (default 0.5 core or 25%): warn by default, refuse or off in Settings > Job Health. A CPU cap is a ceiling, not a reservation (an idle app uses none of it), so the caps of running containers may add up to the capacity times an over-commit ratio, 4 by default (cpu_overcommit_ratio, 1 to 64, same page); past that a start warns or is refused./ every 5 minutes, and e-mails platform admins once per resource and level per 6 hours when one turns warning or critical, plus a recovery e-mail.POST /api/identity/set-password now requires current_password once you have a password, refuses a new password equal to the current one, allows 5 wrong current passwords per 15 minutes per user, signs out every other session and audits the change (password-change / password-set / password-change-failed, never the password). A user with no password yet can still set one without it. Platform admins set another user's password from Users with a form that shows the server's error and a confirmation. /api/auth/me now returns has_password.POST ${CRANE_INTERNAL_URL}/api/service/tasks (header X-AppCrane-Service-Token: $APPCRANE_SERVICE_TOKEN; body subject, body, requester_user_id|requester_email, assignee_user_id|assignee_email, optional due_date, external_ref, url). Each user sees every task assigned to them or requested by them, across all apps, under My tasks (/tasks): they can reply and change status, and the requester can delete. The app reads, comments, changes status and deletes through the same API, and learns of replies by polling GET /api/service/tasks/events?since=<cursor> or through a signed https webhook (PUT /api/service/tasks/webhook, guarded against private and loopback targets). Assignees are e-mailed new tasks and the other party is e-mailed on replies and status changes. Nobody else, platform admins included, can see a task.GET /api/auth/view-as-options, GET/POST /api/auth/view-as, POST /api/auth/stop-viewing-as.claude mcp add --transport http appcrane https://<host>/api/mcp. You approve the client on a consent page (optionally read-only) and revoke it under Settings -> MCP -> Connected apps. Tokens work only on POST /api/mcp, are bound to it, rotate on refresh and follow your MCP app scope. API keys keep working.POST /api/client-errors, with tokens, query strings and e-mail addresses removed in the browser and again on the server. Identical errors are grouped with a count, kept 30 days, and platform admins review them under Settings -> Client Errors.<host> - AppCrane (for example apphub.example.com - AppCrane), so several AppCrane instances open side by side are easy to tell apart.agent/<user>/<session> first, the same rescue an idle eviction runs; if saving fails, the workspace is kept aside instead of deleted.agent/<user>/<session> branch, their session is paused and they are told where the work went. A running turn is never interrupted, and if their work cannot be saved nothing changes. The panel now says whose session you are looking at instead of offering a Resume and composer that would be refused, and the coder workspace is owned by the agent's own user.appcrane_get_app_scan tool), requests, app status and health, release history, deploy logs, sandbox runtime logs and masked env var names. The key is short-lived (revoked when the turn ends or the container is evicted, at most 3 h), works only on POST /api/mcp, can name no other app, and cannot deploy, reveal secrets or change anything. A .mcp.json in the app's workspace is now ignored by the coder.appcrane_get_secret, and the "same value in production and sandbox" warning is shown only to the app owner and platform admins. Before, a member who could reveal a sandbox value could learn a production value by matching the two fingerprints.release-notes.json, falling back to the release commit subject for a version without notes; npm test fails if the current version has no entry. When an app ships a new version to production, its owners and app admins get one "[AppCrane] What's new in vX" e-mail with the same text the app's What's New dialog shows and a link to open the app. The first production deploy, a redeploy of the same version, a rollback, sandbox deploys and failed deploys send nothing, each person gets each version once, and a mail problem never fails the deploy. Each app can turn it off on its app page. Both e-mails use the AppCrane wordmark and colours, with no images or web fonts.appcrane_get_secret). API: POST /api/apps/:slug/env/:env/:key/reveal; ?reveal=true still works./requests/<id> with its full text, app, status, who filed it and when, the done note and the coder session it went to; dependency-scan requests show the full advisory. Rows on the Requests page and the daily dependency digest link to it. "In coder" opens the session the request was actually sent to, and says so if that session has ended or belongs to someone else. The point-and-type focus fix now covers the Request side drawer and the Coder panel too.redirect: false). A rename redeploys each running environment once, and releases from before it can still be rolled back to (their stored paths move with the app; updating to 2.125.8 repairs the paths of apps renamed before that).409 CODER_BUSY). Each request links to its full page, and Mention puts #123 in your message, so you can write "do #123 but use blue": a #id that matches one of the app's open requests goes along with your message, the coder gets that request's text after your words, marked as request text, and the composer shows which ones before you send. API: GET /api/coder/:slug/requests[?include_closed=1]; POST /api/coder/:slug/requests/dispatch takes an optional session_id; a session message takes optional request_ids.https://<your AppCrane host>/git/<slug>.git, so a developer's local checkout can pull what the coder released. Username is anything; the password is your AppCrane API key. You must be a member of the app or a platform admin; an app you can't see, an unknown slug and a GitHub-backed app all answer the same 404. It is read-only: git push is refused with a pointer to the coder's Changes tab and appcrane_push_to_managed_app. Other users' agent/* rescue branches are hidden, and the server speaks git protocol v0 only, because v2 would let a client fetch a hidden commit by its ID. Each clone or fetch is audited, requests are capped at 32 MB and 10 minutes, and repeated bad keys are throttled. The clone URL is in the expanded app row on Applications, and git is now a reserved app slug.Upgrade proxy-addr 2.0.7 → 2.0.8 (GHSA-jqcg-44mw-7w3h), with the ecosystem, the environment it was found in and the advisory link, in the owner's queue to plan or hand to the coder like any other. It is opened once per app, package and advisory, whichever environment or scan finds it, so the daily scan does not create duplicates, and a request the owner closed is not reopened. It closes itself when the latest successful scan of every environment no longer finds the advisory; a failed scan never closes one. The daily vulnerability e-mail is unchanged except that each advisory now links to its request. These requests send no per-request e-mail and open no GitHub issue.GET /api/apps/:slug/env/production?reveal=true or appcrane_reveal_secret) now needs the app owner or a platform admin. App admins and members still manage keys and see the masked list and fingerprints; sandbox reveals are unchanged. Stored production .env files were already owner-only.npm install compiled it from source with node-gyp and a server without a C++ toolchain could not update at all. AppCrane is back on better-sqlite3 12.11.1, which downloads a ready-made binary for Node 22 on Linux; Dependabot no longer proposes the 13.x major (no known advisories either way).POST /a2a (JSON-RPC 2.0, SSE for streaming): SendMessage, SendStreamingMessage, GetTask, ListTasks, CancelTask, SubscribeToTask, the four push-notification config methods and GetExtendedAgentCard. It is another door into the same Crew rules — first contact held with one e-mail, blocks, rate limits, the secret scan, audit rows tagged agent, 30-day history. A hosted agent gets an agent token when it is registered (shown once, stored hashed, rotate or revoke it under Crew → My agents); it is sent as Authorization: Bearer and acts only as that one agent, through its owner. The public card is at /.well-known/agent-card.json; each agent is addressed with the spec's tenant field. Push notifications go only to https URLs, are refused for private, loopback, link-local and metadata addresses checked at connect time (so DNS rebinding cannot slip past), never follow redirects, time out after 10 s and keep no response body. A new Map tab in Crew draws agents (coloured by owner) and the tasks between them over the last 30 days as counts only, never titles or bodies; a block appears only to the person who placed it. Security fixes to Crew: a block or refusal now survives the blocked person deleting and re-registering the agent; first-contact e-mail is capped at one per sending person per receiving person per day; an app-scoped MCP key and an agent identity get no Crew; a read-only key's inbox read no longer writes. Mutual TLS for agents is not offered yet. An app can no longer be named a2a (or a2).appcrane_crew_register, _roster, _who_is_on, _send, _inbox, _reply). An agent registers once, owned by the person whose key it uses, and can never act as anyone else's agent (platform admins included). Agents of the same person talk freely. The first time another person's agent sends work to yours, the task is held and you get one e-mail; you decide in Crew → Crew log: Allow, Allow once, Refuse or Block. After that, everything is in the dashboard, never e-mail. Blocked and refused agents are rejected silently. Messages are scanned for credentials and refused if they carry one; agents are limited to 60 tasks and 300 messages an hour; task history is deleted after 30 days, while audit rows (tagged agent or human, never holding a title or message) stay. Hosted agents are registered from a pasted Agent Card; AppCrane does not fetch card URLs. Standing rules and approvals routed to people come in a later release. An app can no longer be named crew (or cr, cre): the dashboard owns /crew."database": { "engine": "postgres", "app_login": true } in deployhub.json adds <login>_app in production and in the separate sandbox database, injected as APP_DATABASE_URL (rename it with app_url_env). It can connect, SELECT/INSERT/UPDATE/DELETE every table and sequence in public, including tables the owner creates later (ALTER DEFAULT PRIVILEGES), and cannot CREATE, ALTER or DROP anything: Postgres answers permission denied for schema public, MariaDB CREATE command denied. DATABASE_URL stays the owner login for migrations. Same TLS and client-certificate rules as the owner (its own certificate, mounted read-only at /run/appcrane/db-app), same connection and statement limits, and backups re-apply its grants after a restore. Turning it off disables the login rather than dropping it, so older dumps still restore."sandbox_url_env": "SANDBOX_DATABASE_URL" (Postgres or MariaDB, deployhub.json databases only) gives the PRODUCTION container the sandbox database's owner URL, over TLS with a copy of the sandbox login's client certificate at /run/appcrane/db-sandbox, for pushing a masked copy of production's data down. The sandbox container gets nothing of production's: not the URL, not the login, not the certificate.Must be superuser). So AppCrane installs it for an app that asks ("extensions": ["pg_stat_statements"]) in an appcrane_stats schema, revokes the raw view from everyone, and exposes appcrane_stats.app_stat_statements(): this database's statements, run by this stage's own logins, nothing else. The module itself is a platform switch (Managed databases → Database limits, off by default); turning it on or off recreates the shared Postgres once (data kept, open connections drop and reconnect). AppCrane's own role statements are kept out of it, so no generated password lands in its query-text file.listDatabases returns only that one, which is stricter than Postgres, where pg_database leaks every database name. Redis instead gets a container per scope, because its ACLs cannot scope to a numbered database: a user pinned to db 1 can still reach db 2 with COPY ... DB and MOVE. Mongo runs as a single-node replica set, so change streams and transactions work["start-dev"]) and the paths it actually persists. Commands are argv arrays, never shell strings, so nothing in a stored command can become a second token. Declared paths survive the stop-and-recreate every redeploy performs, and 23 catalogue entries carry paths measured from their own images — so an app that was already installed starts keeping its state without anyone editing it. A newly created mount is seeded from the image's content first, because a bind mount (unlike a named volume) masks what the image ships there: without seeding, declaring /var/www/html would hand the app an empty directory where its 7,747 files used to beDATA_DIR/repos, not a GitHub repo: no service account, and the code never leaves the box. Repositories are written with git plumbing (no worktree), isolated from the host's git configuration and hooks, and when two pushes race the newest wins — the push that landed first is parked under a refs/dropped/ ref, reported back to the pusher, and carried in backups, so it can be recovered. A push can also delete files: appcrane_push_to_managed_app takes a deletions list of repo-relative paths applied to the same commit as the writes, so one call is still one commit (send files: [] for a pure deletion, and read the removed paths back from the response's deleted). Deleting a path the branch does not have is refused by name instead of committed as a no-op — at the git plumbing level it is silent — no path may be written and deleted in the same push, and a push that would leave the repository with no files at all is refused. The .env* rule below covers deletions as well as writes. GitHub-backed managed apps do not get this: GitHub's contents API cannot express a deletion, so one is refused rather than quietly dropped. Deploys clone from the local repository and the pre-deploy commit check reads it directly. A push deploys on its own when the app has auto-deploy on for that environment (the same flags and branch filter a GitHub webhook uses), and check-for-updates compares against the local branch. Ask Claude answers from the repository itself through read-only file listing, reading and search pinned to one commit — no container is started; it needs the server's ANTHROPIC_API_KEY (per-app subscription credentials are not used for these apps). AppStudio analyzes the repository and files the result as a new request instead of writing code. A coder session works for these apps and ONLY these apps: the workspace is cloned from the local repository with no credential of any kind, and a GitHub-backed app is refused with a named reason rather than given a session whose work it could never release. Nothing in AppCrane pushes a coder workspace to a GitHub remote any more. The session has a UI: a Coder button appears in an app's top bar on the Sandbox tab (the coder's work is reviewed and released there; switching to Production closes it), opening a chat docked beside the running app rather than over it, with the element picker feeding what you point at into the prompt. On apps where it cannot run it is muted and explains what it would take. Its Changes tab lists what the agent touched, file by file with diffs, and you release only what you tick. Right-clicking an environment pill offers Redeploy, and Promote to Production on sandbox — both confirm first, and both appear only for the people the server would accept: the app's owner, or a platform admin. Each message picks its own model from a list the server serves (so the picker cannot drift from what is allowed), and you can keep typing while a turn runs: follow-ups queue server-side, show as pending, survive a reload, and can be cancelled — stopping a turn clears them rather than applying instructions written for work that was abandoned. Releasing is a choice, not a sweep — GET /api/coder/:slug/session/:id/changes lists what the agent changed, with a diff per file, and POST .../release takes only the paths you name, pushes them to the local repository as one commit, and lets the ordinary auto-deploy carry them to sandbox. A file the agent deleted is released as a deletion, so a rename is one commit rather than a stale file left behind. Releasing is gated on app admin, the same bar as any other write to a managed repository, so a person who may talk to the agent does not automatically ship its work. When the idle container is evicted, anything not yet released is committed to agent/<userId>/<sessionId> first — a safety net, never a release: that branch is refused if it matches the branch a push would deploy, so unreviewed work cannot reach sandbox by being walked away from. The agent's conversation is kept too, so returning to a session resumes it instead of starting over, across idle evictions and AppCrane restarts alike. Existing GitHub-backed managed apps move over on their own: on the first boot after upgrading, before AppCrane starts serving, each one is fetched (branches and tags only) into a staging copy and switched to the local repository only when every branch and tag matches GitHub exactly; anything else leaves that app on GitHub and records why. Apps move one at a time, each git operation is killed at a per-app limit and the whole run at a total budget (apps not reached are retried next boot), a failure never stops boot, and the GitHub token is passed to git through its environment, never a URL, config file or command line. While it runs, sign-in for hosted apps is unavailable. Platform admins can see each app's outcome at GET /api/github-service/repo-migration; set APPCRANE_REPO_MIGRATION=off to skip it.node_modules and .git at any depth are left out of the repository, symlinks are committed as symlinks (never followed; one pointing outside the release is left out) and the excluded paths are listed per app. Every .env* file, at the root or nested, is kept as well, but never in git: its content is stored encrypted in AppCrane's database (so it travels in the data backup) and written back, at its original path and with its original file mode, into that environment's release on every deploy before the build, so build-time keys such as VITE_* reach the build exactly as they did from the bundle. The stored file is the base, and that environment's AppCrane environment variables are layered on each time it is written: in a file a production build loads (.env, .env.local, .env.production, .env.production.local, .env.sandbox, .env.sandbox.local, at the root or nested) a key that is also a variable takes the variable's value, with only that line rewritten and comments, order and formatting kept; a variable that no root-level loadable file defines is appended to the root .env (created with mode 0600 if the app has none), never to a nested file; example, sample and template files are written as stored. Deploys never change the stored copy, so editing or deleting a variable changes the file on the next deploy that builds a new image (an unchanged commit reuses its cached image). Because the file is part of the build context, its values, including appended variables, are inside the built image. The deploy log names the overridden and appended keys, never their values. Production only ever gets production's files and sandbox only sandbox's; a .env symlink pointing outside the release (what promote leaves in production) is not kept; the conversion status shows platform admins the stored paths, never the contents. An app's owner (or a platform admin assigned to the app) manages the stored files on the app page under Stored .env files, or through GET /api/apps/:slug/env-files (paths, env, mode, size and time, no content), GET /api/apps/:slug/env-files/content?env=&path= (the content; audited as env_file.reveal, throttled and notified like an env-var reveal, sharing its budget), PUT /api/apps/:slug/env-files with { env, path, content } (create or replace; encoding: "base64" for raw bytes; a new file gets mode 0600, a replaced one keeps its mode; at most 1 MiB of valid UTF-8 that parses as dotenv, a parse error is reported by line number without echoing the content) and DELETE /api/apps/:slug/env-files?env=&path=. Paths follow the same rule as the restore (relative, no .. or .git, a .env* file name). Changes are audited as env_file.replace / env_file.delete with the path only and take effect on the next deploy of that environment. Other app members get 403 and an app that is not Crane-hosted gets 409. A push to a Crane-hosted app's repository that contains any .env* file (by file name, at any depth, in any letter case, .env.example included) is refused whole with ENV_FILE_IN_PUSH and nothing is committed; appcrane_push_to_managed_app and appcrane_managed_patch refuse it before touching the repository, appcrane_managed_push_chunk at the first part, and appcrane_managed_assemble before committing. The error lists the paths, never the content, and points to environment variables (appcrane_set_secret) or the stored file; a refused file's content is also kept out of the MCP audit record. GitHub-backed managed apps are not affected. Values from the bundled root .env, overridden by .env.production for production or .env.sandbox for sandbox, become the app's encrypted environment variables; a variable already set in AppCrane is never overwritten, example/sample/template, development and nested files are not imported, and no value is ever logged or recorded, only key names. An app is left as an upload app, with the reason recorded, when its build depends on the bundled node_modules, when its releases are missing, when nothing but excluded content remains, when a .env to import is malformed, when a .env file is over 1 MiB, or when it is over the size cap (512 MiB, APPCRANE_UPLOAD_CONVERSION_MAX_BYTES). Once converted, bundle uploads for that app are refused with 409; push with appcrane_push_to_managed_app instead. The upload release directories stay on disk: to revert, set the app's source_type back to upload and repo_backend to NULL and keep its repository where it is (the next boot then leaves it alone). Platform admins see each app's outcome at GET /api/github-service/upload-conversion; set APPCRANE_UPLOAD_CONVERSION=off to skip it. When sandbox was running different code, its commit is the newest one, so every later deploy — production included — builds sandbox's code; production cannot be redeployed from its own earlier commit, because the pre-deploy check accepts only the latest pushed commit. Legacy upload apps (source_type='managed_legacy', renamed by v2.3.1) are converted too, unless they carry a github_url; the status route's original_source_type / revert.source_type says which type a converted app reverts to. If only one environment still has its uploaded release on disk (for example sandbox after its last uploads failed), the app converts from that one; the other environment's next deploy builds the repository's newest commit./login, /launch) drops X-Frame-Options and sends the app's frame-ancestors policy, and only when the redirect names that app. The deep link now survives sign-in, so a signed-out visitor lands on the app they asked for rather than the dashboard. Password sign-in completes in the frame; OIDC and SAML hand off to the identity provider's own page, which the provider may refuse to frame. AppCrane's embedding policy also wins over the app's own Content-Security-Policy: the frame-ancestors the app sends for itself is rewritten to the configured policy at the edge (everything else in the app's CSP — its script-src and nonce, object-src, form-action — is passed through untouched), so an app hard-coded to frame-ancestors 'none' is still embeddable once someone allows it. When the sign-in page detects it is framed, OIDC and SAML instead show a Sign in button that opens the identity provider in a small top-level popup, which closes itself once signed in while the frame reloads into the app. If that sign-in fails (the provider refuses, there is no account, or the attempt expires) the popup stays open with a short reason and a Close button, and the frame stops waiting at once and offers Sign in again; a popup simply closed cannot be detected behind a provider's Cross-Origin-Opener-Policy, so the button stays usable while the frame waits. The sign-in page confirms a stored session with the server before sending the frame back to the app, so a dead session shows the sign-in form, a user with no role on the app sees "You don't have access", and a chain that keeps bouncing stops after three tries with "Sign-in couldn't complete" instead of reloading forever./data and every declared volume), one archive per managed-app code repository, and a streamed archive of the container images themselves, saved by digest. The data archive records which repositories and commits it expects, so restoring it next to a repository archive from a different backup is reported rather than silently mixed. Export runs off the main thread, so hosted apps keep answering their sign-in checks while a backup is taken, and restore streams the upload to disk with a free-space check instead of a fixed size cap. Symbolic links are archived as links, never followed, so an app cannot pull a host file into a backup through its own /data. The scheduled off-site (S3) backup uploads the data archive only, and is a no-op until a bucket and credentials are entered — so a local nightly backup is on by default instead of nothing being on by default: it writes deployhub.db and .env to DATA_DIR/backups/local at 04:00 and keeps the newest seven (Settings → Backup changes the hour, the count, or switches it off). That covers a corrupted, deleted or badly-restored database and nothing else — not app icons, per-app /data, declared volumes, repositories or images, which would make an unattended nightly job unbounded on the very disk it is protecting. It is not a substitute for an off-site copy, so until an upload has actually completed every backup surface — the settings API, appcrane_get_backup_status, the dashboard and the boot log — says "No off-site copy — everything AppCrane knows lives on this host." A stored bucket with the schedule off, and a schedule switched on that has never finished, both count as no copy. That matters because a registry is not a backup: bitnami/* images 404 after their registry change, and medusajs/medusa, vendureio/vendure and crater/crater all 404 today. When a pull fails, a deploy now falls back to bytes already on the host instead of refusing to start/data and the app's declared volumes is lost. AppCrane inspects the running container and warns only when state is genuinely at risk, naming what survives and what does not. It finds that state two ways: paths the image declares as VOLUME that nothing mounts, and paths the app has actually written (docker diff) that no mount covers — the second matters because VOLUME is a floor, and every Laravel app persisting to storage/ declares none at all. Measured across eight real images, only the app with genuinely unprotected state was flagged; a warning that fires on safe apps just teaches people to click through it. The dashboard requires a second confirmation; the API and MCP require an explicit acknowledge_data_loss, failing closed — most deploys here come from an agent, and a UI-only warning would miss themadmin role was admin on every app without anyone assigning them, which contradicts the rule that app access is granted per app. Existing holders are now plain users: they keep exactly the apps they were explicitly assigned to, at that app role, and lose the implicit access to every other app. Nobody is promoted. The role can no longer be set: PUT /api/users/:id/role and POST /api/users answer 400, and the database refuses it too (migration 105). Platform admin is unchanged, and so is the per-app admin role — app admins keep everything they had. Anything that used to be open to "admin or platform admin" is now platform admin only.show_sandbox on PUT /api/apps/:slug and appcrane_update_app; the app list and detail responses carry show_sandbox and a per-caller sandbox_visible computed on the server..git/config against an allowlist and then ran host git, but the agent's container keeps running between those two steps, so a loop swapping the config (a filter.<name>.clean driver plus * filter=<name> in .gitattributes) could slip in after the check and have the host run a command as the AppCrane user. Measured against v2.103.1: a planted command reached a host-only path within 4 to 40 attempts in each of six runs. Every workspace git now runs inside a container: docker exec into the session's own container as its studio user (uid 100) when it is running, otherwise a throwaway helper from the studio image with no network, every capability dropped, no-new-privileges, a read-only root filesystem, pid/memory/CPU limits and only the workspace mounted. A command the agent plants therefore runs as the agent, in its own sandbox. The allowlist and the hardened -c options stay as a second layer. The eviction rescue no longer pushes from the workspace: the helper writes a git bundle of the new commits, and AppCrane unbundles it into the managed repository on the host (a bundle carries objects and refs, never config or hooks) and moves agent/<user>/<session> only by fast-forward. The Changes tab costs two container round trips however many files changed (50 changed files: 240 ms by exec, 490 ms in a helper; 700 ms with the old host git). AppStudio had the same problem with no check at all: after the coding container exited, the host ran git add/commit, a frontend npm install / npm run build (the agent's package.json scripts) and git push origin with the GitHub token. Those now run in helpers too (npm install with registry access, the build without network, a per-app npm cache under DATA_DIR/appstudio-npm-cache), the deployhub.json version sync runs in a helper, and the push leaves as a bundle that AppCrane loads into a fresh repository it owns and pushes to the app's GitHub URL, so the token never enters a container or meets a config file the agent wrote. The codebase summary's git reads of a coder workspace run in the container too.DATA_DIR/.env or deployhub.db, and commit it into the app's repository or put it in the summary prompt. Measured against v2.104.0 with a container swapping a file and a symlink to a host-only file: 199 of 253,317 release reads in 20 s returned the host file, the first after 6,071 attempts. File contents now leave a workspace only through a fixed reader that runs inside the session's container (or a confined helper), one container round trip per release or summary: it opens files without following a final symlink, checks that the opened file really is <workspace>/<path> (which catches a swapped parent directory), and reports a symlink as a symlink. A release that names a symlink is refused, as before (releases never carried symlinks). Per-file and per-release limits: 5 MiB per file (unchanged) and 48 MiB per release; a larger selection is refused with a message to release it in smaller groups. The summary now reads key files from the commit it describes (git's object store), not from uncommitted edits. Against real Docker with the same swap loop, 240 reads by exec and through a helper never returned the host file.SELF_UPDATE_STALE_DEPLOY_MINUTES) is treated as stale and no longer blocks; nothing is changed on those rows. The refusal now lists each deployment it is waiting on (app, environment, status, start time, age) and the stale ones it ignored. In the dashboard, the update shows an "Update waiting on N deployment(s)" dialog: Wait retries every 30 s and starts the update once they finish, Force update interrupts them (those apps will need redeploying). A connection dropped while the update runs now shows "updating — reconnecting" and waits for the new version instead of reporting a failure. Rows left in flight by a previous process are still marked failed at boot, as before.PUT /api/managed-db/encryption). AppCrane generates one 256-bit key, stores it only encrypted with ENCRYPTION_KEY in deployhub.db, and writes the key file for the file_key_management plugin under DATA_DIR/managed-db/_tde/mariadb (0700, outside the database's data volume, mounted read-only). The key file is itself encrypted with a secret derived from ENCRYPTION_KEY that reaches the container only through its start environment, so a copy of DATA_DIR alone cannot decrypt the data. The server restarts once (connections drop once) with InnoDB tables, the redo log, temporary tablespaces and files, and new Aria tables encrypted (AES-CTR), and four background threads encrypt existing tables; the card shows progress from information_schema.INNODB_TABLESPACES_ENCRYPTION. Turning it off needs confirmation, restarts with encryption off and decrypts in the background with the key still loaded; the key can be unloaded (and optionally deleted) only when the running server reports no encrypted InnoDB tablespace and aria_chk finds no encrypted Aria table — AppCrane rebuilds encrypted Aria tables itself, including the system tables of a server that started encrypted, and if MariaDB will not start without the key, it loads the key again. The key travels in every backup that carries deployhub.db and is rewritten to disk at boot and before MariaDB starts. ENCRYPTION_KEY is now required to read MariaDB data: lose it and the encrypted data is lost. The key is on the same server as the data, so this protects copied database files, dumps of the data volume and stray snapshots, not someone holding the whole disk. Postgres has no community equivalent. Pre-existing Aria tables in MariaDB's own mysql.* schema stay unencrypted; app Aria/MyISAM tables are converted to InnoDB (see below). The Aria transaction log cannot be encrypted by MariaDB; it is kept short (see below) but its current file stays plaintext.aria_log.*, MDEV-8587), and Aria/MyISAM app tables were left outside the encrypted InnoDB tablespaces. While encryption is on, every ensure of the shared MariaDB (each deploy or restart that uses it, and turning encryption on) now converts each Aria or MyISAM table in an AppCrane-provisioned database to InnoDB with ALTER TABLE ... ENGINE=InnoDB, one table at a time, never touching mysql, sys, performance_schema or information_schema. Each converted table is logged; a table InnoDB refuses (for example Row size too large) is left as it is, logged with the engine's error and listed on the encryption card, and is tried again on the next ensure. A table whose name needs quoting is listed rather than converted. The server is also started with aria_log_purge_type=immediate, aria_checkpoint_interval=30 and aria_log_file_size=8388608 (8 MiB, the minimum; the default is 1 GiB), so old Aria log files are deleted at the next checkpoint once no longer needed; an already-encrypted server is recreated once to pick these up. The card says Aria log: not encryptable by MariaDB; kept short (purged at each checkpoint, every 30 s). What remains plaintext: the current Aria log file (up to 8 MiB) and what it holds since it was opened — mainly changes to MariaDB's own system tables (logins, password hashes, grants), and rows written to an Aria table before it was converted, until the file rolls over./api/enhancements from its page, and the root-path fallback (which sends an app page's /api/... calls into that app) redirected it into the app, which answered 404. /api/enhancements now passes through to AppCrane like /api/me and /api/notices.managed-db/<engine>/<db>.dump for every app database, kept with the other 7 nightly copies, so a host without off-site backup still has a scheduled copy of every app's database. The free-space check still refuses a run that would not fit.DATA_DIR/managed-db. Each database is now dumped logically inside its engine container with AppCrane's admin path (no password in any command line): pg_dump --format=custom, mariadb-dump --single-transaction --routines --triggers, mongodump --archive --gzip, and the Redis RDB after a BGSAVE, one database per dump and streamed to disk. A per-app backup (app page → Backups, or POST /api/apps/:slug/backup/:env) now includes the databases that environment uses, listed with their size; restoring it restores them too unless you untick the box (include_database: false). Restoring production — and a sandbox backup whose database is the one production shares — is the app owner's or a platform admin's call. The load runs as the app's own database login, never as the superuser, so code inside a dump (a function in a CHECK constraint, a trigger, a DEFINER) can do no more than the app could already do; afterwards the login's TLS/certificate requirement, connection limit and grants are put back. A backup can only be restored into the app and database it was taken from. The full export and the nightly off-site upload carry every database under managed-db/<engine>/<db>.dump, and a platform admin can restore one app's database from such an archive (POST /api/settings/backup/restore-database). The local nightly archive still holds only deployhub.db and .env. There is no point-in-time recovery.deployhub.json (production and its sandbox) now requires TLS and the app's own client certificate (CN = its login, renewed automatically before expiry, mounted read-only into that one container at /run/appcrane/db/) and the password; plain-text and wrong-certificate connections are refused by the engine. Existing ones are converted on the app's next deploy or restart — update the connection code then (node-postgres and the mongodb driver read the injected URL as is; mysql2 and ioredis need the three files passed explicitly, see the onboarding guide). Catalogue apps keep working in plain text; TLS is offered to them. Mongo logins of this kind authenticate by certificate alone, and Redis checks that a certificate is AppCrane-issued rather than which app it names. Every Postgres and MariaDB login is also capped at 25 connections with a 5-minute statement timeout, Postgres max_connections goes from 100 to 300 and its container's memory cap from 512 MB to 1024 MB to match (measured: ~2.4 MB per open session) — the limits are platform-admin settings under Dashboard → Managed Databases —, and a login that fails more than 5 times in 10 minutes is written to the audit log and e-mailed to platform admins, naming the login and the database it tried. The first deploy or restart after upgrading recreates each shared database server once, on its existing data, to turn TLS on.certificate verify failed). The app gets redis-client.crt / .key / .pem next to its existing files in /run/appcrane/db/, with REDIS_TLS_CA_FILE, REDIS_TLS_CERT_FILE and REDIS_TLS_KEY_FILE (and DB_*_FILE pointing at them for a Redis database); Postgres, MariaDB and Mongo keep client.*. Existing TLS Redis instances are converted on the app's next deploy or restart: the instance restarts trusting only its own CA, on its existing data. Failed Redis logins, which Redis records only in its ACL LOG, are now read every 3 minutes by entry id and count (nothing counted twice; the log is not reset) and go through the same threshold, audit-log row and admin e-mail as the other engines, naming the username and the target instance.client.* files (and vice versa) and the remaining database refused the app until its next deploy or restart. Deprovisioning now removes only that database's files: redis-client.* for a Redis, client.* for Postgres/MariaDB/Mongo (one certificate per login, removed only when the login's last non-Redis database goes). The shared ca.crt and the directory go with the last certificate; nothing is followed through a symlink, and a file AppCrane did not write keeps the directory in place.deployhub.json was shared by sandbox and production unless Separate sandbox database was on, and members who may not deploy production can still deploy sandbox code, so one of them could ship a few lines that read or rewrote production's data. A deployhub.json database is now always separate per stage: sandbox gets its own crane_a<id>_sandbox database on its next deploy or restart. The setting still decides for catalogue apps, whose code members do not write.deployhub.json — only catalogue apps had database credentials injected, and since no API returns the password, a custom app could have a database provisioned and no way to connect to it. Add "database": { "engine": "postgres" } (or mariadb, mongo, redis) and the deploy provisions the app's database if it does not exist yet, then injects DATABASE_URL (MONGODB_URI for mongo, REDIS_URL for redis). url_env renames the URL variable (null drops it) and env maps host, port, name, user and password onto discrete variables. The block is validated before the build: an unknown engine or key, an invalid variable name, or a name AppCrane sets itself (PORT, NODE_ENV, DATA_DIR, FE_PORT, APP_BASE_PATH, CRANE_URL, CRANE_INTERNAL_URL, APPCRANE_*) fails the deploy naming the field. An env var the app sets itself still wins, a catalogue entry's own needs win over the block (the deploy log says it was ignored), a restart re-injects from the live release's manifest, and the log shows variable names only. By default the database is per app, shared by sandbox and production. A per-app Separate sandbox database setting (off by default; migration 107) gives sandbox its own: production keeps its existing database, login and password untouched, and the next sandbox deploy or restart provisions an empty crane_a<id>_sandbox database with its own login for each engine the app needs (catalogue apps too) and injects it under the same variable names. Turning it off sends sandbox back to the shared database on its next deploy or restart and does not drop the sandbox database; the owner or a platform admin drops it from the app's new Managed databases card (DELETE /api/apps/:slug/database?engine=…&env=sandbox&confirm=<slug>). The owner, an app admin or a platform admin changes it from that card, separate_sandbox_db on PUT /api/apps/:slug, or appcrane_update_app; GET /api/apps/:slug/database and appcrane_list_databases report each database's env, by_env and the setting, never a password.PUT /api/enhancements/:id/bucket and POST /api/enhancements/:id/set-status take note, and appcrane_set_request_status has a note argument. The note is stored on the request (migration 106, done_note), added to the requester's email under "What was done:" ("Note:" for won't-do) and to the platform-admin copy, and shown to the requester in My Requests. Control characters other than newlines are stripped; it never goes into the subject. No note, and the email reads as before..git/ included) is the agent's to rewrite, and safe.directory made the host honour core.fsmonitor, filter drivers, include.path and .git/commondir. Every host git call there now checks the workspace config against an allowlist first and refuses anything else, and runs with hooks, fsmonitor and network transports switched off; the rescue push goes to the managed repo by path, not to the agent-writable origin. Coder sessions take messages, attachments, resumes and follow-up edits only from their owner: every turn runs on the owner's personal Claude token, and any app member could spend it. App admins may still stop a colleague's turn. App slugs that a platform path starts with (a, api, login, mcp…) or that end in -sandbox are refused on create and rename: Caddy sorts the platform's catch-all route last, so an app named a received every /api/... request, cookies and API keys included. Existing apps are not re-checked. Issuing an MCP key for another user is platform-admin only, like resetting their password; the key authenticates as that user, so a global admin could become a platform admin.-f; a digest another app deployed or names is kept, so a shared repository like odoo:19 keeps the other apps' rollback images — v2.97.7, the first cut swept the whole repository; v2.97.8 compares image IDs rather than ref text, since odoo@sha256:x and docker.io/library/odoo@sha256:x are one image, and finds built images by their appcrane-<slug>-<env> repository as well as labels, which any pulled image can carry; the same release moves the admin SPA's build-time source-map-js to 1.2.2, GHSA-68fv-2mgg-jv7q), and a failed deploy removes the image it built, without -f, so Docker refuses if any container still uses it. A cached image the attempt reused, such as a rollback target, is never removed. Before, the failed image was the newest, so the next keep-N prune could keep it and delete the last good one.resource_limits: {…}) while PUT /api/apps/:slug read only top-level max_ram_mb / max_cpu_percent, so nothing was saved, the card said "saved", and a non-platform-admin was never told limits are platform-admin only. The card now sends the fields the server reads, the server also accepts the nested form, and the button says Save (limits apply on the next deploy or restart, as before).login or login-failed with the method, the reason (unknown_user, bad_password, deactivated, no_account, an SSO-link refusal) and the client IP, never a password or token. Ask Claude (ask), coder dispatch (coder-dispatch) and file staging (file-stage) are audited too; a question or prompt is recorded by its length only, since it can contain anything. proxy-addr is 2.0.8 (GHSA-jqcg-44mw-7w3h: a trust subnet written as a short IPv4-mapped IPv6 prefix trusted every client's X-Forwarded-For).PUT /api/users/:id/password) is now platform-admin only; a global admin could reset a platform admin's password and sign in as them. Destructive production operations are the app owner's or a platform admin's call: deleting a production env var, dropping the app's managed database (shared by sandbox and production), restoring a production backup, and copying production data into sandbox. Runtime logs (REST /api/<slug>/logs/<env> and MCP appcrane_get_logs, which skipped the check entirely) are visible to the app owner or a platform admin only. Tenant purge can no longer be redirected into another app by a symbolic link planted in one app's tenants/: when the app has a container, the delete runs inside a throwaway helper container (no network, no-new-privileges) that mounts only that app's data, so a link resolves inside the helper; with no container, the host path is walked with lstat and nothing is deleted if any part is a link (v2.97.3: the first fix checked and then deleted on the host, which a running app could race). SSO linking (OIDC and SAML, one shared rule in services/ssoLink.js): an account already linked to one SSO identity is never moved to another, and OIDC links an existing account by e-mail, or updates its stored e-mail, only when the IdP sends email_verified: true. For an IdP that never sends the claim (e.g. Microsoft Entra), set OIDC_ALLOW_UNVERIFIED_EMAIL_LINK=1 to allow first-time linking by e-mail.deploy.production permission on every path, not only POST /deploy/:env: the upload deploy, appcrane_deploy_artifact, appcrane_push_staged_file, and the webhook's auto_deploy_prod switch (turning it on, or changing branch_filter while it is on, which picks the code production follows) let any app member put code into production. Turning it off stays open to members. Replacing an app's member list (PUT /api/apps/:slug/users) needs the owner or a platform admin, as PUT /:slug/roles does, and refuses to remove every owner; any member could evict the owners. appcrane_cp no longer follows symbolic links the app planted in its /data: whenever the app has a container, running or stopped, it streams the file in with docker cp (links resolve inside the container); only for an app with no container at all does it write on the host, walking the path and refusing any link; if Docker cannot say which, nothing is written. Before, an app admin got a file write anywhere the AppCrane process could write. Path segments starting with - are refused, and tar gets -- before the path.POST /api/apps/:slug/restart/:env rebuilds the container's environment from scratch and never re-added APPCRANE_TENANT_ROOT or APPCRANE_TENANT_QUOTA_BYTES, which a deploy derives from deployhub.json, so a restarted multitenant app lost its per-user quota until the next deploy. Restart now carries exactly those two over from the container it replaces (falling back to the tenant root for an app marked multitenant), and gives the app its identity-signing secret like a deploy does.X-AppCrane-Auth-Via is covered by the identity signature — /api/identity/verify and the app MCP identity also send X-AppCrane-Identity-Sig-V2, which signs Auth-Via along with the v1 headers; appcrane-tenant 1.3.0 verifies it and returns authVia. v1 is unchanged, so apps on older appcrane-tenant keep working.X-AppCrane-* identity headers without checking X-AppCrane-Identity-Sig-V2; once per app, never reopened (server/services/identityUpgradeRequests.js, migration 160).X-AppCrane-* headers, but two routes skip the proxy: a raw tcp/dual port, and on Docker Desktop (measured; blocked on Linux) a sibling container reaching an app's loopback port via host.docker.internal, which would let one compromised app act as any user of another. /api/identity/verify now adds X-AppCrane-Identity-Ts and X-AppCrane-Identity-Sig (HMAC-SHA256, a secret per app and environment, stored encrypted, injected as APPCRANE_IDENTITY_SECRET on every deploy and restart, so a sandbox cannot sign identity its production believes), and appcrane-tenant 1.2.0 adds verifyIdentity(req); tenantKey()/tenantDb() verify automatically when the secret is set. Apps pick up the secret on their next deploy, and apps that do not verify behave as before.dual keeps its UDP setting, and reads now report it (data_plane_protocol: 'udp') instead of the effective tcp. Before, a client that switched the app back to dual and sent back what it had read silently turned a UDP relay into a TCP one. What a non-dual app publishes is unchanged: TCP.data_plane_protocol: 'udp' (REST PUT /api/apps/:slug or appcrane_set_app_ingress, platform admins only) publishes a dual app's raw data plane as <host>:<port>/udp, for things like a WireGuard relay. The HTTP control plane and its health check stay on TCP through Caddy. Only dual can be UDP: a tcp app's published port is its HTTP origin. Every app reports data_plane_protocol, and sending back the reported value is accepted rather than refused. The exposure warning and the onboarding guide give a -p udp DOCKER-USER rule for a UDP data plane, since a TCP rule does not cover it. Ingress drift detection compares the protocol too.synchronous = NORMAL exactly as 11 did, so the durability behaviour documented in v2.93.2 is unchanged. npm audit --omit=dev: 0 vulnerabilities.appcrane-tenant 1.1.0 takes tenantDb(req, { migrations: [step1, step2, ...] }) and upgrades each user's file lazily, the first time it is opened after a deploy, keyed on PRAGMA user_version: every pending step runs in one IMMEDIATE transaction, so a failing step leaves the file on its old version, and two requests opening the same file at once upgrade it once. A file already ahead of the list (code rolled back) is opened unchanged. The multitenant-notes example uses it.docker diff 10 seconds. On a host with the containerd snapshotter and two dozen containers it took 4-10 s on containers with zero changed paths, so the slow runs were killed, reported as "Command failed", and every redeploy asked for an acknowledgement. The limit is now 60 seconds, and a real timeout says "docker diff did not finish within 60 s". An unreadable container is still reported as at-risk.app_users, the tier in app_user_roles. They drifted. Older upgrade steps (migrations 042/048) and the boot-time owner backfill made app creators owners without a membership row, so an owner, shown as owner in the Users dialog, was refused their own app's env vars and data with "Admin access does not include app data/env". Access now lives in one place, app_user_roles: migration 101 gives every bare member the role user, drops leftover none rows, and turns app_users into a read-only view of the role table, so every reader keeps working and any write to it fails. The MCP access check no longer counts a stored none as access, and replacing an app's member list (PUT /api/apps/:slug/users) keeps each remaining member's tier and deletes a removed member's tenant data. Platform admins still need to be assigned to an app to read its secrets.CHANGELOG.md, which stopped at 2.78.1, so any newer release showed only "A new version of AppCrane is available." Notes now come from the release commit subjects (vX.Y.Z: ...) in the install's own git checkout, after git fetch origin: the remote self-update already uses, with no call to api.github.com and no limit on how far back. An install that is not a git checkout falls back to the GitHub commits API. CHANGELOG.md is no longer read.purgeRevokedTenants in server/services/tenants.js), with a test per path in test/tenant-purge-on-revoke.test.js. The managed-databases entry also no longer says databases are provisioned per tenant: the schema has the dimension, but nothing provisions one yet.https://ping.appcrane.dev/v1/checkin one small JSON document: a random install id (generated on first boot, stored in DATA_DIR/install-id, tied to nothing), the AppCrane version, Node version, OS and CPU architecture, and three counts: registered apps, apps with a live deploy, and active users. No names, domains, emails or app contents, and the receiver does not store IP addresses. It exists to learn how many installs there are and which versions and runtimes they run. Turn it off with APPCRANE_CHECKIN=off (or DO_NOT_TRACK=1); every boot logs whether it is on and what it sends. APPCRANE_CHECKIN_URL points it elsewhere.synchronous = NORMAL did not help. The server now checkpoints from a worker thread every 2 s (PASSIVE, so writes are never locked out), and the worst commit measured 1.9-2.4 ms. The durability setting is unchanged: AppCrane runs better-sqlite3's WAL default, synchronous = NORMAL, and measured no difference at FULL. The crane CLI keeps SQLite's default. MariaDB setup also checks that the root password on record opens the server before using it, and refuses a server it did not start with a message naming the container, the likely cause and the fix, instead of a bare "Access denied" later.test/serial/ and run as their own CI step (npm run test:serial).apt-get. Now, when the system package manager is out of reach (not root, no apt, or an nvm/asdf Node), self-update downloads the official Node build from nodejs.org into <appcrane>/.runtime/, checks the GPG signature on the release's SHASUMS256.txt with gpgv against Node's release keys (shipped as infra/node-release-keys.gpg, refreshed by scripts/update-node-release-keys.sh from nodejs/release-keys), checks the tarball's SHA-256 against that signed list, runs it to confirm the major and that it works on this host's libc, and uses it for the rest of the update. A host with no gpgv (it comes with apt) is refused unless APPCRANE_NODE_ALLOW_UNSIGNED=1 accepts the checksum alone. scripts/safe-boot.sh puts it first on PATH at every start while the system Node is below the floor, and steps aside once the system Node meets it. A host already stuck below the floor is repaired the same way at its next boot, without root. It needs the service to start through scripts/safe-boot.sh (install.sh's unit does) and Linux on x64 or arm64; otherwise the update still refuses, and says which of the two is missing.--permission-mode; the list is served by GET /api/coder/models and enforced as exact strings at the route and again where the command is built. A message can also carry files: paste a screenshot or a copied file, drop it on the composer, or use Attach (10 MB each, 10 per message). They are uploaded to POST /api/coder/:slug/session/:id/attachments, stored per session on the host under an opaque id — never in the workspace, so they are never listed as changes or released — copied into the container when the turn runs, and named to the agent by path, where Claude Code's Read tool reads text, code, images and PDFs. A queued follow-up keeps its own mode and files. Per-action approval from the panel (a Manual mode) is not built yet.studio user, but ~/.claude was created by Docker as root (the transcripts are mounted beneath it) and every container start handed the saved conversation to a different user. Claude could not create the state its Bash tool needs, so the agent reported "Bash is blocked by an environment permission issue", and it could neither read nor extend its own conversation after a restart. The studio image now creates ~/.claude for studio with a pinned uid/gid, and the transcripts are owned by that user, repaired on the next start. The image version is bumped, so each host rebuilds it once, on the next coder start.--- Pointed element ---), was parsed by the Claude CLI as a command-line option and failed with unknown option. The prompt is now passed after --, so no message can be read as a flag. The codebase summary built before a first message now reads the coder's workspace (host git had refused it as owned by another user, leaving the summary with no commit and an empty file tree), runs on the same credential as your turn, and when it fails says what Claude said rather than only an exit code.ANTHROPIC_API_KEY. The codebase summary built before a first message now says it is working, says so if it fails, and is skipped for a conversation that is only being resumed.exit 1appcrane_append_app_context), so a constraint or a gotcha discovered on your machine reaches the in-platform coder instead of dying with the session. Append is the default because it cannot destroy what a human wrote; the replace tool reports how much it discarded, and the notes are capped, because anything prepended to every dispatch silently eats the context window it was meant to helpsh and no bash, and Claude Code's Bash tool spawns bash specifically. Every shell call the agent made failed at spawn, so it could read and edit files but reported having "no shell" and handed the user commands to run by hand — a session that looked healthy while builds, tests and git were quietly unavailable. The image installs bash, and its version is bumped so existing hosts rebuilddocker buildx plugin, and Ubuntu's docker.io package ships the daemon without it, so forcing BuildKit on made every deploy fail at the build step with a message that pointed at Docker's docs rather than the fix. AppCrane now probes once, uses BuildKit when it is there and the classic builder when it is not, saying so in the log. APPCRANE_DOCKER_BUILDKIT pins the choice in either directionnode:<major>-alpine (Node 22 unless deployhub.json or package.json engines asks for another line), or from php:<version>-apache when it ships a composer.json. The PHP version is the newest of 8.5, 8.4 and 8.3 that satisfies require.php in composer.json (config.platform.php wins when set); a constraint none of them satisfies fails the build and names it. With no constraint, a new app gets 8.5 and an app already deployed keeps the version its last live deploy used (every generated PHP app deployed before this change stays on 8.3). To move an app to a newer PHP, set require.php (for example "^8.4"). The deploy log says which image was chosen and why. Both run non-root and honour the port AppCrane assigns. A PHP build is health-checked at its front controller and held to "answers 200" rather than to AppCrane's {status, version} body — AppCrane generates the Dockerfile, not the application, and Laravel and Symfony serve no /api/health. Nixpacks still covers everything elseX-AppCrane-User-Role, X-AppCrane-App-Role, etc. are injected by the proxy after forward_auth verifies the user; deployed apps read identity directly off the request without a callback (oauth2-proxy / IAP pattern)/api/me endpoint — canonical "who is the caller" for proxied apps; accepts the cc_token cookie, Bearer, or X-API-Key; returns global role + per-app role (?app=<slug> or Referer-inferred)auth_mode: 'headless' to bypass forward_auth entirely on an app; right tool for telemetry ingest, public webhooks, status pages, and single-purpose unauthenticated servicesingress_type: 'dual' for an app that is both: an HTTP control plane still served through Caddy on container port 3000 with every control intact, plus a raw data plane on a different port inside the same container, published at 0.0.0.0:<public_port>. The data-plane port may not be 3000 — that would republish the control plane unauthenticated — and health checks keep probing the control plane, the only plane that can actually answerPOST /api/github-app/webhook, verified only by GitHub's X-Hub-Signature-256 over the raw body with the App's webhook secret (redeliveries of the same X-GitHub-Delivery are answered without acting twice). A push to an attached app's deploy branch starts the same auto-deploys as the per-app webhook (same auto-deploy switches and branch filter, audited as github-app-push-deploy); tag pushes and branch deletions deploy nothing. An uninstalled or suspended installation, or a repository removed from it, is marked rather than detached, so the attached app fails with that reason instead of silently going back to its PAT; unsuspending or re-adding the repository restores it. Apps created with CRANE_DOMAIN set have webhooks active and subscribed to Push from the start; without CRANE_DOMAIN they stay off, since GitHub would have no public URL. For an App created before this, press Send webhook settings to GitHub in Settings → GitHub (it sets the URL, JSON content type and secret through GitHub's API), then on GitHub open the App under Settings → Developer settings → GitHub Apps → Edit, tick Active under Webhook, tick Push under Subscribe to events, and Save changes — GitHub's API cannot do those two. The 5-minute PR poller keeps running either way. Not yet covered: AppStudio coding/PR flows, Ask Claude, release notes and the issues mirror still use the PAT, and an instance config export does not carry the App's private key..git/config git writes into each release. Earlier versions did put it in the URL, which left the token in plain text in every release directory; on boot AppCrane removes those credentials from existing release directories, AppStudio job directories and builder workspaces (only the credential part of the remote URL, never app data or volumes). App responses no longer include any encrypted credential column; the dashboard reads only the has_* flags. Each app in the list is labelled with where its code comes from: Crane-hosted, Managed (GitHub), GitHub App, GitHub token or Public GitHub.image_retention (default 1, appcrane_update_app or the app's settings; 0 keeps only the running image and makes every rollback rebuild)/api/mcp exposing 74 appcrane_* tools — agents operate the platform without ever touching curl, gh, or shellOne command on a fresh Ubuntu server installs and wires up everything — Node, Caddy (with automatic HTTPS), Docker, the systemd service, an encrypted-secrets key, and your admin user:
curl -fsSL https://raw.githubusercontent.com/gitayg/appCrane/main/install.sh | sudo bash
It prompts for just two things — your domain and admin email — and is safe to re-run. When it finishes, point your domain's DNS at the server and you're live.
Prerequisites: a fresh Ubuntu server (root / sudo) and a domain whose DNS A
record points at it — Caddy provisions TLS automatically on first request.
Non-interactive (CI / automation) — no prompts:
sudo CRANE_DOMAIN=crane.example.com ADMIN_EMAIL=admin@example.com bash install.sh
# flags also work: --domain / --admin-email / --admin-name / --tls-cert / --tls-key
Everything below is done for you, idempotently, by the one command above:
crane CLI linked globally<domain>/<slug> to each app, runs the
SSO auth, injects the X-AppCrane-* identity headers, and auto-provisions TLS —
plus the group, file permissions, and a sudoers rule so AppCrane can reload
Caddy on every deployappcrane service (Restart=always — survives crashes
and reboots, and powers one-click self-update).env with a freshly generated ENCRYPTION_KEY — back this up; losing it makes
every stored secret unrecoverable — and your admin user (crane init)Installing by hand means reproducing all of that — especially the Caddy install +
permissions + sudoers, which is the most-missed step and later surfaces as
permission errors or apps that never receive their identity headers. If you must,
treat install.sh as the source of truth rather than a shortened list.
AI sessions (optional). A coder session runs on whichever credential is available, in this order: the signed-in user's own Claude subscription, then the app's stored credentials, then a platform API key. Exactly one is ever sent to the container — Anthropic ranks an API key above a subscription token, so sending both would silently bill the wrong account.
For the first, each person generates their own one-year token with
claude setup-token(Pro, Max, Team or Enterprise plan) and saves it under Settings → Account, which strips the whitespace a terminal copy picks up and says what it removed; nobody else, platform admins included, can read, replace or clear it. The token does not refresh — it expires a year after it is generated and regenerating needs a browser, so AppCrane stores the expiry and shows it.For a platform-wide key instead: a platform admin sets it under Settings → Security → Anthropic API key. It is stored encrypted in the database, never in
.envor the environment.
Apps are created and deployed by an agent over MCP, not from the CLI. The
installer ran crane init, which printed your dhk_admin_* key and wrote it to
the CLI config (crane config --show to read it back; crane regenerate-key on
the box if it is lost). Point Claude Code at the instance once:
claude mcp add --transport http appcrane https://<your-domain>/api/mcp \
--header "X-API-Key: dhk_admin_xxxxxxxxxxxxx" \
--header "X-Github-Token: ghp_your_github_pat"
Then ask for the app in a Claude Code session:
Onboard a new app on AppCrane. Start by calling
appcrane_get_guidewithtopic="onboarding"for the playbook. It is MyApp at slugmyapp, from https://github.com/yourorg/myapp. Deploy it to sandbox and give sarah@example.com access.
The agent calls appcrane_create_app, then appcrane_deploy, then
appcrane_grant_app_access — and the app is reachable at
https://<your-domain>/myapp. The dashboard's Add Application button hands
you the same prompt, pre-filled with this instance's URL and your key.
Prefer to drive it yourself? The dashboard at https://<your-domain> creates and
deploys apps through the same routes, and the REST API underneath them
(POST /api/apps, POST /api/apps/:slug/deploy/:env) takes the same
X-API-Key. See Deploying without GitHub for the
repo-less path.
crane is the platform operator's tool, not the app owner's. It installs the
box, terminates TLS, moves instance config, recovers a lost key, reloads Caddy and
repairs drift — nine commands, listed in full below. App operations (create,
deploy, roll back, promote, secrets, logs, access) are not in the CLI: the
agent-facing surface was retired in v2.6.0 and lives on the MCP server and the
REST API. See App operations below.
crane init --email admin@example.com # First run: create the admin directly in the DB
# (--name defaults to "admin"); prints the dhk_admin_* key
crane setup-https --domain crane.example.com # Install Caddy, configure HTTPS, set up the firewall
crane update # Pull latest code from GitHub and restart AppCrane
crane status # Server health and all apps
crane me # Show current user info
crane config --show # Show CLI config
crane config --url http://localhost:5001 # Set API URL
crane config --url https://your-crane-host:8443 # Remote, when APPCRANE_PRIVATE_API_PORT=8443
crane config --key dhk_admin_xxx # Set API key
Run on the box — it writes the database directly. Defaults to the platform admin; override to target a specific account:
crane regenerate-key # Regenerate the platform owner's key
crane regenerate-key --email you@ex.com # ...for a specific user by email
crane regenerate-key --user-id 1 # ...or by user id
crane caddy --show # Show the current generated Caddyfile
crane caddy --reload # Regenerate and reload Caddy config
crane reconcile --dry-run # Preview orphaned filesystem apps
crane reconcile # Register them into the DB and reload Caddy
regenerate-key and reconcile open the database without migrating it —
the server owns migrations and applies them on boot. If the code on disk is
newer than the schema, both refuse with the number of pending migrations rather
than altering the database under a running server. crane init is the one
command that does migrate: it is the bootstrap, and there is no server yet.
Move the platform settings (including encrypted secrets) to another AppCrane —
without sharing encryption keys. Export keeps secrets ciphertext; import
re-encrypts them with the target instance's own key.
# On the SOURCE instance:
crane config export --out config.json
# Copy config.json to the TARGET, then on the TARGET:
OLD_ENCRYPTION_KEY=<source ENCRYPTION_KEY> crane config import config.json
The source ENCRYPTION_KEY (from the source's .env) is needed only to decrypt
the secrets during import; it is used transiently, never stored. One-way values
(e.g. the SCIM token, stored as a hash) can't be migrated — the import lists them
to regenerate on the target. Delete config.json afterward.
Everything an app owner does runs over MCP — the primary door, documented in
MCP (for AI agents) — or over the REST routes underneath,
which take the same X-API-Key. Both are audited identically and both enforce
the same per-app roles.
| Operation | MCP tool | REST |
|---|---|---|
| Create an app | appcrane_create_app | POST /api/apps |
| List / inspect | appcrane_list_apps, appcrane_get_app | GET /api/apps, GET /api/apps/:slug |
| Deploy | appcrane_deploy | POST /api/apps/:slug/deploy/:env |
| Deploy history / log | appcrane_list_releases, appcrane_get_deploy_log | GET /api/apps/:slug/deployments/:env, …/:id/log |
| Why a deploy failed | appcrane_wait_deploy, appcrane_get_deploy_log (failure_reason) | failure_reason on GET /api/apps/:slug/deployments/:env and …/:id/log |
| Roll back | appcrane_rollback | POST /api/apps/:slug/rollback/:env |
| Promote sandbox → production | appcrane_promote | POST /api/apps/:slug/promote |
| Env vars / secrets | appcrane_set_secret, appcrane_get_secret, appcrane_reveal_secret | GET / PUT /api/apps/:slug/env/:env, DELETE …/:key |
| Grant access | appcrane_grant_app_access | PUT /api/apps/:slug/users |
| Health | appcrane_get_health | GET / PUT /api/apps/:slug/health/:env |
| Backups | appcrane_run_backup_now, appcrane_get_backup_status | POST /api/apps/:slug/backup/:env, GET /api/apps/:slug/backups |
| Runtime logs | appcrane_get_logs | GET /api/:slug/logs/:env |
| Audit log | — (read it in the dashboard) | GET /api/audit, GET /api/:slug/audit |
Deploying to production needs the deploy.production permission on the app;
sandbox is the default everywhere. A deploy that would destroy unmounted state
refuses until it is passed acknowledge_data_loss — see the redeploy warning in
Features.
An app does not need a repo. Create it with source_type: "upload" and ship
releases as bundles (.zip, .tar.gz, .tgz):
curl -F file=@dist.zip -F env=sandbox \
-H "X-API-Key: $CRANE_KEY" \
https://<your-domain>/api/apps/myapp/deploy/upload
The response carries artifact.sha256 — AppCrane computes it over the bytes it
received, before extraction, and records it as the release identity
(commit_hash = sha256:<digest>). Compare it against the digest you computed
locally to confirm what was deployed is what you sent. Any commit_sha you pass
is stored alongside as context and is explicitly not trusted as the identity.
Agents hold personal MCP keys (dhk_mcp_*), which are allow-listed to
/api/mcp and /api/files/staged only, so they take the same path in two
steps: POST /api/files/staged to upload the bytes, then
appcrane_deploy_artifact(slug, env, token). This is also the deploy route that
still works when a repo-based path is broken — an expired service-account PAT
returns 401 on every managed-repo write, and this one never contacts GitHub.
AppCrane is MCP-first. One claude mcp add and the agent gets 74
appcrane_* tools — list apps, deploy, roll back, set/get secrets, read
logs, manage access, scan for vulnerable dependencies, the lot. Tool
names are AWS-aligned (stage, set_secret/get_secret, cp).
claude mcp add --transport http appcrane https://crane.example.com/api/mcp \
--header "X-API-Key: dhk_admin_or_user_xxxxxxxxxxxxx" \
--header "X-Github-Token: ghp_your_github_pat"
Then in any Claude Code session:
Onboard a new app. Start by calling
appcrane_get_guidewithtopic="onboarding"for the playbook.
The agent pulls the current guide from the server, so edits propagate
without a redeploy of your tooling. topic="operations" returns the
post-onboarding reference (deploy lifecycle, troubleshooting fast
failures, access management, etc.).
Ubuntu Server
├── Caddy (reverse proxy, auto-HTTPS)
│ ├── myapp.example.com → production app
│ └── myapp-sandbox.example.com → sandbox app
├── Docker (container isolation)
│ ├── myapp-production ← isolated container per env
│ └── myapp-sandbox
├── AppCrane API (:5001)
│ ├── Express 5 + SQLite
│ ├── Health checker (cron)
│ ├── SSO (SAML / OIDC / SCIM)
│ ├── AppStudio (request → plan → code) + coder
│ └── Presence (WebSocket)
└── /data/apps/myapp/
├── production/releases/ (symlink-based, last 5)
└── sandbox/releases/
Every container is published to loopback only (127.0.0.1:<port>:3000), so
Caddy is the only way in. The exception is an app with ingress_type tcp or
dual, which additionally publishes a port at 0.0.0.0:<public_port> — outside
Caddy, and outside every control Caddy provides. A tcp app publishes container
port 3000 itself; a dual app publishes a different container port and leaves
3000 loopback-only behind Caddy. See
§6 below.
AppCrane believes X-Forwarded-For only from proxies named in TRUST_PROXY (default loopback, i.e. Caddy on the same host), so per-client rate limits, the login throttle and logged addresses see the real client; if your proxy runs on another address, set TRUST_PROXY to that address — true and hop counts are refused because they would let any client choose its own address.
X-API-Key headerAPPCRANE_PRIVATE_API_PORT (e.g. 8443) in .env and the generated Caddy config adds a second site for the platform host on that port, same certificate, to AppCrane only. Caddy stamps X-AppCrane-Ingress: private on requests through that site and X-AppCrane-Ingress: public on every request it proxies to AppCrane from a public site (the platform host on 443, app hosts, custom-domain sign-in sites, and the forward_auth calls to /api/identity/verify), overwriting any value the client sent. A personal user key (dhk_user_* / dhk_admin_*) on a public request is refused with 403 USER_KEY_PRIVATE_PORT_ONLY and audited as user-key.public-refused (once per user per hour): the REST API, git clone/fetch over HTTPS, /api/identity/verify (so a key no longer opens an app host), /api/me, set-password, MCP called with a user key, and the Ask/Plan/Studio/request routes. Dashboard sessions, SSO, MCP keys (dhk_mcp_*) and MCP OAuth tokens, Crew agent tokens, webhooks, app service tokens and app sign-in keys keep working on 443. Requests that reach Node's own port directly (loopback, app containers, the crane CLI on the box) carry no stamp and are not refused, so keep PORT (5001) closed to the outside and open the private port only to your SDP/VPN. Remote CLI and git use https://your-crane-host:8443. Unset (the default) changes nothing. Platform admins see the setting in GET /api/api-key-policy (private_api), and an app cannot publish a TCP port on it./data/; enforced at middleware levelpackage-lock.json, yarn.lock (classic and Berry), pnpm-lock.yaml (9.x), composer.lock, go.sum, Cargo.lock, Gemfile.lock, poetry.lock, Pipfile.lock. Apps deployed from an image are scanned with a pinned Trivy against the resolved digest — name@sha256:…, the bytes actually running, not whatever the tag points at today. The scan reports and never blocks: a scanner that is missing, slow or wrong cannot fail your deploy. The separate release check is what can stop a production deploy: by default it blocks any app with a vulnerable dependency that has a published fix, and a platform admin can turn that off. Each finding carries the version that fixes it, read from the full OSV advisory — the batch endpoint returns only advisory ids, and an advisory that cannot be fetched records the scan as an error rather than claiming no fix exists. Coverage is reported as arithmetic, not as a word: every report leads with COVERAGE: <covered> of <rows> app/stage rows have a usable scan result (<percent>%), names how many were skipped, errored or never scanned, and lists the top reasons rows were skipped, counted, from the reason each row recorded. assurance still reads none / partial / complete and still means exactly that — but partial spans 1% to 99%, so it never travels without the counts beside it.Commit verification runs alongside the build, not in front of it — the GitHub head-SHA cross-check starts as soon as the clone finishes and is awaited at the container gate, so its latency (~27 ms on a healthy GitHub, 1.5–4.5 s when it hits the retry backoff) is hidden behind docker build instead of delaying it; a failure still aborts the deploy with the same message before any container is started or stopped, and its lines still appear in the deploy log — now after the build output rather than before it.
Image builds are pinned to BuildKit (DOCKER_BUILDKIT=1) rather than inheriting whatever the host docker CLI defaults to; measured here at ~18.6 s vs ~29.0 s for a cold build of a ~126 MB Node image with identical output, and the classic builder now prints a removal notice on every use — set APPCRANE_DOCKER_BUILDKIT=0 on the AppCrane host to override.
A deployment self-updates straight from git (/api/self-update runs git fetch
git reset --hard origin/main), so the question a reviewer asks is "how do I
know the source I pulled is the source you published?" Every tagged release
answers it with four attached artifacts:| Artifact | What it is |
|---|---|
appcrane-<tag>-source.tar.gz | Reproducible git archive of the tagged tree (tracked files only) |
appcrane-sbom.cdx.json | CycloneDX SBOM of the production dependency tree |
appcrane-sbom.spdx.json | Same, SPDX format |
SHA256SUMS.txt | Checksums for all of the above |
The source archive carries build provenance and an SBOM attestation signed via sigstore keyless (GitHub artifact attestations) — no long-lived signing key exists to be stolen. Verify a downloaded archive with:
gh attestation verify appcrane-<tag>-source.tar.gz --repo gitayg/appCrane
Dev dependencies are deliberately excluded from the SBOM — they aren't shipped to a deployment, and including them would overstate the real attack surface.
Uploaded releases get the equivalent of a commit SHA rather than being
exempt from the question. AppCrane hashes the bundle server-side, before
extraction, and stores that digest as the release identity — so "is what is
running what was reviewed?" has an answer for an app with no repo. Before
v2.53.0 it did not: commit_hash held whatever the uploader typed, or the
literal string unknown, and two unrelated bundles could claim one SHA.
crane rotate-key re-encrypts every stored secret under a new ENCRYPTION_KEY.
Run it on the AppCrane host with AppCrane stopped:
sudo systemctl stop appcrane
crane rotate-key --dry-run # what would change, and anything that blocks it
crane rotate-key # generates a new key; or --new-key-file <path>
sudo systemctl start appcrane
What it does:
Keep in mind:
Apps deployed on AppCrane never need to implement their own auth. The Caddy proxy verifies every request against /api/identity/verify before forwarding it to the container, and the result is delivered to the app in three complementary ways. Apps should consume them in this precedence order:
Maintain an existing open-source app and want to know what deeper integration buys you? SKIFF.md is the maintainer-facing guide — identity, app-defined roles, managed databases, email, health and per-tenant data, level by level, with the contract for each.
Caddy copy_headers the verified identity onto the upstream proxy request. The app reads them directly:
| Header | Value | Notes |
|---|---|---|
X-AppCrane-Auth-Mode | authenticated | headless | bypass | Always present on every proxied request, including ones with no identity. Read it first. |
X-AppCrane-User | Backward-compat single identifier. Set on authenticated requests. | |
X-AppCrane-User-Id | numeric id (string) | Set on authenticated requests. |
X-AppCrane-User-Email | Granular. May be absent if the user has no email. | |
X-AppCrane-User-Name | display name, encodeURIComponent-d | decodeURIComponent on read. May be absent. |
X-AppCrane-User-Role | platform_admin | user | Platform-wide tier, raw token. Not a per-app permission. (The global admin tier was retired.) |
X-AppCrane-App-Role | owner | admin | user | viewer | Per-app role — the one to gate on. An explicit app_user_roles row wins over the platform-admin fallback, so a platform admin who owns the app arrives as owner, not admin. |
X-AppCrane-Is-Admin | 1 | 0 | 1 when the per-app role is admin or owner. Use it instead of comparing role strings. |
X-AppCrane-App-Roles | comma-separated keys, e.g. approver,auditor | The roles the app defines for itself — a different system from X-AppCrane-App-Role above. AppCrane stores and issues them; the app enforces them, and no AppCrane authz check ever reads them back. A user may hold several (a union, not a ladder). Omitted entirely when they hold none, so split(',') can't produce a phantom '' role. Section 5 below. |
X-AppCrane-Auth-Via | app-key | Present only when the caller signed in with an app sign-in key (dhk_uak_*) rather than a browser session. Lets an app allow a script less than its person, for example upload but not read. Stripped from client requests like the rest, but not covered by the identity signature (adding it would break every app on an older appcrane-tenant). |
Trust model: the Caddy generator wraps the request_header -X-AppCrane-* strips and the forward_auth block in a route { … } so they execute in written order — Caddy's own directive sort would otherwise run the strips after forward_auth and delete the identity it had just copied. Caddy zeroes out any client-set X-AppCrane-* headers first, then copy_headers re-injects only what /verify returned. The strips are emitted on every route that proxies an app, including headless apps and auth_bypass_paths prefixes where no forward_auth runs at all — a route that verifies nobody must not accept the caller's own X-AppCrane-Is-Admin. What arrives through the proxy is therefore platform-issued. Two routes skip the proxy: a raw tcp/dual data-plane port, and, on Docker Desktop only (measured; blocked on Linux), another app's container reaching this app's loopback port via host.docker.internal. For those, v2.97.0 signs the identity: /verify adds X-AppCrane-Identity-Ts and X-AppCrane-Identity-Sig, an HMAC-SHA256 over the identity headers with a secret per app and environment (sandbox and production differ), injected into the app as APPCRANE_IDENTITY_SECRET. An app calls verifyIdentity(req) from appcrane-tenant (1.2.0+) to reject anything AppCrane did not sign for it, and tenantKey()/tenantDb() do so automatically when the secret is set. A compromised app holds only its own secret, so it can neither forge another app's identity nor replay its own elsewhere. v2.125.14 adds X-AppCrane-Identity-Sig-V2, the same HMAC over the same headers plus X-AppCrane-Auth-Via (v1 left it out, so off the proxy Auth-Via: app-key could be removed to pass a script off as a browser session); appcrane-tenant 1.3.0 checks v2 when present and returns it as verifyIdentity(req).authVia (null when only v1 was checked; { requireV2: true } refuses v1-only identity). Caddy also strips the platform's cc_token session cookie out of Cookie before it reaches any container (v2.39.0), so an app can't read a visitor's platform session and act as them — apps must take identity from these headers, never from a cookie.
Identity does not require SSO. /api/identity/verify resolves a session from X-API-Key or from Authorization: Bearer / the cc_token cookie against identity_sessions. SSO is one way to create such a session; local password login and API keys are others. An instance with no IdP still injects the full header set for logged-in users.
work-review plugin. This repository is also a Claude Code plugin marketplace. /plugin install work-review --marketplace gitayg/appCrane installs a skill that reviews how you work with Claude Code (prompt cost, waste, overcomplicated setups) and can upload a redacted daily summary to a Work Review hub. See plugins/work-review/README.md.
App sign-in keys (dhk_uak_*, v2.124.0) are for a script or scheduled job that must reach one app and has no browser. A user issues one for themselves on the MCP page, for one app they can already enter. It passes that app's forward_auth gate and nothing else: any other app, a bare /verify, the REST API and MCP all refuse it. It grants only the user's current role on the app, so removing the role or deactivating the user shuts it with no revoke step. It expires after 180 days by default (at most 365). Unlike the dhk_app_* keys removed in v2.2.12, it belongs to a user and carries no grant of its own.
Absence semantics: on an authenticated app an unverified visitor never reaches the container at all (Caddy fails closed at forward_auth and redirects to /login), so presence = trusted. Identity legitimately absent means X-AppCrane-Auth-Mode is headless (whole app opted out) or bypass (this path is in auth_bypass_paths, or the app is served on its own custom domain) — in every case the request is served with no verified identity and the app owns its own authn. No X-AppCrane-Auth-Mode at all means the request didn't come through AppCrane's proxy — i.e. direct-to-container. A custom-domain app is proxied and does get X-AppCrane-Auth-Mode: bypass.
Role ordering: none < viewer < user < admin < owner. appRole === 'admin' is a bug — it denies owners.
// Express example
const RANK = { none: 0, viewer: 1, user: 2, admin: 3, owner: 4 }
const atLeast = (appRole, min) => (RANK[appRole] ?? 0) >= RANK[min]
app.use((req, res, next) => {
const mode = req.get('X-AppCrane-Auth-Mode') // 'authenticated' | 'headless' | 'bypass'
const role = req.get('X-AppCrane-User-Role') // platform tier
const appRole = req.get('X-AppCrane-App-Role') // 'owner' | 'admin' | 'user' | 'viewer'
const email = req.get('X-AppCrane-User-Email') || req.get('X-AppCrane-User')
req.user = (mode === 'authenticated' && role)
? { id: req.get('X-AppCrane-User-Id'), email, role, appRole, isAppAdmin: atLeast(appRole, 'admin') }
: null
next()
})
GET /api/me (when you need more than the basics)Returns the full user object — name, email, username, global role — plus the per-app role for whatever app the caller is asking about. Same origin as the app, so the browser auto-sends cc_token; no SDK or token plumbing required:
const r = await fetch('/api/me') // ?app=<slug> optional; Referer-inferred otherwise
if (r.status === 401) { location.href = '/login?redirect=' + encodeURIComponent(location.href); return }
const { user, app_role } = await r.json()
Auth precedence inside /api/me:
cc_token cookie (proxied apps' default — httpOnly, browser-managed).Authorization: Bearer <session> (CLI / programmatic).X-API-Key: dhk_* (admin / agent keys).App slug resolution:
?app=<slug> query.Referer-inferred (first path segment; sandbox-suffix retry).For services where the whole app is meant to be unauthenticated — telemetry ingest, public webhooks, status pages, the squash CLI's ping/stats — set the app's auth_mode to headless (owner-only toggle in the Launcher, or appcrane_set_app_meta slug=<…> auth_mode=headless via MCP). The Caddy block then skips forward_auth and copy_headers: no identity headers, no /api/me, no cc_token (that cookie is stripped for every app regardless). The incoming X-AppCrane-* strip is not skipped — a headless route verifies nobody, so it must not let a caller supply its own identity headers either. X-AppCrane-Auth-Mode: headless still arrives, so the app can distinguish "identity is off by design" from a misconfigured proxy. The app's own server takes responsibility for any payload-level authn it needs (HMAC, install-id, IP allowlist, etc.).
Pick by shape:
authenticated, gate the public paths at the app's own router.Opt in with "multitenant": true in deployhub.json and AppCrane gives each of
your app's users an isolated SQLite database on the persistent /data volume —
you don't build tenant isolation yourself. A tenant is (org, user), where
org is the user's email domain. This is fully opt-in: apps that don't set
the flag are completely unaffected.
When enabled, AppCrane injects APPCRANE_TENANT_ROOT=/data/tenants. Use the
appcrane-tenant helper to derive the tenant DB from the
identity headers above (section 1) — no path-building by hand:
import { tenantDb } from 'appcrane-tenant'
app.get('/api/notes', (req, res) => {
const db = tenantDb(req) // opens /data/tenants/<org>/u<userId>/db.sqlite
res.json({ notes: db.prepare('SELECT * FROM notes').all() })
})
tenantDbPath(req) returns just the path if you use a different SQLite driver.
Pass tenantDb(req, { migrations: [step1, step2, ...] }) and each tenant's file is
upgraded lazily, the first time it is opened after a deploy, keyed on
PRAGMA user_version, in one transaction (so no file is upgraded twice or left
half-upgraded, even under concurrent requests). Append steps; never edit a shipped one.
Each tenant also gets a storage/ dir (tenantStorageDir(req) / tenantFile(req, name))
for files. Set "tenant_quota_mb": <n> in deployhub.json to cap per-tenant
usage — AppCrane injects it and assertTenantQuota(req) throws once a tenant is
full (the quota covers DB + storage).
Always build tenant paths via the helper (never from raw user input) — the
identity headers are platform-signed and the org slug is sanitised against
traversal. When a user's access is revoked, by any path (the dashboard, deleting
the user, a SCIM group, or the MCP revoke tool), AppCrane purges that tenant's dir
automatically — using this very helper's orgFromEmail, which the platform
imports rather than copies, so the path it deletes is the path your app wrote.
Consumer domains (e.g. gmail.com) share an org label, but
isolation is per-user, so data never mixes. The helper isn't on npm yet — copy
packages/tenant/index.js or depend on it by path;
see the multitenant-notes example.
An app can define roles of its own — approver, auditor, reviewer — and
AppCrane hands each user's set to the app on every request. AppCrane is the
authority, the app is the enforcer: the platform stores who holds which key and
issues it, and has no opinion on what the key permits.
The two are separate systems on purpose, down to separate tables and separate
wire fields. An app-defined role never confers an AppCrane privilege, and no
AppCrane authorization check reads one — otherwise an app owner could invent a
role named admin, assign it to themselves, and author their own escalation from
a settings form. For the same reason owner, admin, user, viewer, none
and platform_admin are rejected as keys, keys must match
/^[a-z][a-z0-9_-]{0,31}$/, and an app may define at most 16 of them (which also
bounds the header's length by design rather than by discovery).
X-AppCrane-App-Roles, comma-separated and sorted, absent
when the user holds none. A user may hold several — they are a union, so test
set membership rather than equality. It is stripped off the client request and
re-issued by /verify like every other identity header.GET /api/me?app=<slug> returns app_roles: [...] beside
app_role ([] when none).platform_admin holds no app-defined role unless
someone granted it, and neither does the app's owner — unlike app_role,
there is no platform-admin fallback. Holding an app role while being a plain
platform user is the normal case, not an edge case./api/apps/<slug>/app-roles (note: not /roles, which is the platform tier) or
the appcrane_list_app_roles / appcrane_create_app_role /
appcrane_set_user_app_roles MCP tools. Deleting a role cascades its grants.const appRoles = new Set((req.get('X-AppCrane-App-Roles') || '').split(',').filter(Boolean))
if (!appRoles.has('approver')) return res.status(403).json({ error: 'approver role required' })
Sections 1–5 all rest on the same assumption: Caddy is in front of the app. Some
apps aren't HTTP and cannot be proxied at all — the motivating case is a
forward/CONNECT proxy, where the client opens a raw TCP connection and gets a
tunnel back, which no HTTP reverse proxy can express. For those, a platform
admin (not the app owner) can set ingress_type: 'tcp' — PUT /api/apps/<slug>
or appcrane_set_app_ingress — and AppCrane publishes the production container's
port on the host at 0.0.0.0:<public_port>, the next time the container is
recreated (a deploy, or the restart route — the publish is a docker run flag, so
nothing changes on a running container). The existing loopback publish stays and
sandbox is unaffected; this adds a door rather than moving one.
Two port ranges, and they are not the same numbers. A host port AppCrane allocates comes from a dedicated band, 31000 through 31999, so an operator firewalls one predictable block. A host port named explicitly may be anything in 1024–65535 — because clients are configured with a port by hand or by MDM, and a fleet already pointing at 8080 is not something the platform gets to overrule. Narrowing the range was never the safety property: the guards that refuse a port apply at every value (WHATWG-blocked ports, AppCrane's own listening port, any port the slot allocator could hand a container, and the partial unique index that gives one host port to one app). A port outside the auto band just needs its own firewall rule.
The container must still answer /api/health over HTTP, whatever its
ingress_type: the deploy gate polls it for 30 s and rolls the release back
without a 200 carrying status and version. So tcp ingress serves apps that
also speak HTTP on the container port — true of the motivating CONNECT proxy —
and an app speaking only a non-HTTP protocol cannot be deployed today. Note
too that the publish covers the whole container port, so every HTTP route on it,
including that health endpoint and any admin route, is exposed alongside the raw
protocol.
That door has none of the controls above, and none of the ones AppCrane
gained in v2.35–v2.41: no forward_auth, no X-AppCrane-* identity headers
(nothing injects or strips them), no per-request audit, no rate limiting, no
security headers, and no TLS terminated by AppCrane. The app owns
authentication completely. It is not auth_mode: 'headless' — a headless app
still goes through Caddy and still gets TLS, security headers and the
X-AppCrane-Auth-Mode: headless stamp.
ingress_type: 'dual' — an app with both planes (v2.45.0). Some apps are
genuinely both: an HTTP control plane (admin UI, REST API) that must keep
everything Caddy gives it, plus a raw data plane whose clients are already
pinned to a specific host port. Under tcp that was inexpressible, because both
publishes targeted the same hardcoded container port — so tcp could only
re-expose the very port Caddy was already serving. A dual app names a second
port inside its container:
control plane Caddy → 127.0.0.1:<slot port> → container:3000
data plane raw → 0.0.0.0:<public_port> → container:<data_plane_port>
The control plane is untouched — same URL, same SSO, same identity headers, same access logs. Only the data plane is undefended, and the loss table above is what it loses. Three rules make that split real:
data_plane_port may not be 3000, and a request that sets it is refused
with a 400. Port 3000 is the container's HTTP control plane, the port Caddy
proxies to; publishing it raw would re-expose the app's ordinary HTTP origin
with no TLS, no forward_auth, no identity headers and no audit — exactly the
surface Caddy is in the path to protect, with no signal to the operator that
they had done it. dual with no data_plane_port is refused for the same
reason: the publish must target some container port, 3000 is the only other
one there, and AppCrane will not guess. The runtime refuses such a row too — it
emits no public -p at all rather than falling back to 3000.tcp app gets a TCP handshake
because it cannot answer an HTTP probe; a dual app can, so it keeps the ordinary
HTTP health check on container port 3000 and its data plane is never probed. A
handshake on a raw listener succeeds as long as the socket is bound, so probing
the data plane would let a wedged control plane — the plane users actually reach
— report healthy and a broken release go green.apps(public_port) still gives one host port to one app.
data_plane_port has no such constraint and should not gain one: container
network namespaces are separate, so two apps can each run a data plane on
container port 8081 without ever meeting.dual is a third enum value rather than a flag on an http app because
ingress_type is the field an operator, an audit entry and an MCP payload all read
to learn what doors an app has — a row saying http while the app published a raw
port would make that field actively wrong. It also fails safe: code that predates
dual compares === 'tcp', gets false, and takes the HTTP path, which is the
correct one for a dual app. An app that sets nothing is still http and behaves
exactly as before; a pre-v2.45.0 tcp app still publishes container port 3000 and
still gets its handshake health check.
An app on a published port can still authenticate against the platform if it
chooses to: GET /api/me?app=<slug> verifies a Bearer token or X-API-Key: dhk_*
the client supplied, and POST /api/service/* authenticates the app itself with
the APPCRANE_SERVICE_TOKEN injected into every container. Both go over the
docker bridge (CRANE_INTERNAL_URL), not through Caddy.
public_port is allocated and stored per app (never derived from the app's slot,
which can be reassigned), unique across apps, and every change — including
data_plane_port — is written to the audit log as app-ingress-change. Both
numbers are pinned: they survive a flip back to http so that flipping forward
restores the ports a client fleet is already configured for, and they read back as
null while the app is not publishing. On the way back in data_plane_port is
re-validated; public_port is not — a held number is reinstated as-is, so re-pin
it explicitly if the app has been parked on http while the platform grew.
Flipping a dual app to tcp is refused while it still holds a
data_plane_port, because tcp publishes container port 3000 and the flip would
silently repoint the same host port onto the control plane; send
data_plane_port: null in the same request to drop the data plane on purpose.
Treat publishing as the exposing act — do
not assume a host firewall is holding the port shut. A Docker publish is a DNAT
rule evaluated in FORWARD that never traverses INPUT, so a plain ufw deny
does not block it; filter in the DOCKER-USER chain or upstream of the host.
And where the platform runs behind SDP, the boundary that exists is the
perimeter: a published port is reachable by everything inside it from the moment
the container is recreated.
Switching back to http stops the publish but does not close the port: the
running container keeps the binding until it is recreated, so redeploy or restart
the app before treating the exposure as revoked. Because that port is still bound,
AppCrane keeps it reserved to that app rather than returning it to the pool —
no other app can be allocated a number a live container still holds — and releases
it automatically when the container comes back without the publish. Until then the
app reports the number as pending_port_release on every read surface, so nothing
claims the port is closed while it is open.
For a CONNECT proxy specifically: a published port is reachable by everything that
can already reach the host, so on an SDP-fronted deployment that is everyone inside
the perimeter rather than the internet. A gap in the app's proxy authentication is
therefore an unaudited egress path out of the perimeter, and AppCrane logs none
of it because the traffic never touches Caddy. The app's 407 Proxy-Authenticate
path is the security boundary — the ingress isn't.
| Action | Admin | App User |
|---|---|---|
| Create/delete apps | Yes | No |
| Assign users | Yes | No |
| Server health | Yes | No |
| Deploy / rollback / promote | No | Yes (own apps) |
| View/edit env vars | No | Yes (own apps) |
| Configure health/webhooks | No | Yes (own apps) |
| Backups | No | Yes (own apps) |
Node.js 22, Express 5, SQLite, Docker, Caddy 2, SAML/OIDC/SCIM, AES-256-GCM, Commander.js, Ubuntu 22.04+
GNU AGPL v3. Free and open source — use, modify, and self-host. If you run a modified version as a network service, you must make your source available under the same license. Need to run private modifications as a service, or embed AppCrane in a proprietary product? A commercial license is available.
Open an issue: https://github.com/gitayg/appCrane/issues
Pull requests welcome — please read CONTRIBUTING.md first. It includes the short CLA that keeps AppCrane's dual-licensing (AGPL + commercial) possible.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for AppCrane: self-hosted PaaS with a built-in MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/appcrane)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.