Repository navigation
Releases
Moorage 0.10.1
Moorage 0.10.1 fixes two things about stopping a server, for those who have more than one server on a machine, or use services.
To upgrade from 0.10.0, run moor server upgrade. Running apps are taken over without a restart, and moor server upgrade --rollback goes back. This release does not change the database.
Fixed
moor server stop --allandmoor server uninstallleft services running, so that uninstalling Moorage could leave a database running that nothing looked after. They now stop them, after the apps, and what they hold stays in their volumes. The server starts them again when it next starts.--keep-appsleaves them running, as it does apps.moor server uninstall,startandrestartwent by the name of the service, and not by which server it runs. A server tried out with a configuration or a home directory of its own could take away the real one's service. They now leave it alone, asmoor server stopalready did. If yours was installed with a--configof its own, pass the same one, as they say if you do not.- With
engine = "auto"and both Podman and Docker installed, stopping everything only looked in the first. A server takes whichever answers, so that what it ran could be in the other. It now looks in both. moor server uninstallwith no service said that it had removed one, and stopped the apps of a server that might be running without one. It now says that there is none, and leaves them.moor server stop --allstops them.
Moorage 0.10.0
Moorage 0.10.0 runs a database for your app. Say [services.db] and type = "postgres" in moorage.toml, or type = "s3" for object storage, and each environment gets its own, with its address given to the app as it starts. They run in containers, so that they take Podman or Docker, and only those who use them need one.
What this is not. In production, a service is one container with no replica, kept by backups: a convenience, and not database hosting. For a database that matters, set DATABASE_URL on production to one that is looked after, and let previews use their own. Apps on a machine are kept apart from a service by its password, and not by the network. Real PostgreSQL and object storage are tried under both engines in CI on Linux, and nowhere else: on macOS and Windows, a service's data lives inside the engine's machine, and goes with it. Everything before this that was untried still is: this release has not had an outside penetration test, or met Let's Encrypt itself, Cloudflare, or a webhook directly from GitHub, and setting up Kiro comes from its documentation alone.
To upgrade from 0.9.0, run moor server upgrade. Running apps are taken over without a restart. This release changes the database, so that moor server upgrade --rollback puts the previous one back. Nothing about an app changes unless its manifest names a service, and a server that has none never asks for an engine because of them.
Added
[services.<name>], withtype = "postgres", versions 15 to 18, ortype = "s3", which is Versity Gateway on plain files, with one bucket and one key under the names that clients look for. Each environment and each preview has its own, with a random password. A service is made before a release, so that a release command can migrate, and one that does not become ready fails the deployment with the previous release still serving. Nothing is ever calledlatest.- Previews are empty, unless you opt in.
seed = "production"starts a new preview with production's latest dump, where nothing can connect untilsanitizehas run. That is refused for a preview anyone can reach, one from a fork, and one that a coding agent's token made. A later commit ormoor accesscannot open the gate over such a copy. A preview never ends up on production's database by inheritance. - Sleep. An environment's services stop with it and keep what they hold, and waking starts them first. A command or a cron job starts what it needs for as long as it runs.
- Backups hold a dump of each service of production and of the named environments, made just before:
pg_dumpall, or a tar of the object store. Volumes are not in a backup. After a restore to a new machine, a service loads its dump by itself before anything can connect to it.moor services restoregoes back to the dump on the machine that it ran on, into a new volume, so that one that will not load changes nothing. moor services, withlogs,update,upgrade --to,restoreandremove.moor logs --service dbreads what one has said. A new major version is refused at deploy, andmoor services upgrademoves its data with the newer version's tools and checks that it holds what it did. After an upgrade or a restore, the old volume stays until--finishlets go of it, or--backgoes back to it.- A Services tab in the console, with what each has said and uses, and what an app's services add up to across its environments, as each preview has its own. What one uses is also in metrics, as
service.db.moor server doctorsays if one that should be running is not, and events say when one is made, restarted or removed.
Changed
- A cold rootless Podman is given 15 seconds to answer for the first time, rather than 3, as that failed a first deployment.
- CI does not test the same code twice. A merge of a pull request that has passed takes about a minute, and the release of a commit that has passed reuses that.
Moorage 0.9.0
Moorage 0.9.0 lets coding agents deploy to it and read how it went. moor mcp is a small server for Claude Code, Codex and others, which refuses a token that can do everything, and moor mcp setup makes a narrow one and connects a client. A token can be limited to previews, and moor agent init tells an agent how to use all of this.
What that limit does not do. A token limited to previews reaches only the previews it makes, and is refused everything else, including what is added to Moorage later. Those previews take nothing of production's variables or those set for every environment. The code it deploys still runs on your server, and on Linux an app's environments share a user, so that a preview's code can read production's data. To keep what an agent makes from production altogether, give it an app of its own. Coding agents says so at more length, and is worth reading first.
This release also fixes a bug that matters if you run containers: apps with runtime = "image" or "dockerfile" lost [environments], [[cron]], [vars] and strip_prefix, silently. And it makes Podman and Docker provably optional, ahead of the services planned for 0.10.0, which only those who use them will need an engine for.
To upgrade from 0.8.0, run moor server upgrade. Running apps are taken over without a restart. This release changes the database, so that moor server upgrade --rollback puts the previous one back. Some things to know:
- A container app's
[environments],[[cron]],[vars]andstrip_prefixnow count. If yours has a[[cron]]that never ran, or a required variable that was never asked for, they will now. - Deploying an image to a server whose engine cannot run it is refused at once, with a 409, rather than failing as a deployment.
source=buildin an environment's logs now shows that environment's builds and runs, and not those of all of an app's environments.keep_releasesis now production's to say. What a branch's manifest says no longer decides how many releases of the others are kept, which a preview could have used to remove production's way back.- With the engine not answering, restarting, scaling, rolling back, changing variables, putting to sleep or deleting a container app now says why it cannot, with a 409, and changes nothing, rather than appearing to or answering 500. So does deploying a static site over one.
Added
moor mcp, a small Model Context Protocol server for coding agents, on standard input and output. It reads apps, deployments, releases and logs, and checks a local manifest. With--allow-deploy, it can deploy, roll back and restart. Nothing in it runs commands, reads secrets or deletes anything, and it reads local files only below where it started or--root, which cannot be your home directory or above it. What an app wrote is marked as untrusted, with what draws nothing removed. It refuses a token that can do everything, and does not fall back on whatmoor loginstored. See Coding agents.moor mcp setupmakes a narrow, expiring token, keeps it in a context of its own, and tells a client of the server: Claude Code, Codex, VS Code, Gemini CLI, Cursor, Kiro's IDE and CLI, and others. Running it again makes the new token before it revokes the one that context held, and leaves another machine's alone, and it will not replace a context thatmoor loginmade.moor agent initadds a section ofAGENTS.mdand an Agent Skill to a repository, which teach an agent to use Moorage, and what to be careful of. It keeps your line endings, leaves alone a file whose markers it does not understand, and writes nothing through a link.- A token can be limited to previews, with
moor tokens create --envs previewsor in the console. It deploys only to a name starting withagent-, which makes a preview that takes nothing of production's, and is refused everything else, deny by default. It limits what a token can ask for, and not what the code it deploys can do: Coding agents says where that stops.
Changed
- A container engine is provably optional. An app that does not run in a container never causes the server to ask for one, and a test holds it to that. The server finds out as it starts without waiting, and again only when something wants to know, so that starting Docker Desktop later or installing Podman needs no restart.
GET /api/v1/serversays how it stands, an image is refused at once if it cannot run, and anything else that needs one fails before it builds, with what to do. See The engine. autoprefers an engine that answers to the first one found. Once an image has been built or fetched under one, it stays with that one while anything here needs it, as the image is in its store, and until then an engine that only answered holds nothing.
Fixed
- A container engine that was down at start lost track of its containers. Their records were marked as stopped, and new ones were started every ten seconds. Now nothing changes until it answers, when the same containers carry on, and
server.engine_downsays what is happening. - What an engine did could hold up a server. Commands that stop or remove a container now have a time limit, so that a daemon that hangs cannot hold an environment for ever, and a server with apps in containers waits a few seconds for it as it starts, and takes over the rest once it answers. Looking at how the server stands answers at once.
- A container that could not be stopped was recorded as stopped. It now stays on the record until the engine answers, and is no longer served.
- A daemon that was down could be taken for a container that had gone, because of how an engine with no socket words its error. The app was marked as lost, and another was started beside it once the daemon returned.
- gRPC apps in containers lost
h2cwhen a server restarted. - Build logs were shown under every environment of an app, so that reading a preview's could show production's.
- A branch's manifest could decide how many releases the others kept. It is now production's manifest that says.
- Container apps lost part of their manifest. With
runtime = "image"or"dockerfile",[environments],[[cron]],[vars]andstrip_prefixwere silently ignored: no named environment, no cron job, and no required or generated variable. They now count, and an environment'sresourcesreach the engine.
Moorage 0.8.0
Moorage 0.8.0 can take itself beyond the firewall: it gets certificates from a public CA by itself, and has a preset for a server on the internet, with what two close reviews of it found fixed. It speaks gRPC and keeps sessions sticky. Its connections to GitHub, GitLab, Gitea, OpenTelemetry and syslog have now met the real thing.
It has not had an outside penetration test, which this release was meant to include: that takes someone engaged to do it. Until then, Security says what we would do, which is to keep a server on a network you control, or behind something that decides who reaches it.
What has been tried: GitHub by hand, with a real repository, and GitLab, Gitea, an OpenTelemetry collector, syslog-ng, a gRPC client and Pebble in CI, on each change to that code. What has not: a certificate from Let's Encrypt itself, a record set at Cloudflare, a webhook delivered directly by GitHub, and a real fork on GitHub.
To upgrade from 0.7.0, run moor server upgrade. Running apps are taken over without a restart, and moor server upgrade --rollback goes back. Some things to know:
- A static site no longer serves what starts with a dot, except
.well-known. If yours means to, saydotfiles = trueunder[static]. - Viewers see less. A release's manifest, which variables changed, and with
--viewers-see-logs=falsewhat a failed deployment printed and the commands people ran, are kept from them. - A token limited to one app can no longer read projects, and a token that can only read cannot mark notifications as read. A script that did either needs a different token.
- Reading an app that is not there answers 404 throughout. A few routes gave an empty list or a 409.
- A deleted app's events go with it. The audit log keeps what happened.
- A failed build or release command no longer quotes itself in its message. A script that looked for the command there should look in the log.
Added
- Certificates from a CA.
tls.mode = "acme"gets certificates from Let's Encrypt, any other CA, or an internal ACME server: for each hostname the first time it is wanted, by HTTP-01 or TLS-ALPN-01, or one for the whole domain by DNS-01, through Cloudflare, RFC 2136 or a program of your own. Only what the server serves gets one, so that nobody can use up a CA's limits by making up names. They are renewed by themselves, and a certificate that cannot be had reaches those concerned. See TLS and trusting the server. - The
publicpreset,moor server init --preset public, for a server on the internet: certificates from a CA, and everything but production behind a sign-in. hstsunder[tls]tells browsers to use nothing but HTTPS for each hostname, and thepublicpreset turns it on. See Staying on HTTPS.- gRPC.
protocol = "h2c"on awebprocess runs a server that speaks only cleartext HTTP/2. Streams work both ways, trailers come through, and clients can reach it with TLS or, on the plain listener, without. See gRPC. - Sticky sessions.
sticky = trueon awebprocess keeps a browser with the instance it first reached, by a cookie that the app does not hear. See Scaling. - A website, at https://robert-mcdermott.github.io/moorage/: what Moorage is, and all of its documentation, in both themes, with a search.
node docs/site/build.mjsmakes it from the guides indocs, so that the two say the same, and fails on a broken link, which CI now checks. See the website's README. - Screenshots in the guides, all taken from a real server by
node docs/capture/capture.mjs, which starts one, deploys the examples, and makes some requests. - New guides: Getting started, Concepts, Releases, rollbacks and scaling, Logs, Server configuration, Running a server, Architecture and Security.
- A reference of every command, made from the commands themselves, and an API reference on the website, made from the OpenAPI document. A test keeps the first the same as the commands.
Changed
- Viewers see what the table of roles says, and no more. A release's manifest and which variables changed, in the API, the console and the activity feed, are for those who can deploy.
--viewers-see-logs=falsenow also keeps back what a failed deployment printed and the commands that people ran. - A token limited to one app is limited to it. It is refused projects and their members, as it should have been. A token that can only read can no longer mark notifications as read.
- What a project hides looks like what is not there. The API, the console and
gitgive the same answer for an app or a project someone has no role in as for one that does not exist, and reading a missing app now always answers 404, where a few routes gave an empty list or a 409. Accounts says where that stops. - What the server does on its own account is for administrators: backups, certificates, disk space and starting up are no longer in everyone's activity.
- Deleting an app deletes its events, so that whoever takes its name, perhaps in another project, does not inherit them. The audit log keeps what happened.
- A failed build or release command says how it ended and not what it was, as more people read that than can read the command. The log still says.
- A static site no longer serves files and directories whose names start with a dot, such as a
.envor.gitleft in the directory, except.well-known.dotfiles = trueunder[static]serves them as before. - Tried against the real thing.
.github/scripts/real-services-check.pydrives GitLab, Gitea, an OpenTelemetry collector, syslog-ng, a gRPC client and Pebble in CI, and GitHub was tried by hand. They found that GitLab wants a Maintainer's token and asks for a fork's commit by its merge request's ref, and thatmoor runlost the quoting of the words it was given. moor forge connectchecks a token with the forge, and refuses one that it does not accept, or that cannot see the repository, and says so, leaving what was there as it was. Before, a bad token was taken, and found out from the first pull request. A forge that cannot answer at that moment is no reason to refuse.
Fixed
- The list of apps could name those you cannot see. Its cursor came from the next app, whoever's it was, so that going through the list one at a time read off every name on the server. Pages now end at what you can see, and do not come up short.
- An open log could outlast a role. Following a deployment's log now ends within a minute of losing the right to read it, as other streams do.
- The address guard took some IPv6 addresses at face value.
::7f00:1,64:ff9b::7f00:1and2002:7f00:1::all stand for127.0.0.1on some networks, and are now judged as that. - Going away could wait for something that a container engine's command had left running, for as long as that ran. It now waits two seconds, as other commands do.
- An open redirect on static sites. A path with a backslash in it, such as
/%5Cevil.example//, was redirected to/\evil.example/, which browsers read as another site. A link on your domain could send someone anywhere. Such a path is now not found, as is one with a control character. - A way to pass an identity to some apps. A client could send
X.Moorage.User, which an app served through CGI or the like reads asX-Moorage-User, the header Moorage uses to say who signed in. Every spelling of the platform's headers is now removed: underscores already were, and dots and the rest now are. - Renaming an app on Windows waits longer for a virus scanner to finish with its builds: six seconds was sometimes too few.
moor runandmoor execkeep your words as you gave them.moor run -- sh -c "echo a; echo b"ran assh -c echo a; echo b, and an argument with a space in it, likemoor run -- python -c "print('hi')", came apart. Several words are now quoted, and one word is still a command line for the server's shell:moor run -- 'echo a && echo b'.- Going back from an upgrade on macOS could leave the server stopped, when it took longer to stop than launchd took to be told to start it, which it then ignores.
moor server stopnow waits for it too, so thatmoor server startstraight afterwards works. moor server statusno longer reports a service on this machine that runs another server as if it were this one's.- The console's tables no longer break a name, an address or an email in the middle of a word when a window is narrow: the list of apps at a laptop's width, say.
Moorage 0.7.0
Moorage 0.7.0 brings the server to Windows, connects it to where your code is kept, and lets you into what it runs. A push or a pull request on GitHub, GitLab or Gitea can deploy by itself, with a preview for each pull request. moor run -it is a terminal in an app, and the console can run commands and show its data directory. Logs and metrics can go to where your team already looks, and thresholds say when to be told.
To upgrade from 0.6.0, run moor server upgrade. Running apps are taken over without a restart, and moor server upgrade --rollback goes back. Nothing you have set up behaves differently. Some things to know:
- On Windows, apps run as the server's own account, as there is nothing there yet to keep them apart. They can read its database and master key, so anyone who can deploy to a server on Windows can reach every secret on it, whichever project they are in. See How apps are kept apart.
moor server installon Windows closes the data directory to everyone but the service, so it refuses the top of a drive, or anyone's profile. A data directory has to be a folder of its own.
Connecting to a real forge, OpenTelemetry collector or syslog server has been tried against stand-ins that follow their published formats, and not against the real thing. If yours disagrees, please say so.
Added
-
A server on Windows, as a service.
moor server install, in an elevated terminal, makes a Windows service that runs as an account of its own with few rights, and apps run as it too.[resources]is enforced there by Job Objects, which an app is inside from before it runs.moor server resolver installadds a block to the hosts file. See installing. -
Deploying from a forge.
moor forge connect, or the Repository section of an app's settings, connects an app to a repository on GitHub, GitLab or Gitea, or anything else that can sign a webhook. A push to the default branch deploys to production. Each pull request gets a preview, with a check on its commit and one comment that says where it is, and it goes when the pull request closes. What is deployed is what is fetched from the repository, whatever an event says, and a pull request's manifest cannot send it anywhere but its own preview. A pull request from a fork or from someone the forge does not vouch for is not fetched or built until a maintainer approves that commit, and another commit waits again. A server that a forge cannot reach can look every minute instead, with--poll. See Deploying from a forge. -
A terminal.
moor run -it -- /bin/shgives you a terminal in a one-off instance of the current release, on Linux, macOS and Windows, as the app's user and within its limits.moor exec INSTANCE -itdoes it in a running container. Losing the connection stops what was running, a token that may no longer do this ends it, and what is said in one is not kept. See Getting into an app. -
A console in the browser. An app's Console tab runs one command at a time, and shows what it says as it says it.
-
The data directory. An app's Files tab and
moor fileslist, download, upload and remove what is in an environment's data directory. What an app has left there cannot lead the server out of it: a link out is not followed, nor is a pipe opened, and a file is only ever sent as a download. -
Telemetry elsewhere.
moor server telemetry, or Settings then Telemetry, sends what apps say to syslog (RFC 5424, over UDP, TCP or TLS), an OpenTelemetry collector or any HTTP endpoint, and what they do to an OpenTelemetry collector. A sink that is down costs nothing but its own place in a queue, and what apps say while the server restarts is sent when it is back. See Sending telemetry elsewhere. -
Thresholds.
moor alerts, or an app's Metrics tab, says when to be told about an environment's error rate, latency, memory or CPU, through the channels that notifications already go to.[notifications] disk_percentsays how full the server's data volume may get.
Fixed
- A backup could fail, rarely, if an app swapped a file between a link and a plain file as it was being read, and back again. It now notes that the file changed, as it does for one that is changing.
Moorage 0.6.0
Moorage 0.6.0 is about a server you can rely on. On Linux, apps are kept apart from one another. Backups and restoring are built in, and were tried on real services. People can sign in with a second factor, through your identity provider, or through a proxy. A server can upgrade itself, and go back. Moorage is now open source, under the Apache License 2.0.
To upgrade from 0.5.0, run the installer once and restart the server, as moor server upgrade starts with this version. Running apps are taken over without a restart. Some things behave differently:
- On a server that runs as root on Linux, apps get users of their own as they next start. That is the system service, as
level = "auto"under[isolation]means this. An app can then only write to$MOORAGE_DATA_DIRand$TMPDIR, as its build is read-only, and cannot read what only root can.level = "none"keeps it as it was while you look into anything that minds. Instances that go on through the upgrade go on as root until they restart: Settings → System and the app's page say which, andmoor restart APPdoes it with no downtime. See isolation. - To go back to 0.5.0, stop the server, put the copy of the database that this version kept in
backupsin the data directory in the place ofmoorage.db, and give the installerMOOR_VERSION=v0.5.0. 0.5.0 refuses a database that has moved on. - A site's directory has to be inside its build. One reached through a link to somewhere else now fails the build.
Added
- Apps kept apart on Linux. A server running as root gives each app an operating system user of its own, and its builds another: its data is its own, its build is read-only, and other apps cannot read its secrets.
level = "sandbox"under[isolation]inserver.tomladds Landlock andno_new_privs. See how apps are kept apart. [resources]outside containers. Memory, CPU and process limits for any app, enforced by the kernel where the server runs as root on Linux. Elsewhere an instance that stays over its memory limit is restarted, and the console says what is not held to. An instance killed for its memory says that it ran out of memory.- Backups.
moor server backupand Settings → Backups make a backup of a running server, on demand or on a schedule, to a directory or a bucket on S3 or a service like it.moor server restorebrings it all back: apps, data, secrets and accounts. A restore checks everything before it changes anything, and is tried in CI. See backups. - Two-factor sign-in. Your account → Two-factor adds a code from an authenticator app to signing in, with recovery codes for if you lose it. See accounts.
- Single sign-on. Settings → Sign-in connects to any OpenID Connect provider, with accounts made the first time, roles from groups, and an option to turn off passwords.
trusted_headerunder[auth]believes a proxy that signs people in. See how people sign in. moor server upgrade. A server upgrades itself: it checks a release against its published checksum, keeps a copy of the database and the binary, swaps them, restarts, and goes back by itself if the new version does not come up.--rollbackgoes back later on. Apps keep running throughout. Releases now come with a list of what went into them, and an attestation of the workflow that built them. See upgrading.- The server's configuration, as a file.
moor server config exportwrites out people, projects, registries, notifications, backups and sign-in, with no secrets, andmoor server config importbrings it in on that server or another, with--dry-runto look first. See the server's configuration. - Node.js downloads are checked against its signature. The checksums of a Node.js release have to be signed by one of its releasers, whose keys come with moor. A new releaser's key needs a new moor, or
signatures = "warn"under[toolchains]. A signature that is wrong is always refused.
Fixed
- A deployment could bring the release before it back. What keeps instances running could look at the current release just before a deployment recorded the new one, and start an instance of the old one after the rollout had finished. That instance then took the traffic, until the next deployment. It was rare, and has been possible since 0.1.0. A release is now recorded before its instances take the traffic, and an instance of any other release is stopped.
Moorage 0.5.0
Moorage 0.5.0 is about apps once they are running. They can have cron jobs and one-off commands, charts of how they are doing, and notifications when they are not. Drop a folder in the console and it is a static site, with every release at an address of its own. A server of 4 CPUs and 8 GB holds 60 environments with sleep on, as measured. Moorage is now licensed under the Apache License 2.0.
Upgrading from 0.4.0 needs no steps of its own: replace moor and restart the server, and running apps are taken over without a restart. Some things behave differently:
[[cron]]in a manifest now runs. It was accepted and did nothing, andmoor manifest validatewarned of that. Its jobs start with the next deployment.[vars.NAME]now counts. A deployment fails early if arequiredone is missing, and one togenerateis made.watchin[app]now counts. A push that touches none of those paths is kept, and not deployed.- People are told when things fail. In the console, maintainers of a project, its administrators and whoever pushed a deployment see notifications, with no setup. Nothing leaves the server until you add a channel and a rule.
- Metrics take room. About 6 MB for a busy environment, kept for a year.
moor deploy --staticnow follows the manifest's[environments.*]and[previews], andkeep_releases. It ignored them, so that a site you meant to gate withaccessin its manifest may have been open, and is now closed as it says.- Commands run with their environment's variables. A release command ran with
[env]alone, and now has[environments.NAME.env]over it, as the app itself always did.
Fixed
- With Moorage's own CA, the addresses of environments and previews had no certificate, so that a browser got a TLS error. They have one now.
- A long request through a login gate with a token ended only with the gate, and not with the token. Revoking the token ends it now, within a minute.
- Following an app's logs or a run's output now ends when you may no longer see them, within a minute.
- A server started right after another stopped could say that the other was still using its data directory, if a process it was starting at that moment held a copy of the lock. Stopping now lets go of the lock whatever else holds a copy.
Added
- Drop a folder in the console (wave 5, slice 4). On an app's Deploy page, drop a folder or choose one, and it is a live static site a moment later.
.gitand.envfiles stay out of it. See static sites. - Every release of a static site at its own address.
docs--production--v12.apps.example.comserves that release as long as it is kept, behind the same gate as its environment, to compare versions or show someone an exact build.moor releaseslists them. - Notifications (wave 5, slice 3). Moorage says when a deployment fails, an app keeps crashing, a cron job fails or the server's disk is nearly full: in the console for those it concerns, with no setup, and through signed webhooks, Slack, Microsoft Teams, Discord and email for whatever rules you add, of the whole server, a project or an app. One crash-looping app sends one message and not hundreds, then a word when it recovers.
moor notifications, and see Notifications. - Metrics (wave 5, slice 2). Requests, response times, CPU and memory for every environment, kept for a year with nothing else to run. An app's Metrics tab has them as charts from the last 15 minutes to the last 30 days, with each release marked, its page has the last hour at a glance, and the list of apps has each one's requests.
moor metrics, and/metricsfor Prometheus. - Cron jobs (wave 5, slice 1).
[[cron]]in the manifest: five-field schedules or@dailyand@every 15m, time zones, time limits, what to do about overlaps, and which environments.moor cron, and a Cron tab with when each next runs and how it last went. The last 100 runs of each are kept, with what they said. moor run -- COMMAND. Runs a command in the current release, with its variables and data, shows what it says, and ends with its exit status. The console has a box for it.moor restart PROCESS. Replaces the instances of one process, and leaves the others running.- What an app expects.
[vars.NAME]: a deployment fails early if arequiredone is missing, and one togenerateis made once for each environment. watchin[app]. A push that touches none of those paths is kept, not deployed.
Moorage 0.4.0
Moorage 0.4.0 gives every branch a place of its own, and says who can reach it. Push a branch and it gets its own build, address and data, which sleeps when nobody is using it and goes when its branch does. Staging, promoting what it runs to production, and locks come with it. Each environment can be open, behind a password, for those signed in, or only for people with a share link. Apps can have domains of their own, and belong to projects, in which people have roles, with an audit log of who did what.
Upgrading from 0.3.0 needs no steps of its own: replace moor and restart the server, and running apps are taken over without a restart. Three things behave differently:
- Pushing a branch other than the default now deploys it, as a preview.
enabled = falsein[previews]keeps branches as they were. - Previews are for those signed in with a role in the app's project. To share them with people who have no account, make a share link, or set
preview = "public"under[access]inserver.toml. - New servers set up as you keep everything in
~/.moorageon macOS and Linux. A server that already exists is found where it is.
Added
- Access gates (wave 4, slice 6). Each environment can be open to anyone, behind a shared password, for those signed in to Moorage, whom the app hears named in
X-Moorage-Userand its fellows, or only for people with a share link, with a list of addresses on top of any of them.moor access,moor share, an Access tab in the console,accessin the manifest and[access]inserver.toml. Previews are for those signed in with a role, unless you say otherwise: if you share previews with people who have no account, setpreview = "public"under[access]inserver.toml, or make a share link. - Your own domains, and paths (wave 4, slice 7).
moor domains add portal.example.com, which serves once its DNS points here, ortools.example.com/reports, so that several apps share a hostname. Androuting = "path", for servers with no wildcard DNS: apps at/<app>/, with a console on its own hostname. X-Moorage-Proxy-Token, which an app that does not trust what else runs on its machine can check against$MOORAGE_PROXY_TOKEN, to know that a request came through Moorage.- Sleep and wake (wave 4, slice 5). An environment left idle stops its instances, and the next request starts them and waits: a browser gets a page that says it is waking up, and reloads itself. Previews do it after 30 minutes unless told otherwise, and others with
sleep_afterin[environments.NAME].sleep = falsekeeps a process running,moor sleepandmoor wakedo it by hand, and it stays asleep across a restart of the server. - Previews (wave 4, slice 4). Push a branch, and it gets its own build at its own address,
shop--my-branch.apps.example.com, with production's variables (except those set--production-only), its own empty data directory andnoindex. Deleting the branch destroys it, and so does going unused for seven days, unless it is pinned. Previews in the console andmoor previewshave them all. If you push other branches to a Moorage remote today, note that they will now deploy:enabled = falsein[previews]keeps them as they were. - Named environments.
[environments.staging]with a branch,moor environments create, ormoor deploy --env staging: a place that stays, with its own address, variables and data. Every page of an app in the console and every command with--envworks on them. moor promote --from staging. Releases the exact build one environment runs to another, in seconds, and warns if it was built with other build variables.moor lockandmoor unlock. Stop deployments to an environment, so that the next push does not replace a rollback. A rollback's page offers it.- Renaming and deleting apps (wave 4, slice 3).
moor apps rename,moor apps delete, and an app's Settings page, which also moves it to another project. Renaming moves everything of it and starts it again under the new name. Deleting says how much room each part takes, asks for its name, and can keep its data directory.moor apps infoandGET /api/v1/apps/{app}say how much room an app takes. - Projects and roles (wave 4, slice 2). Apps belong to projects, and people have roles in them: viewers see an app and its logs, deployers also deploy, restart, roll back and scale, and maintainers also change its variables and the project's members. Those with no role cannot tell its apps exist. An upgrade changes nothing: every app goes in a
defaultproject where everyone is a maintainer, until you say otherwise.moor projects,moor apps create --project,moor apps move, and a Projects page; the console shows what your role allows. See Projects and roles. - The audit log. Every change through the API or the console, every sign-in, push and secret revealed, kept for a year, with who, from where, what to, and how it went.
moor audit,GET /api/v1/audit, and Settings for administrators. - Revealing a secret.
moor env reveal NAME, and a button for maintainers. It shows the value once, and is recorded.
Fixed
- A tab in the address after signing in could send you to another site. The
nextof the sign-in page now refuses anything a browser would take away before looking. X-Real-IPsaid what a client claimed behind a proxy, rather than what the proxy saw. It now goes by the nearest address that is not a trusted proxy.- Headers such as
X_Moorage_Userreached apps that read an underscore as a dash. They are now removed.
Changed
~/.moorageis the default home (wave 4, slice 1). Set up as yourself on macOS or Linux, a server keepsserver.tomlanddata/in~/.moorage, andmooritsconfig.toml: one folder, the same on both, short to type. An existing server stays where it is, andmoorfinds it.XDG_CONFIG_HOMEandXDG_DATA_HOMEstill win on Linux, if they are set. Servers set up as root and Windows have not moved.
Moorage 0.3.0
Moorage 0.3.0 has a web console. Everything you run with moor you can now see and do at the server's console address: deploy, scale, restart and roll back apps; watch a deployment's stages and log as they happen; follow and search logs; change variables; manage your keys and tokens, and, as an administrator, users and registries. Every page works without scripts, on a phone, and in Chromium, Firefox and WebKit, which CI now drives for real. It also installs in one line, and gains moor scale, moor redeploy and moor password.
Upgrading from 0.2.0 needs no steps of its own: replace moor and restart the server, and running apps are taken over without a restart. Two things take a little more or a little less room from now on: an upload's source is kept beside its build for moor redeploy, until the build is collected; and the logs of instances that stopped more than 14 days ago are removed.
Added
-
Logs in the console (wave 3, slice 4). Every instance's output, live, merged by time: by process or instance, time range, text and source, with an app's builds, requests and events a click away, and only its problems at another. A line that is a JSON object reads as its message and fields, and errors and warnings stand out. Pause, wrap, older lines and download.
moor logsand the API have the same:--source,--grep,--since,--until,--instanceand--problems. -
Variables in the console. With where each comes from, and whether something overrides it. Change one and it is released; or save it and release it later, which the page keeps saying. Edit as text takes a whole
.envand says what it would change before it does. -
Your account in the console. Your password, SSH keys, API tokens, each with what it can do, for which apps and until when, and your sessions.
moor password, andPOST /api/v1/me/password: it ends your other sessions. -
Settings for administrators. What
server.tomlsays; users, with invitation links, roles and disabling; registries' credentials; and a System page with whatmoor server doctorfinds, also atGET /api/v1/server/doctor. -
Apps and deployments in the console (wave 3, slice 3). The apps list says how each app stands. An app's page has its instances and their health, its deployments and activity, and Deploy, Redeploy, Restart, Roll back and Scale. A deployment's page shows its stages and log as they happen, the resolved manifest and what changed since the release before: of variables, their names only. New app says how to deploy one; a source archive or an image can be deployed from the page. See the console.
-
moor scale web=3 worker=1. How many instances of each process run: new ones start beside those running, those beyond the number finish their requests and stop, and an instance that cannot start leaves the app as it was. The number stays, over the manifest'sinstances, for the releases to come. In the API:PATCH /api/v1/apps/{app}/envs/{env}. Planned for 0.5.0, and here because the console needed it. -
moor redeploy. Builds again what the current release was built from: the same commit, upload or image name. For this, a build now keeps a copy of its upload, or of an image's manifest, assource.tar.gzbeside it, until the build is collected; a release built before this version cannot be redeployed, and says so. A release uploaded ready to run has nothing to build. -
moor releases show vNandmoor releases diff vN vM. What a release runs, and what changed between two. -
Every deployment has a log. A rollback, a change of variables and an upload ready to run wrote none.
-
The web console begins (wave 3, slice 2). Signing in now leads to the console: the apps, with their addresses and releases; Activity, a timeline of what happened; and Getting started, which says how the server looks, what to install and how to deploy, and watches for your first deployment. Pages update as things happen, over one stream of events.
⌘KorCtrl+Kjumps to an app, a page or an action. It has light and dark themes that follow the system or your choice, works at phone width, meets WCAG AA contrast, and works without scripts: every page is plain HTML and forms, under a strict Content-Security-Policy with no inline scripts or styles. See The web console. -
Events. Deployments, releases, changes of variables (their names, never their values), instances that exit, sicken and recover, and the server starting are recorded for 90 days.
moor eventsshows them and-ffollows them;GET /api/v1/eventslists them andGET /api/v1/events/streamfollows them as server-sent events, catching up after a reconnection. A token restricted to an app sees only that app's. -
One line to install (wave 3, slice 1).
curl … install.sh | shon macOS and Linux, andirm … install.ps1 | iexin PowerShell on Windows 11. Each picks the file for the computer from the latest release, requires exactly one matching SHA-256 checksum, runs the downloaded program's version check, and only then puts it in place, so a failed download never replaces a working copy. Neither needs administrator rights:moorgoes to~/.local/bin, or to/usr/local/binas root, or on Windows to%LocalAppData%\Programs\Moorage, which is added to the userPATH. Running one again upgradesmoorwithout disturbing a running server or its apps, including on Windows, where the running file is moved aside;MOOR_VERSIONinstalls a particular release. See Installing Moorage.
Changed
moor logsreads more. With--sourceit adds an app's builds, requests and events to its instances' output. A line that is a JSON object prints as its message and fields;--jsonstill has the line as written.- A rollback, a change of variables and an upload ready to run now write a log, like any other deployment.
- Scaling comes earlier than planned. The roadmap had it in 0.5.0; the console needed it.
Moorage 0.2.0
Moorage 0.2.0 is for teams. git push deploys an app, over SSH or HTTPS, with no git or sshd needed on the server, and shows the build in your terminal. Accounts, sign-in from any machine and scoped API tokens say who did what. Apps with a Containerfile, or an image from a registry, run in containers under Podman or Docker, released and rolled back like any other app. moor trust makes browsers accept the certificates of a server's own CA, moor server doctor checks a server and says how to fix what it finds, and moor server proxy-config nginx writes the configuration for running behind nginx. The documentation has moved up to docs/, with complete examples. The web console comes in 0.3.0.
Upgrading from 0.1.0 needs no steps of its own: replace moor and restart the server, and running apps are taken over without a restart (see Upgrading). Upgrade moor on other machines too: the API's lists now come in pages, which an older moor cannot read.
Added
- Deploys by git push (wave 2, slice 2). Every app has a git repository on the server, served over SSH (port 2222,
listen.ssh) and HTTPS (/git/<app>.giton the console's hostname) by Moorage itself: nogitorsshdis needed on the server.moor keys addregisters an SSH key (Ed25519, ECDSA, or RSA of 3072 bits or more);moor git remoteadds the app's remote to a repository, andgit push moorage maindeploys, with the build streamed back asremote:lines. The production branch is the repository's default branch (main, or the first branch pushed); other branches and tags are kept, not deployed. A failed deploy fails the push and leaves the branch where it was;Ctrl-Cleaves the deploy running. The first push creates the app.[skip deploy]in a commit's message, orgit push -o skip-deploy, keeps a commit without deploying it;-o detachaccepts the push at once;-o env=productiondeploys any branch. Over HTTPS,moor git remote --httpsets upmoor git credential, which gives git the API token for the server's own git URL only. Repositories can be cloned back.moor deploymentsshows the branch and commit each push deployed, and other commands find the app from themoorageremote. See Deploying with git push. - Accounts (wave 2, slice 3). Users with email and password (Argon2id, at least 12 characters, common passwords refused) and a role: admins manage users, and until projects arrive members may do everything with apps.
moor server initprints a one-time setup link to create the first account, so that nobody can race to claim a new server.moor login URLsigns in from any machine by approving it in a browser (or--with-token), saving a context;moor logout,moor whoamiandmoor contextgo with it.moor server userscreates users, who choose a password with a one-time link, and changes roles, disables and enables them.moor tokensmakes API tokens with a scope (read,deploy,admin), an optional app and an expiry, stored only as hashes. SSH keys belong to their user. Git follows suit: pushes are recorded as their user's, tokens need the right scope, and a disabled user's keys and tokens stop working. Failed sign-ins and SSH handshakes slow down per address and account, and are logged as security events. Minimal pages on the console's hostname serve the claim, signing in, choosing a password and approving a sign-in; the session cookie is host-only, and forms and cookie-authenticated API requests need a CSRF token. See Accounts and access. - Containers (wave 2, slice 4). An app with a
ContainerfileorDockerfile, orruntime = "dockerfile", is built into an image by Podman or Docker;runtime = "image", ormoor deploy --image REF, runs one that is built already, pinned to its digest, so that restarts and rollbacks run exactly that image. Each runs like any other app: zero-downtime releases, health checks, rollbacks, logs, release commands, workers, variables and secrets. Containers publish only on the loopback interface, run withno-new-privilegesand an init process, and get the environment's data directory at/data([storage].mount).[container]sets the port, the user and the build, and[resources]memory, CPU and process limits. Moorage owns restarts: a container that exits is restarted by the process'srestartpolicy, more slowly when it keeps exiting, and a kill for running out of memory is reported where the engine says so. Containers outlive the server, which finds them again by their labels, with no output lost or recorded twice; a server manages only its own.moor registry loginkeeps a private registry's credentials encrypted on the server.[containers].engineinserver.tomlchooses the engine: Podman if it is installed, or else Docker. CI runs all of it on both. See Running apps in containers and the new Guestbook example. - TLS and operations (wave 2, slice 5).
moor trustputs a server's CA into the system's list and, on Linux, the browsers' own, and--removetakes it back. From the server's own machine it asks nothing; from elsewhere nothing vouches for the answer, so it shows the CA's fingerprint and what it may sign for, and asks, or takes--fingerprint. It refuses a server whose certificate does not come from the CA it offers.moor server statusand the server's log show the fingerprint.moor server proxy-config nginxwrites a configuration for nginx, which CI runs for real, deploying and pushing through it.moor server doctorchecks a server, running or not, and says how to fix what it finds: its listeners, DNS, certificates, the container engine, the data directory and its keys, disk space, the clock, kernel features, and apps that can be reached without the router.--public-urlchecks the whole path through a proxy: forwarded headers, an app's hostname, WebSockets, streaming and large uploads, and with--timeouts, long silences.moor server resolver installmakes*.localhostresolve for everything on macOS, with a rule in/etc/resolverand a small DNS responder in the server (listen.dns) that answers on loopback only. See TLS and trusting the server, Behind a TLS proxy and When something is wrong. - The API's contract. Every route declares the permission it requires, and a test enumerates them.
docs/openapi.json, an OpenAPI 3.1 document generated from the routes and types and checked against them, is served at/api/v1/openapi.json. Errors can say what is wrong field by field. See The API. - Examples (wave 2, slice 1).
examples/has four complete apps, each ready to deploy withmoor deployand with a README of its own: Tasks, a FastAPI app run by uvicorn with a web page, SQLite in the app's data directory and migrations as the release command; Links, a link shortener with only Go's standard library and a graceful stop; Poll, an Express API with a Vite front end built at deploy time; and Handbook, a static site with clean URLs, a 404 page, headers and redirects. CI deploys each one on Linux and macOS and checks its pages and its API. - A reference for
moorage.toml. docs/manifest.md describes every setting as this release implements it, the variables Moorage sets, how apps are detected, and which settings are accepted but have no effect yet. - The logo. Moorage's logo and icon, as SVG files in docs/assets, in the README; the pages the server shows itself (for an unknown app, an app not deployed yet, an unavailable one) carry the icon and use it as their favicon.
Changed
- The server's admin token is local once the server has accounts. It keeps working on the server's own machine, so
sudo moor …needs no sign-in, but from any other machine it stops working once the server has been claimed. A server that is not claimed behaves as in 0.1.0. - The API's lists come in pages.
GET /apps,/deploymentsand/releasesanswer with{"items": […], "next_cursor": "…"}instead of an array, and take?limitand?cursor. This is a change for API clients of 0.1.0. - The documentation's layout.
docs/is the documentation for people who run Moorage and deploy apps to it — the guide, formerlydocs/guide/, with an index; the design documents, the roadmap and the decisions moved tospec/. The README says what Moorage is and what works today, with a quick start. A test checks that every link in the README, the changelog,docs/,spec/andexamples/leads to a file and a heading that exist. moor manifest validateno longer says that[vars]arrives in the next release; declared variabl...