ShiftLabs
Security model
How we protect your workspace and your secrets, and what code and agents running here are allowed to do.
Accounts and access
Who can sign in, how long a session lasts, and what an API key can reach.
- Sign-in
A password or passkey sign-in always asks for an authenticator app code (TOTP), and there are no backup codes. A passkey sign-in offers only the passkeys of the address you typed, and a passkey of another account is refused. A Google or GitHub sign-in relies on that company's own checks and takes only an address it has verified, and single sign-on relies on your identity provider. Sign-up mails a link that sets the password, or a passkey instead, so only someone who reads the address's mail can finish signing it up. Google, GitHub and single sign-on sign-ins are checked against a state cookie, and Google's and GitHub's also use PKCE.
- Lost authenticator
We delete a member's authenticator and passkeys only after confirming the request through the phone number in their contract or another admin of one of their workspaces. For an admin of a Pro workspace, we can instead hold a random amount on the workspace's card and ask them to read it back. The hold is never charged. We store the amount only as a keyed HMAC, under a key kept out of the database. The reset also ends their sessions and MCP connections, and they set up a new authenticator at their next sign-in; someone with no password sets one from Forgot your password? first. Each reset is in the audit log of every workspace they belong to. See Sessions.
- Sessions
Sessions use a random token in a
__Host-cookie (HttpOnly,Secure,SameSite=Lax). The cookie also carries the token's HMAC-SHA256 signature, under a key kept out of the database, and every request is checked against it; the database holds the token itself. Sessions expire after 30 days, or after 7 days of inactivity. Members can sign out all their other sessions, and admins can sign a member out. Each is in the audit log. - Role changes
Each request reads the member's role from our database, so a role change applies from the member's next request. Removing a member ends their sessions and MCP connections in that workspace at once.
- Our changes
When we change a workspace's limits or runtime, or suspend or resume it, the audit log shows the change and who made it, as
limits_set,runtime_setorstatus_set. When we give a workspace a plan for a while, such as Pro for a pilot, it showsplan_override_setwith the plan, the date it ends and our reason, thenplan_override_expired, byexpiry, when it ends by itself, orplan_override_clearedif we end it sooner. Billing stays with your Stripe subscription. When your Stripe subscription changes your plan, the audit log shows it asplan_synced, bystripe. - Cross-site requests
Dashboard changes are accepted only from
https://app.shiftlabs.org. - API keys
256 random bits. Each key belongs to one workspace and expires after 1–365 days. We store its SHA-256 hash. The key is shown once. A key can hold fewer capabilities than its role, and can be limited to named workflows. It never reaches further than the person or key that created it.
- Roles
viewer<developer<admin. Every route checks one named capability, such asworkflow.deploy, and each role holds the capabilities at or below it. See what each role can do. - Isolation
Each API query is scoped to the workspace of the credential used. The path and body can't change it. Requests for another workspace's trigger or run return 404.
- Failed sign-ins
Failed API authentication is rate limited per IP. After 10 failures in a minute, further attempts get
429. On the sign-in pages every password, passkey and authenticator code counts, right or wrong: 10 a minute for one account from one IP, and 60 a minute from one IP. A password or passkey sign-in takes at most 5 codes, and 10 wrong codes in a row lock the account's sign-in for 15 minutes.
| Member | Role | Sign-in |
|---|---|---|
| dana@ridgeline.example | admin | MFA · TOTP |
| li@ridgeline.example | developer | MFA · TOTP |
| sam@ridgeline.example | viewer | MFA · TOTP |
Removing a member revokes their sessions.
Webhooks
A trigger URL starts a run. Deliveries must pass signature checks, rate limits and a size cap.
- Trigger URLs
Trigger ids are 128 random bits. Developers can rotate or revoke trigger URLs at any time. Viewers see them masked.
- Signatures
Each trigger can require a signature:
shiftlabs(a secret we generate),stripeorgithub. Timestamped signatures must be within 5 minutes. A replayed delivery is dropped for 7 days, whatever unsigned headers it carries. - Signing secrets
Encrypted with AES-256-GCM and bound to their trigger. A generated secret is returned once. A secret you supply is not returned.
- Rate limits
Per edge location: 100 requests per 10 seconds per trigger, and 300 per 10 seconds across a workspace's triggers. At the edge, an IP sending more than 150 requests in 10 seconds to any shiftlabs.org host is blocked for 10 seconds. See every rate limit.
- Size
A webhook body is capped at 1 MiB, and so is its payload as JSON.
- Alert webhooks
Failure alerts we post to your webhook are signed with your workspace's secret in the same
Shiftlabs-Signatureformat. The secret is shown once and can be rotated. A delivery that fails with a 5xx, a 429, a timeout or a network error is tried again 1, 5, 15 and 60 minutes later. Settings lists the last 20 attempts. See how to verify one.
Replayed deliveries are dropped. Deliveries without a valid signature are not queued.
Secrets and connections
Secrets are write-only. No endpoint returns a value. Your code can send a secret to another service only through a connection. Admins manage connections and set the exact hosts each one applies to.
- Encryption
Each workspace's values are encrypted with its own data key (AES-256-GCM, bound to the workspace, the secret's name and its version). The data key is encrypted with a platform key. When we replace that key, your data key and signing secrets are encrypted again under the new one, and the audit log shows
kek_reseal. - Stand-ins
Your code gets a stand-in instead of the value. The gateway replaces it with the value only for the secret's hosts (exact names, no wildcards or IP addresses, https only), and only if the stand-in was created in the same run. A request with a stand-in to any other host gets a
403. Text that only looks like a stand-in is not replaced. - Connections
A connection holds an auth template set by an admin. The workflow must declare the connection, and the host must exactly match one on its list. The gateway applies the template to each request to those hosts. The template overrides anything the code set. Redirects are not followed for requests that carry a secret.
- Scrubbing
If a response contains a secret, or a reversible encoding of it such as base64 or Basic auth, it is replaced with
[redacted]before your code sees it. Readable secrets are scrubbed from logs. - Readable and sign
reveal()returns only secrets markedreadable. A secret markedhmaccan only be used to sign, throughsign(). Its value is not exposed to your code. - Audit
Each use or blocked use of a secret is recorded in the audit log, and so is each read of a run's payload or a workflow's deployed source, once per person per hour. Admins can read it at
/v1/audit.
| Time (UTC) | Action | Subject | Host | Detail |
|---|---|---|---|---|
| 21:41:10.470 | inject | stripe | api.stripe.com | ["STRIPE_KEY"] |
| 21:36:02.881 | blocked | billing | api.stripe.com | connection billing is not declared for workflow refund-check |
| 21:30:15.303 | inject | stripe | api.stripe.com | ["STRIPE_KEY"] |
| 21:05:40.112 | connection put | stripe | ||
| 21:05:12.640 | secret put | STRIPE_KEY | version 2 |
Outbound requests
All outbound traffic from your code goes through our egress gateway: fetch requests, and raw TCP connections. Raw TCP goes only to host:port targets an admin declares on a TCP connection, and never to SMTP ports.
| Request | Status | Time |
|---|---|---|
| GET api. | 200 | 182 ms |
| POST hooks. | 200 | 95 ms |
| GET 203. | blockedrequests to IP addresses are not allowed; use a hostname | 2 ms |
| GET api. | blockedport 8443 is not allowed; use 80 or 443 | 2 ms |
| POST hooks. | blockedrequests to shiftlabs.org are not allowed from workflows | 2 ms |
- Refused
IP-address hosts, ports other than 80 and 443, and any
*.shiftlabs.orghost. Raw TCP to anything but a declared target, to special-use names such as.local, and to SMTP, Telnet, Windows file sharing, discovery and IRC ports. - Attributed
Every request includes
X-Shiftlabs-Tenant: t_…andX-Abuse-Contact: abuse@shiftlabs.org. The tenant value is an opaque reference that doesn't reveal your workspace id. Connection templates can't set either header. - Logged
Each request is logged with its host, method, status, connection and outcome. You can view the log on each run. TCP connections are logged with their target, port, bytes and duration, but not listed under a run.
- Capped
Outbound requests are capped per workspace and per host. See Limits.
Agents
Agents are on in a new workspace, and an admin can turn them off in Settings → Agents. An agent calls only the tools you give it, and you choose which calls wait for approval.
- Tools
A tool is a workflow in your workspace or a function in the agent's own code. A workflow tool starts a run like any other, with that workflow's connections and your workspace's limits. An API key limited to some workflows can't give an agent others.
- Approvals
Each workflow tool must say whether its calls need approval: a definition that leaves it out can't be deployed. Calls that need it wait until an admin approves or denies them, and an approved call runs with exactly the arguments shown. Nothing the model or a message says can approve a call. A request nobody answers within 72 hours counts as denied. Approval notices go to your failure alert emails and webhook. A tool set to
"never"runs as soon as the model calls it. - Secrets
Readable secret values are replaced with
[redacted]in workflow tool results and errors before they reach the model or the conversation. Other secrets never reach your code or the model. Tool results are cut at 16,000 characters. - Code tools
A function in the agent's code runs with no network, no secrets and no access to your workspace. It reads and writes only its own database, one per agent and person, erased with the workspace. Its CPU time per call is capped like a workflow's.
- Untrusted text
A tool result can carry someone else's text, such as an email or an issue, with instructions meant to steer the model. The built-in helper and the triage templates tell the model to treat such text as data, not instructions, but a model can still follow it. Keep tools that send messages, move money or delete data behind approval.
- Turns and budgets
After
maxTurnsmodel turns on one message (1–20, default 6), tool calls are blocked. A conversation stops when its model use reaches the agent's budget (up to $5, default $0.50). When the workspace's model allowance runs out, the turn stops and new messages get429. See Limits. - Access
Every member can chat with the workspace's agents. A conversation belongs to the member or API key that started it, and only they can add to it. Developers and admins can read everyone's conversations, tool results included. Reading someone else's conversation is recorded in the audit log. Admins answer approvals.
- The helper
Every workspace with agents on has a built-in helper. It reads the workspace as the person talking to it, with their access. It can't change anything or use admin-only tools.
- Isolation
Each conversation runs in its own isolated storage object, apart from every other conversation and workspace.
- Staff
The support view doesn't include conversations or approval requests. Staff see whether agents are on, how many agents and waiting approvals a workspace has, and its model use. Runs an agent starts appear like other runs, without their payload.
- Model requests
Models run on our cloud provider's AI platform. Its gateway may keep each request's details, such as the model, tokens and cost, for up to 30 days, but never the prompt or the answer. The Privacy Policy says what is kept and for how long.
| Asked | Tool | Agent | Answer | Arguments |
|---|---|---|---|---|
| 21:44 | stripe-refund | Invoice assistant | waitingruns out in 2 d 23 h | {"invoice": "in_1QxYzExample", "amount": 4900} |
| 21:20 | github-labels | Issue triage | approvedby dana@ridgeline.example | {"repo": "ridgeline/ops", "number": 214, "labels": ["bug"]} |
| 20:58 | stripe-refund | Invoice assistant | denied“Not this month.” | {"invoice": "in_1QwVbExample"} |
An approved call runs with exactly these arguments. Requests nobody answers count as denied after 72 hours.
Limits
Workspaces start on Free. Pro raises the limits below. An admin upgrades in Settings → Plan and billing. We can raise any limit further, up to platform ceilings.
- Runs
- 630 of 1,000
- Outbound requests
- 1,236 of 3,000
- Concurrent runs
- 4 of 10
- Workflows
- 4 of 10
| Limit | Free | Pro | When you reach it |
|---|---|---|---|
| Runs per 24 hours · concurrent active runs | 1,000 · 10 | 250,000 · 100 | The webhook returns 429. |
| Runs waiting per workflow, past its own concurrency limit | 1,000 | 10,000 | Starting another run of the workflow returns 429. |
| Steps · CPU time per 24 hours | 5,000 · 300 s | 1,000,000 · 50,000 s | The webhook returns 429. Runs already started continue. |
| Included each billing period: runs · outbound requests · steps · CPU time | None | 250,000 · 1,000,000 · 1,000,000 · 50,000 s | Overage is charged until it reaches your spending limit ($100 unless an admin changes it, and at most $50 until the first monthly renewal). Then new runs and agent messages get 429. |
| Workflows · active triggers · secrets · connections | 10 · 20 · 25 · 10 | 50 · 100 · 250 · 100 | Creating another returns 403. |
| Agents, not counting the built-in helper | 3 | 25 | Deploying another returns 403. |
| Agent models | Small models | Small and larger models | On Free, deploying or messaging an agent on a larger model returns 403. |
| Model allowance: tokens per 24 hours · model use per UTC month | 50,000 · $2 | 5,000,000 · $2 | The turn that used it up stops. New agent messages get 429. |
| Agent messages per 24 hours · per minute · per person per minute | 1,000 · 30 · 10 | 250,000 · 30 · 10 | The API returns 429. |
| Tool calls per model turn | 10 | 50 | Calls past it fail without running. |
| Engine dispatches per run · run lifetime | 50 · 168 h | 50 · 720 h (30 days) | The run fails. |
| Steps per run | 100 | 1,000 | The next step fails the run. |
| CPU time per run | 10 s | 60 s | The run fails at its next dispatch. |
| Workflow state: keys per workflow · value size · total | 1,000 · 64 KiB · 10 MiB | 10,000 · 256 KiB · 1 GiB | The write throws in the step. |
| CPU · subrequests per invocation | 2,000 ms · 50 | 2,000 ms · 50 | The invocation fails. |
| Outbound requests | 3,000 per 24 h · 30/min per host | 1,000,000 per 24 h · 600/min per host | The gateway returns 429. |
| Deploys · new versions per 24 hours | 20/min · 100 | 20/min · 100 | The API returns 429. |
| Member invitations per 24 hours | 20 | 200 | The API returns 429. |
| Alert emails per UTC day | 50, one per recipient of each alert | 500, one per recipient of each alert | Each recipient gets one last email. Email alerts pause until 00:00 UTC. Webhooks still post. |
| Webhook body · workflow source · API JSON bodyA run's payload is at most 1 MiB as JSON. | 1 MiB · 512 KiB · 16 KiB | 1 MiB · 512 KiB · 16 KiB | The request is rejected with 413. |
| Logs per invocation | 500 lines · 4,000 chars/line | 500 lines · 4,000 chars/line | Further lines are not stored. Longer lines are truncated. |
Abuse
Report abuse to abuse@shiftlabs.org with the X-Shiftlabs-Tenant value from the request.
- Deploy scan
Every deploy is scanned. WebAssembly and crypto-mining code are blocked. Raw TCP goes only to targets an admin declares, and never to SMTP ports. You get a warning for hard-coded credentials and for URLs with IP addresses, unusual ports or
shiftlabs.orghosts. Other patterns are flagged for review by our operators. - Hourly checks
We check usage across workspaces every hour, including traffic concentrated on one host, failing or scanned targets, blocked requests, TCP traffic volume and CPU use. New workspaces and workspaces whose current code is flagged have stricter thresholds. An operator reviews each flag.
- Suspension
When a workspace is suspended, its active runs are stopped, and webhooks, runs and API changes are rejected. You can still view and revoke triggers, API keys and members.
- Reporting
Send reports to abuse@shiftlabs.org with the
X-Shiftlabs-Tenantvalue from the request. Only we can match that value to a workspace. Report a vulnerability in ShiftLabs itself to security@shiftlabs.org, as described in Reporting a vulnerability.
Reporting a vulnerability
If you find a security problem in ShiftLabs, email security@shiftlabs.org. These are the rules for looking for one.
- What to send
The page, endpoint or feature affected, the steps to reproduce the problem, and what someone could do with it. Tell us which workspace you tested from. If you saw someone else's data, describe it; don't send it.
- Your own workspaces
Test only in workspaces you own or have permission to test. To test isolation between workspaces, use two accounts of your own.
- Other people's data
Don't access, change or delete data that isn't yours. If you reach some by accident, stop, don't keep a copy, and tell us.
- No disruption
No denial of service or load testing, no spam, and no social engineering or phishing of our staff or customers.
- Telling others
Give us reasonable time to fix the problem before you tell anyone else about it.
- Safe harbor
Research that follows these rules is authorized. We won't take legal action against you over it, and we won't treat it as a breach of the Terms of Service or the Acceptable Use Policy.
- Out of scope
Problems in services other companies run, even ones ShiftLabs uses: report those to their owners.
Platform
Where runs execute, and how this site and the API are served.
- Region
Runs execute in US regions only. Agents' model requests can be processed outside the United States.
- Transport
HTTPS only, TLS 1.2 or later, with HSTS. Plain HTTP requests get
403. The app, API and webhooks are each served only on their own hostname. - API responses
API responses are never cached and cannot be framed or content-sniffed.
- Telemetry
Run telemetry uses separate write-only and read-only credentials.
- This site
This site loads no third-party scripts, fonts or trackers, and uses a strict Content Security Policy.