~/digithings/security
Controls, and their edges.
Every control here was checked against the code. The last section lists what is not covered yet.
Identity
digikey issues and verifies every credential.
- Signed tokensAccess tokens are RS256 JWTs. Services verify them with a public key, so no service can mint one.
- Scoped API keysKeys are hashed at rest and carry an explicit scope list, so a key can only do what it was issued for.
- Fails closedEvery protected route checks its scope. If auth is not configured, the route refuses traffic instead of serving it.
- RevocationWith Redis configured, a revoked key is blocked on its next request. Without it, issued tokens stay valid until they expire.
Traceability
On your own infrastructure, you can answer what happened.
- A request id on every hopEach request carries one id across every service call and into every log line.
- An audit trail on your hostWorkflow events go to a local log, with fields named like secrets redacted.
- No open doorsCross-origin access is an explicit allowlist, and every service call between modules has a timeout.
The pipeline
Checks that fail the build, not file a note.
- Secret scanningEvery code pull request is scanned for leaked secrets, and the full history on every push to the release branches. A finding fails the build.
- Dependency auditsThe Python services' locked dependencies are audited weekly and on every manifest change; high and critical vulnerabilities block the merge. The JavaScript workspaces have a matching lane.
- Private by defaultEvery service binds to localhost, and debug endpoints stay off unless someone turns them on.
How change ships
- TestedEach module's test suite runs on every pull request that touches it.
- ReviewedEvery change that reaches production was reviewed at its own pull request, and a required check refuses anything that was not.
- BuiltCode is linted, the shared libraries are type-checked, and every site builds in CI.
The tests, workflows and reviews are all in the public repository.
Limits
The gaps worth weighing before you deploy.
- Private networks onlyThe stack is designed for one host or a private network. Reach it over a VPN or a hardened gateway, not a public port.
- Tenants are separated by key scopeStorage-level isolation between tenants is not built yet.
- Retrieved content is not screenedDocuments pulled back by retrieval are not yet checked for prompt injection.
- The audit log is local and unsignedIt records what happened, but cannot prove the record was never edited.
- Live trading is stubbedBroker adapters refuse to connect, and changes to live-trading code need a human sign-off — a process gate, not a runtime interlock.
Disclosure
Please do not open a public issue.
Email the address in SECURITY.md with [digithings Security] in the subject. We acknowledge within 72 hours and agree a disclosure timeline within seven days.