How marouanemarhrani/secureflow works
SecureFlow is a DevSecOps platform whose main path runs pull-request changes through nine required security gates, then uses Argo CD to synchronize approved state into a zero-trust Kubernetes cluster. The cluster hosts a Spring Boot notes API backed by persistent PostgreSQL, with admission policies and Prometheus/Grafana observability. The API path is supported by source excerpts; platform relationships and capabilities are documented in the README, while unsampled configuration details are represented at their existing directory or manifest paths.
Main entry points: kind-cluster.yaml Kubernetes cluster · 10-deployment.yaml API deployment · servicemonitor-notes-api.yaml Prometheus monitoring · security-pipeline.yml Nine security gates
Components 18
Secure Delivery
- Nine security gates
.github/workflows/security-pipeline.yml - Argo CD sync
k8s/gitops/notes-api-application.yaml
Cluster Workloads
- Kubernetes cluster
k8s/kind-cluster.yaml - Ingress routing
k8s/manifests/30-ingress.yaml - API deployment
k8s/manifests/10-deployment.yaml - PostgreSQL store
k8s/manifests/51-postgres-statefulset.yaml
Cluster Security
- Network policies
k8s/manifests - Admission policies
k8s/policies - Calico networking
k8s/calico-installation.yaml
Observability
- Prometheus monitoring
k8s/monitoring/servicemonitor-notes-api.yaml - Grafana dashboard
k8s/monitoring/dashboards/notes-api-observability.json - Monitoring setup
k8s/monitoring/values.yaml
Notes API
- Spring Boot entry
notes-api/src/main/java/com/secureflow/notesapi/NotesApiApplication.java - Notes controller
notes-api/src/main/java/com/secureflow/notesapi/NoteController.java - Note repository
notes-api/src/main/java/com/secureflow/notesapi/NoteRepository.java - Note entity
notes-api/src/main/java/com/secureflow/notesapi/Note.java
Other components
- Pull request
- API clients
Connections 17
- Pull request → Nine security gates: opens PR
README.md - Nine security gates → Argo CD sync: gates approval
README.md - Argo CD sync → Kubernetes cluster: syncs state
README.md - Kubernetes cluster → API deployment: runs workload
README.md - Ingress routing → API deployment: routes traffic
README.md - API clients → Ingress routing: sends requests
README.md - API deployment → Spring Boot entry: runs application
README.md - Spring Boot entry → Notes controller: serves API
- Notes controller → Note repository: calls
notes-api/src/main/java/com/secureflow/notesapi/NoteController.java - Note repository → Note entity: persists entity
notes-api/src/main/java/com/secureflow/notesapi/NoteRepository.java - API deployment → PostgreSQL store: connects to
README.md - Kubernetes cluster → Network policies: enforces rules
README.md - Kubernetes cluster → Admission policies: enforces policies
README.md - Kubernetes cluster → Calico networking: uses networking
README.md - Prometheus monitoring → API deployment: scrapes metrics
README.md - Monitoring setup → Prometheus monitoring: configures stack
README.md - Prometheus monitoring → Grafana dashboard: provides metrics
README.md