Repository navigation
Releases
Releases · dickyj-grc/Amoeba
0.1.6
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 needsandbox: { egress: true }in their manifest, the console's Allow outbound internet, orallow_interneton amoeba-mcp'sdeploy_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 (seecalls), or list the network undersandbox.networks. SetAMOEBA_SELF_CONTAINERto 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-poolsin/etc/docker/daemon.json(see the manifest reference'ssandboxsection). - The database service requires a signed identity. With this release's gateway, amoeba-db trusts only
x-amoeba-identityand 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_KEYandAMOEBA_SERVICE_NAME. - Rate limits are on by default: 600 requests a minute per caller per service (
AMOEBA_RATE_LIMIT_PER_MINUTE, orrate_limit_per_minuteper app;0is 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 packagevalues, or the library install body) to replace or upgrade it. The MCP server'sdeploy_servicetool takesreplacetoo.
Security
- Gateway-only access. Before, every app shared
amoeba-net, so an AI-built app could call the database service directly with a made-upx-amoeba-roles: adminheader 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
sandboxblock relaxes it per app. - Per-tool permissions for MCP apps:
tool:<name>(ortool:*) inpermissions. - 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>/…. Setauth.authorization_servers(defaults toauth.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 (andcallson amoeba-mcp'sdeploy_service) lets an app call other services as whoever called it. Each request carriesx-amoeba-caller-token, which the app sends asAuthorization: Bearerwhen 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 withoutcallsnever 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_upstreamapplies, which Chrome and Lightpanda need.
Quick start in one command
docker-compose.quickstart.ymlruns 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, createsadminwith 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. SetAMOEBA_CONSOLE_DIRto serve it from elsewhere. .dockerignorekeepstarget/,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
overridesand re-applied when the same app is reinstalled or upgraded. Permission changes throughPATCH /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>/settingswith any ofpermissions,public,memory,cpu_cores,cooldown_seconds.GET /admin/apps/<name>addssource,settingsandoverrides.
Fixes
- Query strings are forwarded. The proxy sent apps only the path, so
?status=overduefilters (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.
0.1.5
Upgrade notes
- Each app container is recreated once. Containers now carry a spec label, and existing ones have none, so each image app's container is replaced on its next start. Anything an app kept only in its own container filesystem is lost then, as on a reinstall.
- Image apps get a
PORTenv var set toplacement.port. A manifest that declaresPORTinschemais refused; remove it and use${PORT}inapp.commandif the app takes the port as an argument. - Stricter
schema.env. Installs refuse an unknowntype, emptyoptions, or adefaultthat fails its owntypeoroptions.
App library
- Deploy known apps without knowing their setup. The deploy dialog opens on a new App library tab: search by name, tag, image (
lightpanda/browser:latest) or GitHub URL, pick an app, and fill only the settings it needs. Image, start command, port, permissions and API come from the library. Typing a known image or repo in the Docker Image or Git tab offers the library setup. - First apps: Lightpanda over MCP (no build: the published image in its MCP mode), Obscura, the database service, hello-world and streaming-echo.
- API:
GET /admin/library,GET /admin/library/<id>,POST /admin/library/<id>/installwith{name?, public?, env, secrets}. The library is compiled into the gateway.
Manifest
app.commandreplaces an image'sCMD, so a published image can run in another mode without a build. Supported by the Docker and Apple container drivers. Write${PORT}for the port: it becomesplacement.port, so the number is written once. Image apps also get aPORTenv var.interfacesays how callers use an app:type(mcp,openapi,http,cdp),path,summary,docsand a sampletryrequest. The console shows it in the services table, starts the Test dialog with the sample request, and uses its path in the token dialog's MCP config.- Required settings.
schema.envfields takerequired, and installs now checktype(string,number,integer,boolean) andoptions. An empty value falls back to the default. The library tab showsoptionsas a dropdown and marks required settings. - Reference docs:
docs/manifest.mddocuments every field, withdocs/amoeba.schema.jsonfor editors and AI tools, linked from the README and listed inllms.txt.
Console
- Build progress. Deploying from Git or a Dockerfile now shows elapsed time, the command running and the live build log, updated every 2 seconds, with a "Stop build" button. Before, the button just said "Building image..." until the build ended.
- Real service status. The table showed every service as "Idle (Scale-to-Zero)", because it read fields the gateway never sent. It now shows Running, Preparing, Idle or Error, with the error message and the service's port.
- Less flicker. The 3-second refresh no longer shows a loading state, skips re-rendering when nothing changed, and pauses while the tab is hidden. Services stay in a fixed order; before, they could reshuffle on every refresh.
Gateway
- Reinstalls run the new spec. Reinstalling an app under the same name used to restart its old container, so a changed image, command, env or memory limit had no effect (deploying Lightpanda from the library after the Docker Image tab still ran the CDP server, and
/mcpreturned 404). Containers are now labelled with a fingerprint of their spec and recreated when it changes. GETandDELETE /admin/apps/<name>/buildreport and cancel the latest build. A second build for the same name while one runs is409. Cancelling kills the build's whole process group.AMOEBA_BUILD_TIMEOUT_SECSoverrides the 15-minute build timeout, for large projects.GET /admin/appsreturns names sorted.GET /admin/apps/<name>adds aruntimeblock:running,active_requests,last_request_at,port,public.- Readiness errors name the port. "nothing answered on port 8080", plus the port the image suggests when it differs, e.g. 9222 for
lightpanda/browser, read from itsEXPOSEor--portin its command. A 503 for an app that failed or is still preparing now carries the reason in its body. - The reaper stops an idle service once. It used to stop an already-stopped service again on every 10-second sweep.
0.1.4
Fixes
- Version numbers. The 0.1.3 release was tagged before its version bump merged, so its binaries and console still reported 0.1.2. 0.1.4 reports its own version everywhere.
Security
- Console test runner upgraded to Vitest 4.1.12. Clears all six Dependabot alerts (three critical) in
vitest,@vitest/mockerandtinypool. They were dev-only: none of these ship in the images or the built console.
0.1.3
0.1.2
Upgrade notes
- New image:
ghcr.io/dickyj-grc/amoeba-db. The database service ships as its own image. GHCR creates new packages as private, so make it public, asamoebais, before installing thefinance-dbexample elsewhere. - Console dev server ports changed.
npm run devinweb/now serves on3064and proxies to the API on8064, matchingscripts/dev.sh. Before, it used3000and8080. - Installs check the whole catalog. An app install that would leave
services.jsoninvalid now fails with400. Before, the file was written, and the gateway silently kept serving the old catalog.
Database service (new)
amoeba-dbholds one PostgreSQL connection and serves only approved definitions: tables opened for specific operations, and named queries. Callers send names and values, never SQL (#18).- Per-role column policy (
show,mask,hide). Masking happens in the generated SQL, so a masked value never leaves the database. Unlisted columns stay closed. - Guardrails:
- Reads run in
READ ONLYtransactions, on a separate read connection if one is configured. - Writes can use their own account (
DATABASE_URL_WRITE). - Every statement has a timeout.
- A write that touches more rows than its limit is rolled back.
- Rows are scoped to the caller's org (
app.org,org_column). - Every call writes one audit record.
- Reads run in
- Every definition the caller's roles allow is also an MCP tool at
/mcp. - Definitions hot-reload from
DB_DEFINITIONS_FILE. An invalid edit is logged, and the previous definitions stay in force. - Example package
examples/app-packages/finance-db, with demo data indemo.sql.
Gateway
- App manifests can declare
operation_rules, so a package can name its own operations (for example, one per table and query) and grant them separately (#18). AMOEBA_SERVICES_FILEoverrides the catalog path (default/etc/amoeba/services.json) (#17).- Install, uninstall and policy changes apply to the running gateway immediately, instead of waiting for the file watcher (#17).
Apple container driver (macOS)
- Image apps install correctly on
apple-containermachines. Before, the install was silently ignored (#17). - New apps no longer get stuck in
pulling: the readiness probe uses the container's resolved IP and pulls withcontainer image pull(#17). - Plain env vars from the install now reach the container. Before, only secrets did (#17).
Local development
scripts/dev.shruns Amoeba and the web console in one command, with the API onlocalhost:8064and the console onlocalhost:3064. On macOS with Apple'scontainerCLI it runs natively, with no Docker Desktop VM; elsewhere it uses Docker Compose (#17).- The README has a new Run Locally section, an intro built around Amoeba's two jobs, and a roadmap (#19).
CI
0.1.1
Upgrade notes
- Obscura package needs a token. Obscura 0.2.3+ refuses to start its MCP server without
OBSCURA_MCP_TOKEN. The example package now pinsh4ckf0r0day/obscura:0.2.6and requires that secret (32+ characters) at install. Reinstall Obscura withvalues.secrets.OBSCURA_MCP_TOKENset. - Upstream auth fails closed. A service with
upstream_authwhose token can't be resolved now gets503withx-amoeba-rejection-reason: secret-unavailable. Before, the request was forwarded with an emptyBearertoken. - New header for upstreams. Upstreams now receive
x-amoeba-roles. Amoeba strips any copy the client sends.
Gateway
- Path-based
operation_rules: map paths likeloans/{id}/approveto named operations, checked against the service's role map. The first matching rule wins; requests that match no rule fall back to the HTTP method. Rules are validated when the config loads (#11). - Upstreams receive the caller's roles in
x-amoeba-roles, next tox-amoeba-userandx-amoeba-org(#11). upstream_auth.token_secretreads the upstream token from an installed secret file on each request (#14).- Token revocation is persisted, so a revoked token stays revoked across restarts.
Apps and secrets
- App manifests can declare
upstream_auth: {type, secret}. The same secret is passed to the container and sent by the gateway as its credential (#14). - Secret names are checked so they can't escape the app's secrets directory. Install rejects secret values the manifest doesn't declare (#12).
- MCP
deploy_service: agents can deploy services, with single-tenant or per-org permission maps (#4).
Web console
- New admin console: services table, stats, issuing scoped tokens, and testing endpoints.
- Deploying from the console now builds a real app package, so rows marked as secret reach the service as secrets (#12).
- The Git repo and Dockerfile tabs now work: Amoeba builds the image on its host (
POST /admin/apps/:name/build), shows the build log, and then deploys the image. Git URLs must behttps://, and all input is checked before anygitordockercommand runs (#13). npm run buildworks again: Tailwind is pinned to v3. A newWebCI workflow runs tests and the build (#12).
Fixes and maintenance
- Builds again after the zip 9 and jsonwebtoken 10 upgrades. JWT signing no longer panics; that panic made every login return 502.
- Nightly e2e: retry droplet deletion, sweep leftover droplets, and run a branch's own orchestrator image on manual runs (#14).
- New example config for Unlimited-OCR.
- Dependency bumps: vite, postcss-selector-parser, jsonwebtoken, cargo group (#5–#8).
0.1.0
This release shows
What's Changed
- fix(e2e): poll for container stop instead of fixed sleep by @ramziwahid in #3
New Contributors
- @ramziwahid made their first contribution in #3
Full Changelog: https://github.com/dickyj-grc/Amoeba/commits/v0.1.0