How cigeke/somara-devsecops-platform works
SOMARA is a small FastAPI service presented as part of a broader DevSecOps platform. The documented workflow runs tests and security checks, builds and scans a container, publishes and deploys it, then checks service health and monitors production. The repository excerpt confirms the API’s health and root endpoints, security-header middleware, and Prometheus instrumentation. CI, deployment, rollback, DAST, and alerting are documented capabilities, but their implementation is not shown in the sampled source.
Main entry points: devsecops.yml CI/CD workflow · main.py FastAPI service · test_main.py Automated tests · Dockerfile Container build
Components 18
CI and Security
- CI/CD workflow
.github/workflows/devsecops.yml - Source security scans
.github/workflows/devsecops.yml - Automated tests
app/backend/test_main.py - Container build
app/backend/Dockerfile - Container scan
.github/workflows/devsecops.yml - GHCR registry
Application Runtime
- FastAPI service
app/backend/main.py - Security headers
app/backend/main.py - Metrics instrumentation
app/backend/main.py - Health check
app/backend/main.py
Production Operations
- Daruur hosting
- Deployment health check
- Automatic rollback
- Dynamic security test
- Production monitoring
- Email alerting
Other components
- Developer
- GitHub repository
Connections 17
- Developer → GitHub repository: pushes code
README.md - GitHub repository → CI/CD workflow: triggers
README.md - CI/CD workflow → Source security scans: runs scans
README.md - CI/CD workflow → Automated tests: runs tests
README.md - CI/CD workflow → Container build: builds image
README.md - CI/CD workflow → Container scan: scans image
README.md - CI/CD workflow → GHCR registry: publishes image
README.md - GHCR registry → Daruur hosting: supplies image
README.md - Daruur hosting → FastAPI service: runs service
README.md - FastAPI service → Security headers: registers
app/backend/main.py - FastAPI service → Metrics instrumentation: instruments
app/backend/main.py - CI/CD workflow → Deployment health check: checks deployment
README.md - Deployment health check → Health check: probes endpoint
README.md - Deployment health check → Automatic rollback: triggers if unhealthy
README.md - Daruur hosting → Dynamic security test: is tested by
README.md - FastAPI service → Production monitoring: exports metrics
README.md - Production monitoring → Email alerting: sends alerts
README.md