Skip to content
Back to IDP Catalog
Internal Developer Platform

KubeLab IDP · Operational Flows & Request Architecture

Visualizing the defense-in-depth request lifecycle: from public edge Anycast and Cloudflare WAF, through Traefik ingress and Authelia forward-authentication, to containerized workloads and Loki telemetry.

[ 01 / Request Path & Defense-in-Depth ]

Dual-layer perimeter routing, zero-trust forward authentication, and structured logging.

Defense-in-depth request routing and security perimeter An architecture diagram generated by Archify. Public Client · TLS 1.3 / HTTP/3 · Edge Ingress & WAF Perimeter · Anycast WAN Public Client TLS 1.3 / HTTP/3 Anycast WAN Cloudflare Edge · WAF, DDoS & CDN · Edge Ingress & WAF Perimeter · DNS proxy Cloudflare Edge WAF, DDoS & CDN DNS proxy Traefik Ingress · Let's Encrypt TLS · Edge Ingress & WAF Perimeter · HostSNI & Path Traefik Ingress Let's Encrypt TLS HostSNI & Path CrowdSec Engine · Bouncer & LAPI · ForwardAuth & Threat Intelligence · IP threat intel CrowdSec Engine Bouncer & LAPI IP threat intel Authelia IAM · ForwardAuth Middleware · ForwardAuth & Threat Intelligence · Duo MFA / 2FA Authelia IAM ForwardAuth Middleware Duo MFA / 2FA Redis Session Store · Encrypted session cache · ForwardAuth & Threat Intelligence · K3s pod Redis Session Store Encrypted session cache K3s pod KubeLab Services · API · Web · n8n · Internal Workloads & Telemetry Plane · Internal Pods KubeLab Services API · Web · n8n Internal Pods Vector DaemonSet · Structured log shipper · Internal Workloads & Telemetry Plane · eBPF / Syslog Vector DaemonSet Structured log shipper eBPF / Syslog Grafana & Loki · LogQL & Prometheus · Internal Workloads & Telemetry Plane · Observability Grafana & Loki LogQL & Prometheus Observability HTTPS Strict TLS Bouncer check ForwardAuth session cache passed auth container logs Loki ingest Edge Ingress & WAF Perimeter ForwardAuth & Threat Intelligence Internal Workloads & Telemetry Plane Legend Frontend Backend Database Cloud Security Message bus
Every inbound HTTP request terminates TLS at the Cloudflare edge before reaching the production Hetzner host over an encrypted origin tunnel. Traefik validates host headers, interrogates the CrowdSec security engine for known malicious threat intelligence, and delegates private route authentication to Authelia via ForwardAuth middleware. Container logs flow through Vector directly into Loki without exposing cluster internals or metrics endpoints to the public internet.

Rendered at build from src/diagrams/request-path.architecture.json

[ 02 / Continuous Delivery & GitOps Mesh ]

Hub-and-spoke automated reconciliation over private WireGuard overlay tunnels.

