SKA CI/CD Artefact Validations#

The SKA CI/CD Artefact Validations service, known by its bot identity Marvin (marvin-42-service), validates every artefact published to the SKAO Central Artefact Repository. It receives webhooks from Nexus and Harbor, checks each artefact against the SKAO naming, versioning, and metadata conventions, and acts on the result: it quarantines non-compliant Nexus artefacts, gates the promotion of Harbor images from staging to production, signs image SBOMs, and opens a GitLab merge request (as Marvin) whenever an artefact needs fixing.

It is built as a thin FastAPI webhook receiver backed by a pool of Celery workers, so slow registry calls, pending vulnerability scans, and images awaiting signatures never block the webhook.

flowchart TD NX([Nexus registry]) -->|component CREATED| N HB([Harbor registry]) -->|PUSH_ARTIFACT| H HB -->|SCANNING_COMPLETED| SB subgraph API["FastAPI receiver"] N["POST /nexus"] H["POST /harbor"] SB["POST /harbor/sbom_sign"] end subgraph Workers["Celery workers"] MT["main_task"] STK["sbom_sign_task"] CHK["Run compliance checks"] COMP{"Compliant?"} GATE{"Vulnerabilities clear and<br/>image + SBOM signed?"} NC["Quarantine (Nexus) / label (Harbor)<br/>and open MR as Marvin"] WAIT["Retry up to 1h,<br/>then the task fails"] PROMO["Promote staging to production"] SIGN["Sign SBOM once<br/>(Notation + Vault cert)"] end N --> MT H --> MT SB --> STK MT --> CHK CHK --> COMP COMP -->|no| NC COMP -->|"yes (Harbor)"| GATE GATE -->|not yet| WAIT GATE -->|yes| PROMO STK --> SIGN CHK --> DB[("MongoDB audit")] NC --> DB

Key capabilities#

  • Webhook-driven validation of Nexus (Helm, Raw, Conan, PyPI) and Harbor (OCI) artefacts against a shared, extensible set of compliance checks.

  • A Harbor staging-to-production promotion pipeline gated on compliance checks, vulnerability severity, and image and SBOM signatures.

  • SBOM signing with Notation using short-lived (24-hour) certificates issued by HashiCorp Vault, with sign-once idempotency against retries and duplicate webhooks.

  • MongoDB audit records, Prometheus metrics, GitLab merge-request notifications, and a scheduled cleanup job for orphaned signature artefacts.