graph TD
subgraph "CI/CD Pipeline (Cloud/SaaS Side)"
A[Git Repo Trigger<br/>(Push/PR)] --> B[Build & Unit Tests<br/>(GitHub Actions)]
B --> C[Vulnerability Scan<br/>(Trivy/Grype)]
C --> D[Build Container Image<br/>(Buildah/Docker Buildx)]
D --> E[Generate Artifacts:<br/>- SBOM (Syft)<br/>- SLSA Provenance<br/>- Config Compliance (OPA/Checkov)]
E --> F[Sign & Attest<br/>(Cosign + Fulcio/Rekor)<br/>SLSA Level 3+]
F --> G[Push to GHCR<br/>(OCI Layout with Attestations)]
G --> H[Generate Air-Gapped Bundle<br/>(skopeo/regctl export tarball<br/>+ manifests + attestations)]
end
subgraph "SaaS Deployment (Connected)"
G --> I[ArgoCD App of Apps<br/>(Flux alternative)<br/>Image Policy Webhook<br/>Auto-sync on tag]
I --> J[K8s Cluster (EKS/GKE/AKS)]
end
subgraph "On-Prem Deployment (Air-Gapped)"
H --> K[Manual/Scripted Transfer<br/>(USB/SCP to Bastion)]
K --> L[Import Bundle<br/>(skopeo/regctl import<br/>to Local Harbor/Dragonfly)]
L --> M[Verify Attestations<br/>(Cosign verify --certificate-identity/oidc-issuer)]
M --> N[ArgoCD (Air-Gapped Mode)<br/>Offline Image Updater<br/>Helm/Kustomize Deploy]
N --> O[On-Prem K8s (RKE/Talos)]
end
subgraph "Rollback & Observability"
P[Prometheus/Grafana<br/>+ Argo Rollouts Canary/Blue-Green]
I --> P
N --> P
Q[Rollback Trigger<br/>(Helm rollback / ArgoCD revert<br/>Previous Digest/Tag)]
end
H -->|Automated Push Script| K
style H fill:#f9f,stroke:#333,stroke-width:2px
style M fill:#ff9,stroke:#333,stroke-width:2px
style Q fill:#9ff,stroke:#333,stroke-width:2px
High-Level Architecture
This hybrid pipeline uses GitHub Actions for CI (SaaS-accessible), Cosign/Sigstore for cryptographically verifiable attestations (SLSA-compliant), ArgoCD for GitOps deployments (SaaS direct-sync, on-prem air-gapped), and skopeo/regctl for automated air-gapped artifact bundling/export.
Hybrid Support: Unified GitOps repo with environment-specific overlays (Kustomize/Helm values).
Air-Gapped Automation: CI generates self-contained OCI tarballs (images + attestations + manifests). Transfer is semi-automated (scripted SCP/USB mount), import is fully scripted.
Compliance: SLSA Level 3+, SBOM (CycloneDX), vuln attestations, policy gates (OPA). All verifiable offline via cosign.
Rollback: Immutable tags/digests + Argo Rollouts for progressive delivery with automated revert on failure.
Assumptions: Kubernetes target, OCI containers, GitHub as VCS. Adaptable to GitLab/Jenkins.