Skip to content

Security review for 1.0 ​

The checklist the security reviewer runs before the 1.0 tag. Each item is closed with evidence (a test, a file, a command's output) or explicitly accepted with a reason and the owner's name. Nothing is ticked from this page alone: the reviewer checks the code.

"Today" notes record what the code on development showed when this page was written (2026-11-23, 8ca160c); they are starting points, not findings of the review.

Reviewer: ______ Date: ______ Commit: ______

1. Open items in the security model ​

Every open item in security.md is closed or accepted. Plan decision D12 (owner) sets the default:

ItemD12 defaultTodayClosed / accepted by
Secrets as environment variables only; no *_FILE variantblocks 1.0no *_FILE handling in crates/ or services/auth
Handler error text reaches logs and dead-letter records unredactedblocks 1.0open
A Pii<T> in a job or event serialises as [redacted] instead of being refusedblocks 1.0open
Database connections have no TLSblocks 1.0 (optional setting)sqlx is built without a TLS feature
Audit log not tamper-evident, not partitionedaccept and documentopen
No idempotency keys (a 503 retry can run a command twice)accept and documentopen
Runtime login can call kernel.set_module_enabled outside the busaccept (detectable)documented in security.md
Membership roles synced from tokens outside the busnot in D12: owner decidesopen
Sidecar JWKS fetched over plain HTTP on the internal networknot in D12: owner decidesopen
Subscribers and jobs not authorised or audited per actionnot in D12: owner decidesopen
Encrypted fields have no per-row replay protection (issue #7)not in D12: owner decidesopen
A CDN in front of the proxy must append the client address itselfnot in D12: documentdocumented
deploy/bootstrap.sh is not atomicnot in D12: owner decidesopen
No SMTP: no password reset; copied invitation links prove nothingnot in D12: documentdocumented
Issue #10 items (module roles vs hostile in-process code, retiring a login, 90-day pruning)not in D12: accept and documentdocumented
Agent tokens: an agent that reads the CLI credentials file, or drives the browser, can approve its own request; revocation per person onlynot in D12: owner decidesdocumented

2. Authorisation and tenant isolation ​

  • [ ] Every policies.cedar has allow and deny tests, and the module's matrix test calls assert_covered("<module>"). Today: assert_covered is used in agents, attendance, core, country-ca, country-lk, hello, inbox, leave and payroll; not found in modules/scim (its matrix lives in crates/api-scim/tests/scim.rs; confirm it covers every SCIM action).
  • [ ] Every module has a cross-tenant leakage test that reads every one of its tables from another tenant. Today: named tests exist for core, leave, payroll, country-lk, country-ca, scim (tenants_never_see_each_other) and attendance (references_stay_in_their_tenant). None found by name in agents, hello and inbox; their matrices list "another tenant" rows, which the reviewer must confirm read every table.
  • [ ] Phase 3 and Phase 4 modules (performance, learning, analytics, marketplace, assistant and the plugin host) each meet both rules above.
  • [ ] Base policies: agents and API clients never run sensitive actions unconfirmed; plugins never run sensitive actions, published queries, Field reveals, kernel.*, marketplace.*, agents.*, assistant.* or *.grant.* (ADR 0013).
  • [ ] Every published query (ADR 0007) permits only its named consumers with context.via, and writes its own read audit row.
  • [ ] Analytics: suppression vectors, including a differencing attack, pass for every source (ADR 0012).

3. Personal data ​

  • [ ] Inventory of every sealed field and who can read it, checked against each policies.cedar and its tests. The contract calls them #[pii]; in the code they are orbit_pii sealed bytea columns and Pii<T> values (no #[pii] attribute exists). Starting inventory, from the migrations and module READMEs:
Table and columnsReaders (from the module README)Re-encrypted on rotation
core.employees: date_of_birth, national_id (+ blind index), personal_email, phone, address, bank_name, bank_accountthe employee (own, while active), HR admins and owners; through core.employee.pay_details (payroll only): owners and payroll admins all three pay fields, preparers the national ID; agents on mcp always redactedyes
core.documents: blob_sealed (file id) and the filethe employee (own), HR admins and ownersfiles: no (erased with their key version)
leave.applications: reasonthe applicant and admins; approvers see it redacted. On mcp only the applicant's own agent reads it: modules/leave/policies.cedar forbids the field on that door unless the caller owns it (test leave_notes_over_mcp_are_only_the_persons_own)yes
attendance.checkins: locationthe employee and HR admins; managers redactedyes
payroll.settings: bank_accountowners and payroll adminsyes
payroll.assignment_lines.amount, run_inputs (amount, note), run_employees.amounts, lines (amount, trace), runs.totals, ytd.amountsowners and payroll duties; the employee their own locked lines and year to date; redacted over MCPyes
payroll.tax_inputs: opening, pack_inputs, identifierowners and duties; identifier owners and payroll admins only; redacted over MCPyes
payroll.parallel_results.amount, variance_explanations.noteowners and dutiesyes
Payslip PDFs and bank and statutory files (orbit_storage blobs)payslip: the employee and owners and duties; files: owners and payroll adminsblobs: no
scim.users: user name, given and family name, title, work email (plain text)the SCIM token's API client onlyn/a (not sealed)
  • [ ] Phase 3 and 4 modules add their rows (performance reviews, learning evidence, assistant conversations).
  • [ ] No sealed value appears in an event, job payload, audit row or log (grep tests; today crates/pii/tests/pii.rs and modules/core/tests/core.rs assert on logs).
  • [ ] Crypto erasure limits in security.md are still accurate.

4. Sandboxes and egress ​

  • [ ] Plugin escape and limit tests pass (plan section 4.4): memory, fuel or time, no WASI, no host function beyond the grant, another tenant, a disabled install, a revoked package.
  • [ ] Assistant egress tests pass (plan section 4.5): provider none makes no outside call (deny-all HTTP mock); sealed fields never leave; sensitive tools still go through ADR 0006.
  • [ ] Rhai rule sets: op limits and timeouts hold for every country pack.

5. Files door (ADR 0009) ​

  • [ ] Uploads only on door web, per purpose in each module's policy; quota and size limits; type sniffing; download tokens single-use, bound to the caller, two minutes.
  • [ ] Every module that takes files (core documents, payroll files, and Phase 3 and 4 purposes such as learning.evidence) is listed in the ADR and tested.

6. Dependencies and images ​

  • [ ] cargo deny check passes (licences, advisories, sources). Every ignored advisory in deny.toml still has a valid reason; the lettre ones are gone (inbox pin bumped to 0.11.24). Today: still pinned to =0.11.23, six advisories (RUSTSEC-2026-0560 to 0565) ignored.
  • [ ] pnpm audit --prod in web/ and services/auth/ has nothing high or critical. Today: none in either.
  • [ ] node scripts/licence-audit.mjs passes. Today: fails on nodemailer (MIT-0), see release.md.
  • [ ] Container image scan of orbit and orbit-auth (tool chosen by the reviewer) has nothing high or critical unaccepted.
  • [ ] New dependencies since the last review each have a licence check and a sign-off (Phase 4: extism, extism-pdk, wasmtime; reqwest with rustls for the assistant).

7. Secrets and logs ​

  • [ ] Every secret can come from a *_FILE path (D12).
  • [ ] A grep test over the logs of a full journey finds no secret, token or personal value.
  • [ ] Better Auth telemetry stays off (services/auth/src/options.ts: telemetry: { enabled: false } today).

8. Doors and HTTP ​

  • [ ] Rate limits per door are documented and tested: GraphQL and CLI (the per-caller limits in security.md), MCP (token issue and per-token approvals), the files door (ADR 0009), SCIM (ADR 0010), plugins (ADR 0013). All are per process: say so in the operator guide for multi-replica deployments.
  • [ ] Security headers on every response (security.md, "HTTP hardening"); HSTS from the reverse proxy.
  • [ ] No CORS headers; /mcp refuses requests with an Origin header.

9. Release artefacts ​

  • [ ] SHA256SUMS signed with the project key; the public key published (D14).
  • [ ] Images carry SBOM and provenance attestations.
  • [ ] THIRD_PARTY_NOTICES.md attached. Today the orbit image ships crate licence texts and the payslip font licence, but not the Inter font's OFL text or the npm packages' licence texts for the bundled web app.
  • [ ] The binary archives (orbit-*-linux-*.tar.gz) carry licenses/crates and licenses/npm (the release workflow's Archive step); open one and check.
  • [ ] Release signing: tags on main only (the check job), the key an environment secret of the release environment with required reviewers, tag protection on v*, every third-party action pinned to a commit.
  • [ ] SPDX headers: AGPL-3.0-only in core files, MIT in sdk/. Today no file has an SPDX header (0 of 384 .rs, .ts and .tsx files) and web/package.json has no license field.

Sign-off ​

RoleNameDateResult
Security reviewer
Architecture owner

Orbit by SkySync Tech. Licensed under AGPL-3.0.