How veergandhii/devsecops-skeleton works
This repository is a small two-service DevSecOps skeleton built around an asynchronous event flow.
1. Top-level shape
- The repo contains two independent Python services: webhook-receiver and scan-orchestrator.
- docker-compose.yml ties them together for local deployment, while each service also has its own Dockerfile and requirements.txt.
2. Primary architectural split
- webhook-receiver is the ingress boundary: it accepts incoming webhook calls from an external system.
- scan-orchestrator is the downstream processing boundary: it consumes events and performs orchestration work, likely scan scheduling/coordination.
3. Event-driven handoff
- The presence of publisher.py in webhook-receiver and consumer.py in scan-orchestrator indicates an asynchronous message-based integration between the two services.
- The webhook service does not appear to directly perform scan work; it transforms inbound webhook data into a published event for later processing.
4. Webhook receiver responsibilities
- Main application entrypoint: webhook-receiver/app/main.py.
- Route layer: app/routes/webhook.py handles the webhook endpoint, and app/routes/health.py provides a readiness/liveness check.
- app/config.py centralizes runtime configuration, likely including broker connection details and webhook-related settings.
5. Scan orchestrator responsibilities
- Main application entrypoint: scan-orchestrator/app/main.py.
- app/consumer.py is the core integration point for consuming queued messages/events.
- app/routes/health.py exposes health status, suggesting this service is meant to run continuously as a background worker with a minimal HTTP surface.
6. Likely runtime model
- Both services are containerized Python applications.
- The HTTP layer is used only where needed: the receiver for inbound webhooks and both services for health checks.
- The orchestrator likely spends most of its time in a consumer loop rather than serving request traffic.
7. Configuration boundaries
- Each service has its own config.py and .env-style configuration.
- This separation suggests independent deployability and isolated operational settings, even though the services collaborate through the messaging layer.
8. Operational and deployment shape
- Docker Compose is the main local integration mechanism.
- The repo does not show a shared library or monorepo framework; the services are intentionally loosely coupled and deployed as separate containers.
9. External dependency boundary
- The critical external dependency is the message broker or queue system implied by publisher/consumer roles.
- The webhook receiver likely depends on an upstream SaaS or source system that emits webhooks, while the orchestrator depends on the broker to receive those events reliably.
10. What is not in this repo
- There is no evidence of a UI, database layer, or monolithic backend here.
- The repository appears focused on the integration spine: ingest webhook, publish event, consume event, and report health.
11. How to draw the architecture
- Draw external webhook source feeding webhook-receiver.
- Draw webhook-receiver publishing into a message broker/queue.
- Draw scan-orchestrator consuming from that broker.
- Show both services exposing health endpoints and each containerized separately.
12. Overall intent
- The project is a skeleton for an event-driven DevSecOps pipeline, where webhook events become orchestration inputs for downstream scanning or automation workflows.
Main entry points: app/main.py App Entry · app/main.py App Entry · webhook.py Webhook API · docker-compose.yml Compose
Components 14
External
Upstream webhook source and shared messaging dependency
- Webhook Source · Upstream SaaS or event source that sends incoming webhooks
- Message Broker · Asynchronous transport between receiver and orchestrator
- Compose · Local multi-container wiring for both services
docker-compose.yml
Webhook Receiver
Ingress service that accepts webhooks and publishes events
- App Entry · Main application startup for the receiver
webhook-receiver/app/main.py - Webhook API · Webhook endpoint that accepts inbound events
webhook-receiver/app/routes/webhook.py - Health API · Receiver health and readiness check
webhook-receiver/app/routes/health.py - Config · Receiver settings and broker-related configuration
webhook-receiver/app/config.py - Publisher · Transforms inbound webhook data into broker messages
webhook-receiver/app/publisher.py - Container · Container image for the webhook receiver
webhook-receiver/Dockerfile
Scan Orchestrator
Downstream worker service that consumes events and coordinates scans
- App Entry · Main application startup for the orchestrator
scan-orchestrator/app/main.py - Consumer · Consumes queued events and drives orchestration work
scan-orchestrator/app/consumer.py - Health API · Orchestrator health check endpoint
scan-orchestrator/app/routes/health.py - Config · Orchestrator settings and environment configuration
scan-orchestrator/app/config.py - Container · Container image for the orchestrator
scan-orchestrator/Dockerfile
Connections 16
- Webhook Source → Webhook API: sends webhook · Incoming event delivery to the receiver boundary
- App Entry → Webhook API: mounts · Starts the HTTP service and registers routes
- App Entry → Health API: mounts · Exposes service health endpoint
- App Entry → Config: loads · Reads runtime settings at startup
- Webhook API → Publisher: publishes · Converts inbound webhook payloads into broker events
- Publisher → Message Broker: enqueue · Sends event data to the asynchronous transport
- Health API → App Entry: served by · Health endpoint is part of the receiver application
- App Entry → Consumer: starts · Boots the worker loop that consumes events
- App Entry → Health API: mounts · Exposes minimal health endpoint
- App Entry → Config: loads · Reads runtime settings at startup
- Consumer → Message Broker: consumes · Pulls queued events for orchestration
- Health API → App Entry: served by · Health endpoint is part of the orchestrator application
- Compose → Container: runs · Defines local container for receiver
- Compose → Container: runs · Defines local container for orchestrator
- Container → App Entry: packages · Builds the receiver service image around the app
- Container → App Entry: packages · Builds the orchestrator service image around the app