Security

What Moorage protects, what it does not, and how to report a problem.

On this page

Moorage is meant for a team that trusts one another, on a network it controls, showing work to people outside it. This page says what it protects, how, and what it does not. The design document has more depth.

Where this stands. Moorage is young, and has not had an outside security review. It has had close reviews of its own, the latest of what faces the internet and of what a low-privilege account can reach, and tests for what is described here, but no one has been paid to break it. A penetration test is on the roadmap. Until then, and whatever the public preset makes easy, keep it on a network you control, or behind something that decides who reaches it.

What it trusts, and what it does not#

WhoTrust
An administratorCompleteRuns the server, its users and settings
A maintainer or deployerHighDeploying is running code on the server. Give it as you would give someone a shell
A viewerSomeSees status and metrics, and usually logs
Someone visiting an appNoneAnyone who can reach the server
An app and its dependenciesSomeMay have bugs, or a compromised dependency

Moorage does not contain someone who sets out to attack it from inside. A hostile deployer on a server with several teams is beyond what it is for: that takes separate machines. It is not a hosting service for strangers' code.

Keeping apps apart#

What apps can do to one another depends on the system, and the level you choose:

Linux, as rootmacOSWindows
A user of its own for each appWith user or sandboxNoNo
Limited to its own filesWith sandboxNoNo
Limits on memory and CPUYesMemory, softlyYes

Without a user of its own, apps can read one another's data and variables, and the server's database and master key, since they run as the account that holds them. The console says so on each app's page, and on the System page. For a shared server, use Linux, as root, with user or sandbox.

Containers are another way to keep an app to itself: they run with no-new-privileges, with no host network, and rootless where the engine is.

In every case, apps are told to listen on loopback, with HOST=127.0.0.1, so that they are reached through the server, and moor server doctor warns of one that can be reached another way. Other programs on the same machine can still reach them.

Signing in#

API tokens start with moor_, so that scanners can find a leaked one. They are stored hashed, have scopes, and can be limited to one app and made to expire. They are never accepted in a query string. See Accounts and access.

Secrets#

The console and API#

Facing the internet#

What the server fetches#

Webhooks, mail servers, telemetry sinks and forges are named by people who may not run the server, so it refuses this machine, link-local addresses and clouds' metadata services for them, unless an administrator allows them in [notifications] allow. It checks as it connects, so that a name cannot resolve to one thing and then another, and follows no redirects. The address of an S3 service for backups and of a sign-in provider are set by administrators, and are not limited in this way.

What it builds#

Its own releases#

Each release has checksums, a list of what went into it, and an attestation of the workflow that built it, which you can check with gh attestation verify. The installer and moor server upgrade check what they download against the checksums, over HTTPS, before running anything. That catches a damaged download or a change on the way, and would not catch someone who could change the release itself: see What a release can be checked against.

It is built with no cgo, with few dependencies, and checked with govulncheck in CI.

On record#

Every change, sign-in, secret revealed and git push is in the audit log for a year, with who and how it went, and where from for all but pushes. Nothing of a secret's value goes in it.

A checklist#

Running a server has one.

Reporting a problem#

Please do not put the details of a security problem in a public issue. Open an issue that says only that you have one to report, and how to reach you, and you will get a private way to send it.

Suggest a change to this page