Appearance
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:
| Item | D12 default | Today | Closed / accepted by |
|---|---|---|---|
Secrets as environment variables only; no *_FILE variant | blocks 1.0 | no *_FILE handling in crates/ or services/auth | |
| Handler error text reaches logs and dead-letter records unredacted | blocks 1.0 | open | |
A Pii<T> in a job or event serialises as [redacted] instead of being refused | blocks 1.0 | open | |
| Database connections have no TLS | blocks 1.0 (optional setting) | sqlx is built without a TLS feature | |
| Audit log not tamper-evident, not partitioned | accept and document | open | |
| No idempotency keys (a 503 retry can run a command twice) | accept and document | open | |
Runtime login can call kernel.set_module_enabled outside the bus | accept (detectable) | documented in security.md | |
| Membership roles synced from tokens outside the bus | not in D12: owner decides | open | |
| Sidecar JWKS fetched over plain HTTP on the internal network | not in D12: owner decides | open | |
| Subscribers and jobs not authorised or audited per action | not in D12: owner decides | open | |
| Encrypted fields have no per-row replay protection (issue #7) | not in D12: owner decides | open | |
| A CDN in front of the proxy must append the client address itself | not in D12: document | documented | |
deploy/bootstrap.sh is not atomic | not in D12: owner decides | open | |
| No SMTP: no password reset; copied invitation links prove nothing | not in D12: document | documented | |
| Issue #10 items (module roles vs hostile in-process code, retiring a login, 90-day pruning) | not in D12: accept and document | documented | |
| Agent tokens: an agent that reads the CLI credentials file, or drives the browser, can approve its own request; revocation per person only | not in D12: owner decides | documented |
2. Authorisation and tenant isolation
- [ ] Every
policies.cedarhas allow and deny tests, and the module's matrix test callsassert_covered("<module>"). Today:assert_coveredis used in agents, attendance, core, country-ca, country-lk, hello, inbox, leave and payroll; not found inmodules/scim(its matrix lives incrates/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,
Fieldreveals,kernel.*,marketplace.*,agents.*,assistant.*or*.grant.*(ADR 0013). - [ ] Every published query (ADR 0007) permits only its named consumers with
context.via, and writes its ownreadaudit 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.cedarand its tests. The contract calls them#[pii]; in the code they areorbit_piisealedbyteacolumns andPii<T>values (no#[pii]attribute exists). Starting inventory, from the migrations and module READMEs:
| Table and columns | Readers (from the module README) | Re-encrypted on rotation |
|---|---|---|
core.employees: date_of_birth, national_id (+ blind index), personal_email, phone, address, bank_name, bank_account | the 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 redacted | yes |
core.documents: blob_sealed (file id) and the file | the employee (own), HR admins and owners | files: no (erased with their key version) |
leave.applications: reason | the 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: location | the employee and HR admins; managers redacted | yes |
payroll.settings: bank_account | owners and payroll admins | yes |
payroll.assignment_lines.amount, run_inputs (amount, note), run_employees.amounts, lines (amount, trace), runs.totals, ytd.amounts | owners and payroll duties; the employee their own locked lines and year to date; redacted over MCP | yes |
payroll.tax_inputs: opening, pack_inputs, identifier | owners and duties; identifier owners and payroll admins only; redacted over MCP | yes |
payroll.parallel_results.amount, variance_explanations.note | owners and duties | yes |
Payslip PDFs and bank and statutory files (orbit_storage blobs) | payslip: the employee and owners and duties; files: owners and payroll admins | blobs: no |
scim.users: user name, given and family name, title, work email (plain text) | the SCIM token's API client only | n/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.rsandmodules/core/tests/core.rsassert 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
nonemakes 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 checkpasses (licences, advisories, sources). Every ignored advisory indeny.tomlstill has a valid reason; thelettreones 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 --prodinweb/andservices/auth/has nothing high or critical. Today: none in either. - [ ]
node scripts/licence-audit.mjspasses. Today: fails onnodemailer(MIT-0), see release.md. - [ ] Container image scan of
orbitandorbit-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;reqwestwith rustls for the assistant).
7. Secrets and logs
- [ ] Every secret can come from a
*_FILEpath (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;
/mcprefuses requests with anOriginheader.
9. Release artefacts
- [ ]
SHA256SUMSsigned with the project key; the public key published (D14). - [ ] Images carry SBOM and provenance attestations.
- [ ]
THIRD_PARTY_NOTICES.mdattached. Today theorbitimage 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) carrylicenses/cratesandlicenses/npm(the release workflow's Archive step); open one and check. - [ ] Release signing: tags on
mainonly (the check job), the key an environment secret of thereleaseenvironment with required reviewers, tag protection onv*, every third-party action pinned to a commit. - [ ] SPDX headers:
AGPL-3.0-onlyin core files,MITinsdk/. Today no file has an SPDX header (0 of 384.rs,.tsand.tsxfiles) andweb/package.jsonhas nolicensefield.
Sign-off
| Role | Name | Date | Result |
|---|---|---|---|
| Security reviewer | |||
| Architecture owner |