Production security model¶
What exists today¶
- Write endpoints require a session for a GitHub account on an allow-list. Read endpoints are public.
- Sessions are HMAC-signed cookies with an expiry.
- The SPARQL endpoint accepts
SELECTandASKonly and rejects updates,SERVICE,FROMandFROM NAMED. The embedded store does not load remote graphs. - The container runs as a non-root user.
The default configuration is permissive: CORS allows every origin and the SPARQL endpoint is open. It suits a demo and nothing else.
Trust boundaries¶
- Collectors can submit operational facts and must be authenticated per tenant.
- Materialisation converts observations into canonical RDF and must enforce ontology and authority rules.
- SPARQL is a high-capability query interface and should not be directly exposed without policy and cost controls.
- Cassandra and Fuseki should be private network services.
- Browser UI is untrusted and must not hold infrastructure credentials.
Required production controls¶
None of these are implemented yet unless listed under "What exists today".
- OIDC or OAuth 2.1 at the API boundary.
- Tenant identity derived from the authenticated principal, not request JSON.
- Per-tenant named graph allow-list.
- Read-only SPARQL endpoint with parser-based query-plan inspection.
- Query timeout, row limit and maximum property-path complexity.
- Signed collector identity and replay protection.
- TLS for all service links.
- Secrets Manager or equivalent.
- Cassandra authentication, encrypted client transport and least-privilege roles.
- Fuseki authentication and network isolation.
- Audit event persistence outside the application container.
- Container image signing, SBOM generation and vulnerability scanning.
The repository demonstrates the data path. It does not claim that these controls are complete.
Reporting a vulnerability¶
Do not open a public issue. Use a private security advisory in the GitHub repository.