synos-raas-api — RaaS API surface
tags: [general]
synos-raas-api — RaaS API surface
Section titled “synos-raas-api — RaaS API surface”Classification: PUBLIC
Crate: fruit/crates/synos-raas-api/
Milestone: v57+
License: Apache-2.0
Version: v111.0.0 “Last Light”
What It Is
Section titled “What It Is”synos-raas-api is the REST API surface for Recommendations as a Service (RaaS), delivering continuous security intelligence to MSSP clients. Built on Axum with Tower middleware, it provides JWT-authenticated tenant isolation, compliance assessment triggers, prioritized recommendation feeds, report generation, and v57 Phoenix Eye LLM red-team-as-a-service scan queuing. The API integrates with synos-tenant for RBAC, synos-audit-trail for compliance logging, synos-cmmc-gap for assessment, synos-report for output, and synos-raas-engine for recommendation logic.
Architecture
Section titled “Architecture”Modules
Section titled “Modules”| Module | Purpose |
|---|---|
auth | JWT authentication middleware and tenant identity extraction |
handlers | Axum request handlers for all API endpoints |
llm_rt | v57 Phoenix Eye LLM red-team-as-a-service scan queuing and findings retrieval |
recommendations | Prioritized security recommendation engine integration |
router | Axum build_router() assembly with Tower middleware stack |
state | RaasState shared application state holding tenant, audit, and assessment services |
How It’s Wired
Section titled “How It’s Wired”- synos-tenant —
authmiddleware extracts tenant identity from JWT claims and injects it intoRaasState, ensuring all downstream handlers are tenant-scoped. - synos-audit-trail — Every API mutation is logged to the audit trail for compliance reporting and forensic replay.
- synos-cmmc-gap —
handlerstriggerCmmcGapEngineassessments viaPOST /api/v1/tenants/:id/scan, returning control gap analysis. - synos-report — Report generation endpoints consume
synos-reportbuilder to produce PDF/Markdown compliance reports downloadable viaGET /api/v1/tenants/:id/reports/:rid. - synos-llm-rt + synos-raas-engine —
llm_rtmodule queues LLM hardening scans viaPOST /api/v1/llm-rt/scanand retrieves findings viaGET /api/v1/llm-rt/findings/{run_id}, powered bysynos-raas-engine. - Tower middleware —
tower-httpprovides CORS, compression, and request tracing;towerprovides timeout and retry layers.
Future Ideas
Section titled “Future Ideas”- Add
synos-raas-api-graphqlfor flexible client-side query shaping over the recommendation engine. - Implement webhook delivery for scan completion events so MSSP clients can poll less.
- Wire
synos-raas-apiintosynos-findings-storeso that assessment findings from the API are content-addressed and deduplicated across tools.