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.
Getting started
Deploy and configure the service, manage feature toggles, add a check, investigate a stuck image, and run the tests, docs build, and cleanup script.
Tutorial
A guided, hands-on walkthrough — feed Marvin a compliant and a non-compliant artefact, then test the OCI signature flow end to end (gate, image signing, SBOM signing, and verification).
How it works
The architecture, the staging-to-production promotion pipeline and its gates, the SBOM signing flow, and the reasoning behind the signature gate.
Reference
Endpoints, feature toggles, configuration schema, environment variables, metrics, labels, checks, retry policies, and the audit record.
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.