Zero-trust GitOps control plane and continuous delivery mesh An architecture diagram generated by Archify. Platform Engineer · Local dev workstation · Source & Engineering Plane · Git Authoring Platform Engineer Local dev workstation Git Authoring GitHub VCS · kubelab & web repos · Source & Engineering Plane · Git SSOT GitHub VCS kubelab & web repos Git SSOT GitHub Actions CI · Test & multi-arch build · Source & Engineering Plane · Reproducible build GitHub Actions CI Test & multi-arch build Reproducible build Argo CD Hub · Continuous reconciliation · Central Control Plane & Artifact Hub · GCP Spot Control Plane Argo CD Hub Continuous reconciliation GCP Spot Control Plane Tailscale Mesh · WireGuard control tunnel · Central Control Plane & Artifact Hub · Private 6443 API Tailscale Mesh WireGuard control tunnel Private 6443 API Container Registry · Docker Hub & GHCR · Central Control Plane & Artifact Hub · Immutable sha-* digests Container Registry Docker Hub & GHCR Immutable sha-* digests K3s Edge Staging · Homelab bare-metal · Distributed Spoke Kubernetes Fleet · On-demand cluster K3s Edge Staging Homelab bare-metal On-demand cluster K3s Cloud Prod · Hetzner Cloud VPS · Distributed Spoke Kubernetes Fleet · Always-on cluster K3s Cloud Prod Hetzner Cloud VPS Always-on cluster Active Workloads · Web, API, n8n, Traefik · Distributed Spoke Kubernetes Fleet · Running pods Active Workloads Web, API, n8n, Traefik Running pods git push PR merge push digest webhook sync TLS tunnel reconcile stg reconcile prod pull sha-* rollout pods Source & Engineering Plane Central Control Plane & Artifact Hub Distributed Spoke Kubernetes Fleet Legend Frontend Backend Database Cloud Security
Application source code and declarative K8s manifests live in GitHub monorepos as the single source of truth. Continuous integration builds multi-architecture container images and publishes immutable sha digests to Docker Hub and GHCR. Argo CD operates as an isolated control plane hub on GCP, rendering environment-specific Kustomize overlays and reconciling spoke clusters across cloud VPS and on-prem homelab through private Tailscale WireGuard tunnels without exposing Kubernetes API port 6443 to the public internet.

Rendered at build from src/diagrams/gitops.architecture.json

[ 03 / Zero-Trust Secret Lifecycle & Cryptography ]

Age envelope encryption, in-memory derivation, and ephemeral Kubernetes projections.

Zero-plaintext secret management and cryptographic key derivation An architecture diagram generated by Archify. Git Repository · *.enc.yaml manifests · Encrypted Storage Plane · Encrypted at Rest Git Repository *.enc.yaml manifests Encrypted at Rest Age Identity Key · Asymmetric private key · Encrypted Storage Plane · Root of Trust Age Identity Key Asymmetric private key Root of Trust Zero-Disk Memory · Ephemeral RAM pipeline · Encrypted Storage Plane · Fail-Closed Posture Zero-Disk Memory Ephemeral RAM pipeline Fail-Closed Posture Mozilla SOPS · Envelope decryption · In-Memory Transformation Engine · AES-256-GCM Mozilla SOPS Envelope decryption AES-256-GCM Toolkit Secrets · In-memory parser & stream · In-Memory Transformation Engine · Automation CLI Toolkit Secrets In-memory parser & stream Automation CLI Key Derivation · Argon2id & bcrypt hashes · In-Memory Transformation Engine · One-Way Signatures Key Derivation Argon2id & bcrypt hashes One-Way Signatures Kubernetes Secrets · Authelia · Argo · Apprise · Kubernetes Secret Injection Plane · Scoped K8s Resources Kubernetes Secrets Authelia · Argo · Apprise Scoped K8s Resources Secret Projections · Volume files & env vars · Kubernetes Secret Injection Plane · Tmpfs in Memory Secret Projections Volume files & env vars Tmpfs in Memory Protected Workloads · Authelia, Traefik, Apps · Kubernetes Secret Injection Plane · Zero Leakage Runtime Protected Workloads Authelia, Traefik, Apps Zero Leakage Runtime read *.enc.yaml Age private key decrypt in RAM derive hashes render secrets Argon2 & bcrypt mount secrets inject into pods no disk leaks Encrypted Storage Plane In-Memory Transformation Engine Kubernetes Secret Injection Plane Legend Frontend Backend Database Cloud Security Message bus
No plaintext credentials ever touch version control or developer disks. Sensitive configurations are encrypted at rest using Age asymmetric keys through Mozilla SOPS. When deployed, toolkit secrets streams and decrypts the envelopes entirely in volatile memory, executes one-way cryptographic key derivation (Argon2id for Authelia user databases and bcrypt for Argo CD administrative access), and creates namespace-scoped Kubernetes Secret resources. Workload containers mount credentials exclusively via memory-backed tmpfs projections to guarantee zero disk persistence and prevent inadvertent secret exposure.

Rendered at build from src/diagrams/secret-flow.architecture.json