Security
How Shed keeps apps apart, who can do what, and how sign-in works. For whoever reviews Shed before a team adopts it.
Shed is built for the moment someone shares an agent-built tool with the whole company, so its defaults assume the app's author is not a security engineer. This page is for whoever reviews Shed before a team adopts it.
How it fits together
Shed is one Node process and one data folder. The platform (shed.example.com) handles sign-in, the dashboard and the API. Every app is served from its own subdomain (standup.shed.example.com). All state lives in one SQLite file, shed.db, and one folder holding every deployed version of every app.
Isolation between apps
- One origin per app. Each app has its own subdomain, so the browser keeps its cookies, storage and pages apart from every other app and from the platform.
- The platform session never reaches an app. The platform's session cookie is host-only, so app code can't read it.
- Apps can't plant sessions. Apps and the platform share a parent domain, so an app's code could try to set a cookie for the whole domain ("cookie tossing") to sign visitors in as someone else. Over HTTPS every Shed cookie is named with the
__Host-prefix (__Host-shed_session,__Host-shed_app,__Host-shed_seen, and Google sign-in's__Host-shed-ba.*), which browsers only accept from the exact host, over HTTPS, with noDomain. Shed ignores cookies without the prefix. (A plain-http--devserver uses the bare names, since browsers refuse__Host-cookies without HTTPS.) - Names that pass for Shed are reserved. No new app or team can take an address like
login,docs,status,securityorsupport, so an app can't pose as part of Shed. See Deploys. - Sessions are handed over, never shared. When you open an app, the platform mints a code that is single-use, valid for 60 seconds and bound to that one app. The app's origin exchanges it for its own host-only session. Signing out of Shed ends your app sessions too.
- No cross-origin calls to the data API. It requires an
X-Shedheader, and Shed never answers CORS preflights, so pages on other origins, other Shed apps included, can't call it. - No server code to attack. Apps are static pages plus Shed's data API. Nothing a user uploads runs on the server.
Apps on a domain of their own
Subdomains of one domain count as the same site to browsers. An app at evil.shed.example.com can't read the platform's cookies, but it can set cookies for all of shed.example.com, and a bad page there can get the whole domain flagged by phishing filters. If strangers can publish on your Shed, set SHED_APPS_URL to a separate domain: apps then live at <app>.example-apps.com, a different site from the platform, and the platform's domain only ever serves Shed's own pages. Shed Cloud does this. For the strongest separation, also add the apps domain to the Public Suffix List, so browsers treat every app as a site of its own.
Access
Every app has one access rule. Your role is the highest of:
- owner, if you created the app;
- a direct grant: someone added your email as viewer, editor or owner;
- the org grant, if your email is on the company domain and the app is open to the company;
- the link grant, if the app is open to anyone with the link.
Viewers read, editors write, and owners deploy and share. The server checks the role on every call, whatever the page's code does: a viewer's write fails with a 403.
Shed asks before an owner opens an app's data to editing by anyone with the link, or adds an owner from outside the company.
Public apps don't leak who's on them. Visitors who haven't signed in never see an email from Shed: the owner is hidden and every _meta email becomes a stable pseudonym. Each visitor can hold only a few live-update connections open, so one visitor can't use up the server's. To someone who isn't signed in, an app that doesn't exist looks the same as a private one, so app names can't be probed.
No framing, no drive-by sign-outs. Other sites can't put an app in a frame to trick people into clicking its buttons (frame-ancestors 'self'), and can't sign people out of an app by linking to it. Each app's data is capped at 100 MB and Shed keeps the newest 20 deploys, so nobody can fill the disk.
Sign-in
- Email magic links that need a click. Opening a link shows a confirm button, so mail scanners that follow links can't use up the sign-in.
- Passkeys. Once signed in, you can add a passkey at
/account(Face ID, Touch ID, Windows Hello, a phone or a security key) and sign in with it, with no email. Shed keeps only the public key. Every passkey sign-in needs a fresh single-use challenge, the person's verification (biometric or PIN), Shed's own origin and hostname, and a valid signature; a device whose counter goes backwards is refused as a likely copy. Passkeys work on the platform's address only, never on app subdomains. - Terminal sign-in shows a code.
shed loginprints a code, and the approval page shows the same one, so you only approve the terminal you started. - Rate limits. Shed sends at most a few sign-in emails per address, and per visitor, in a short window. Refused attempts store nothing.
- HTTPS only. On an
httpsserver every response carriesStrict-Transport-Security, for Shed and every app subdomain. - Invite-only publishing. A server can limit who may publish apps to listed emails or domains. Anyone an app is shared with can still sign in to open it.
What Shed doesn't do
An app's code runs in the visitor's browser like any web page, so it can call other sites. Anyone who can edit an app's data can change all of it: Shed checks the role, not which records you wrote.
Treat an app like a shared doc from its author: open the ones you trust, and give edit access to people, not links.
Report abuse
Anyone can report an app that phishes, spreads malware, spams or breaks the law, signed in or not: use Report it on the app's sign-in or no-access page, go to /abuse on the Shed server (linked as Report abuse at the foot of every Shed page), or to /feedback?kind=abuse&app=<app name>. If the server sets SHED_ABUSE_EMAIL, that page also gives the address to email. Shed adds nothing to an app's own pages, so the report link lives on Shed's pages about the app. Reports reach the server's admins in the feedback inbox on /admin and through the usual alerts, and an admin can take the app down.
What Shed records about use
To run the service, Shed keeps a log of actions in its own database: sign-ups, sign-ins, deploys, shares, invites, deletions, limits reached, server errors, and the first time each day someone opens an app shared with them. Each entry has the person's account, the app's name and a few numbers (such as a deploy's size). It never includes what's inside an app or its records, and no IP addresses. Entries are deleted after about 13 months. Request logs and metrics name the kind of request, never its full address, so sign-in tokens never reach a log. Nothing is sent to analytics or tracking services. Details are in Operations.
Running your own
If you self-host, serve Shed only over HTTPS, set who may publish, never run it with --dev where others can reach it, and keep backups off the server. The self-host guide has the full checklist.