Skip to content

0.1.6

Latest

Choose a tag to compare

@dickyj-grc dickyj-grc released this 26 Nov 09:34
8f35dde

Upgrade notes

  • New installs are sandboxed. Apps installed from now on run with a read-only root filesystem (writable /tmp, /run, /var/tmp), no Linux capabilities, no root user (root images run as 65534), at most 256 processes, a 1 GiB memory limit if none is declared, and no outbound network. Apps that call the internet, browse, or reach a database elsewhere need sandbox: { egress: true } in their manifest, the console's Allow outbound internet, or allow_internet on amoeba-mcp's deploy_service. Bundled apps that need it (Lightpanda, Obscura, finance-db, streaming-echo) already declare it. Services installed before, and hand-written ones, are unchanged until reinstalled.
  • Each app gets its own Docker network, internal and shared only with the gateway, so apps can no longer reach each other directly. Apps with egress also join amoeba-egress, where they cannot reach each other either. An app that relied on calling another app by container name must go through the gateway (see calls), or list the network under sandbox.networks. Set AMOEBA_SELF_CONTAINER to the gateway's container name if you run it outside the provided compose files.
  • About 30 apps per Docker host by default. Each app's network takes an address range from Docker's default pools. For more, set smaller ranges with default-address-pools in /etc/docker/daemon.json (see the manifest reference's sandbox section).
  • The database service requires a signed identity. With this release's gateway, amoeba-db trusts only x-amoeba-identity and refuses requests without it. Update the gateway and amoeba-db together.
  • Every app container is recreated once on its next start, because each now receives AMOEBA_IDENTITY_PUBLIC_KEY and AMOEBA_SERVICE_NAME.
  • Rate limits are on by default: 600 requests a minute per caller per service (AMOEBA_RATE_LIMIT_PER_MINUTE, or rate_limit_per_minute per app; 0 is unlimited), and sign-ins lock for 15 minutes after 5 failures for an account or 20 from one address.
  • Installing onto a taken name now fails with 409. Before, it silently replaced the existing service. Send replace: true (in the package values, or the library install body) to replace or upgrade it. The MCP server's deploy_service tool takes replace too.

Security

  • Gateway-only access. Before, every app shared amoeba-net, so an AI-built app could call the database service directly with a made-up x-amoeba-roles: admin header and get past both the role check and column masking. Apps now get a network of their own, and the gateway signs the caller's identity (x-amoeba-identity, EdDSA, per service) for apps to verify; amoeba-db verifies it.
  • Sandbox for AI-built apps, on Docker and Apple containers (see the upgrade notes). The manifest's sandbox block relaxes it per app.
  • Per-tool permissions for MCP apps: tool:<name> (or tool:*) in permissions.
  • Pinned MCP tool lists: a tool that is new or reworded after approval is blocked until an admin approves the current list (console button, or POST /admin/apps/<name>/tools/approve).
  • MCP sign-in discovery: a 401 carries WWW-Authenticate: Bearer resource_metadata=…, and the gateway serves OAuth Protected Resource Metadata at /.well-known/oauth-protected-resource/v1/<service>/…. Set auth.authorization_servers (defaults to auth.issuer).
  • Rate limits on failed sign-ins and per caller per service.
  • Catalog writes are serialized across requests. Each admin request used its own lock, so two at once could overwrite each other.
  • The amoeba-mcp guide no longer says secrets are "stored encrypted on disk". They are plain files readable only by Amoeba.

Calls on behalf of the caller

  • calls: [lightpanda] in a manifest (and calls on amoeba-mcp's deploy_service) lets an app call other services as whoever called it. Each request carries x-amoeba-caller-token, which the app sends as Authorization: Bearer when calling those services through the gateway. The called service checks the original caller's roles, so a Stagehand or Playwright app and the browser it drives must both grant them.
  • The token works only on the listed services, lasts at most an hour (never past the caller's own token), is revoked with the caller's token, and shows in the usage log as alice via scraper. Callers cannot forge it, and apps without calls never get one.

WebSockets

  • WebSocket connections pass through the gateway, with the same token and role checks as any request. Playwright, Puppeteer or Stagehand on a laptop or in CI can drive a browser hosted on Amoeba, which starts on connect and sleeps when idle: chromium.connectOverCDP("wss://<amoeba>/v1/<browser>/", { headers: { Authorization: "Bearer <token>" } }). Notebooks, web terminals and live dashboards work behind Amoeba too.
  • An open session counts as an active connection, so the app is never stopped mid-session. local_upstream applies, which Chrome and Lightpanda need.

Quick start in one command

  • docker-compose.quickstart.yml runs Amoeba and its web console on port 8080 with nothing to set up: curl -fsSL …/docker-compose.quickstart.yml | docker compose -p amoeba -f - up -d.
  • First run (AMOEBA_BOOTSTRAP=1). On an empty data directory Amoeba generates a signing secret, creates admin with a random password (logged once, and kept in /etc/amoeba/admin-password), and writes an empty catalog. Without the variable a missing secret is still a startup error.
  • The image serves the web console at /, next to the API. Set AMOEBA_CONSOLE_DIR to serve it from elsewhere.
  • .dockerignore keeps target/, node_modules, local config and secrets out of image builds.

README

  • New quick start, highlights (Claude deploying an app; per-role column masking) and a comparison with Docker MCP Gateway, Obot, agentgateway and Sablier, near the top.

Settings that stay

  • Adjust before deploy. The App library tab has an "Adjust" section: who can call the app, memory, CPU and idle stop, starting from the app's own values.
  • Settings after deploy. Each service has a Settings button with the same form. Memory and CPU changes restart the app; the others apply at once.
  • Kept on upgrade. These settings are stored as overrides and re-applied when the same app is reinstalled or upgraded. Permission changes through PATCH /admin/apps/<name> are kept the same way. Another app taking the name starts from its own manifest.
  • Name conflicts. The deploy dialog says when a name is taken and by what, offering "Use -2" or "Replace it". The Git and Dockerfile tabs check before starting a build.
  • API: PATCH /admin/apps/<name>/settings with any of permissions, public, memory, cpu_cores, cooldown_seconds. GET /admin/apps/<name> adds source, settings and overrides.

Fixes

  • Query strings are forwarded. The proxy sent apps only the path, so ?status=overdue filters (including the database service's) and tokens in URLs never arrived.
  • Apps stuck in "installed". An install's state could be lost to the catalog reload it triggers, so the app showed "installed" forever although it was running. State updates are now atomic.
  • Nightly e2e: droplet refused (422). The e2e now tries other DigitalOcean regions when one refuses the droplet, and prints DigitalOcean's reason.