# iyed523/devsecops-secure-pipeline architecture

> Architecture diagram of the GitHub repository iyed523/devsecops-secure-pipeline, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iyed523/devsecops-secure-pipeline
- Repository: https://github.com/iyed523/devsecops-secure-pipeline

## Overview

This repository is a small FastAPI Release Metadata API packaged as a DevSecOps pipeline demonstration. Its runtime workflow is an HTTP client calling GET /health and receiving a status response. The README also documents a delivery workflow with automated quality and security checks, secure containerization, image vulnerability scanning, SBOM generation, and GHCR publishing support. The application source is sampled; delivery-stage relationships below rely on README descriptions, not inspection of workflow or Dockerfile contents.

Main entry points: [`.github/workflows/ci.yml`](https://github.com/iyed523/devsecops-secure-pipeline/blob/main/.github/workflows/ci.yml) (GitHub Actions), [`src/devsecops_demo/main.py`](https://github.com/iyed523/devsecops-secure-pipeline/blob/main/src/devsecops_demo/main.py) (Health API), [`Dockerfile`](https://github.com/iyed523/devsecops-secure-pipeline/blob/main/Dockerfile) (Secure container)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["API runtime"]
  node_api["Health API<br/>[main.py]"]
  node_response["Health response<br/>[main.py]"]
end

subgraph group_delivery["Secure delivery"]
  node_actions["GitHub Actions<br/>[ci.yml]"]
  node_checks["Quality and security checks<br/>[ci.yml]"]
  node_container["Secure container"]
  node_trivy["Image vulnerability scan<br/>[ci.yml]"]
  node_sbom["CycloneDX SBOM<br/>[ci.yml]"]
  node_ghcr["GHCR publishing<br/>[ci.yml]"]
end

node_client(("HTTP client"))
node_registry[("GHCR")]

node_client -->|"requests health"| node_api
node_api -->|"returns status"| node_response
node_actions -->|"runs checks"| node_checks
node_actions -->|"builds image"| node_container
node_actions -->|"scans image"| node_trivy
node_actions -->|"generates artifact"| node_sbom
node_actions -.->|"supports publishing"| node_ghcr
node_ghcr -.->|"publishes image"| node_registry

click node_api "https://github.com/iyed523/devsecops-secure-pipeline/blob/main/src/devsecops_demo/main.py"
click node_response "https://github.com/iyed523/devsecops-secure-pipeline/blob/main/src/devsecops_demo/main.py"
click node_actions "https://github.com/iyed523/devsecops-secure-pipeline/blob/main/.github/workflows/ci.yml"
click node_checks "https://github.com/iyed523/devsecops-secure-pipeline/blob/main/.github/workflows/ci.yml"
click node_container "https://github.com/iyed523/devsecops-secure-pipeline/blob/main/Dockerfile"
click node_trivy "https://github.com/iyed523/devsecops-secure-pipeline/blob/main/.github/workflows/ci.yml"
click node_sbom "https://github.com/iyed523/devsecops-secure-pipeline/blob/main/.github/workflows/ci.yml"
click node_ghcr "https://github.com/iyed523/devsecops-secure-pipeline/blob/main/.github/workflows/ci.yml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_api,node_response,node_client toneBlue
class node_actions,node_checks,node_container,node_trivy,node_sbom,node_ghcr,node_registry toneAmber
```

## Components

### API runtime

- [Health API](https://github.com/iyed523/devsecops-secure-pipeline/blob/main/src/devsecops_demo/main.py): `src/devsecops_demo/main.py`
- [Health response](https://github.com/iyed523/devsecops-secure-pipeline/blob/main/src/devsecops_demo/main.py): `src/devsecops_demo/main.py`

### Secure delivery

- [GitHub Actions](https://github.com/iyed523/devsecops-secure-pipeline/blob/main/.github/workflows/ci.yml): `.github/workflows/ci.yml`
- [Quality and security checks](https://github.com/iyed523/devsecops-secure-pipeline/blob/main/.github/workflows/ci.yml): `.github/workflows/ci.yml`
- [Secure container](https://github.com/iyed523/devsecops-secure-pipeline/blob/main/Dockerfile): `Dockerfile`
- [Image vulnerability scan](https://github.com/iyed523/devsecops-secure-pipeline/blob/main/.github/workflows/ci.yml): `.github/workflows/ci.yml`
- [CycloneDX SBOM](https://github.com/iyed523/devsecops-secure-pipeline/blob/main/.github/workflows/ci.yml): `.github/workflows/ci.yml`
- [GHCR publishing](https://github.com/iyed523/devsecops-secure-pipeline/blob/main/.github/workflows/ci.yml): `.github/workflows/ci.yml`

### Other components

- **HTTP client**
- **GHCR**

## Connections

- HTTP client → Health API: requests health (evidence: `README.md`)
- Health API → Health response: returns status (evidence: `src/devsecops_demo/main.py`)
- GitHub Actions → Quality and security checks: runs checks (evidence: `README.md`)
- GitHub Actions → Secure container: builds image (evidence: `README.md`)
- GitHub Actions → Image vulnerability scan: scans image (evidence: `README.md`)
- GitHub Actions → CycloneDX SBOM: generates artifact (evidence: `README.md`)
- GitHub Actions → GHCR publishing: supports publishing (evidence: `README.md`)
- GHCR publishing → GHCR: publishes image (evidence: `README.md`)
