Saltar al contenido
Volver al Catálogo IDP
Plataforma interna de desarrollo

KubeLab IDP · Flujos Operativos y Arquitectura de Petición

Visualización del ciclo de vida de peticiones en defensa en profundidad: desde el edge Anycast y WAF de Cloudflare, pasando por el ingress Traefik y autenticación forward con Authelia, hasta las cargas de trabajo en contenedores y la telemetría en Loki.

[ 01 / Ruta de Petición y Defensa en Profundidad ]

Enrutamiento perimetral en doble capa, autenticación forward zero-trust y registro estructurado.

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
Cada petición HTTP entrante termina TLS en el borde perimetral de Cloudflare antes de alcanzar el host de producción en Hetzner mediante un túnel de origen cifrado. Traefik valida las cabeceras de host, consulta al motor de seguridad CrowdSec para verificar inteligencia de amenazas conocidas y delega la autenticación de rutas privadas a Authelia mediante el middleware ForwardAuth. Los registros de contenedores viajan a través de Vector directamente hacia Loki sin exponer las interioridades del clúster ni los endpoints de métricas al internet público.

Generado en el build desde src/diagrams/request-path.architecture.json

[ 02 / Entrega Continua y Malla GitOps ]

Reconciliación automatizada hub-and-spoke sobre túneles privados WireGuard.

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
El código fuente y los manifiestos declarativos residen en GitHub como única fuente de verdad. La integración continua compila imágenes multi-arquitectura y publica digests inmutables en Docker Hub y GHCR. Argo CD opera como un hub de plano de control aislado en GCP, renderizando overlays de Kustomize específicos por entorno y reconciliando los clústeres spoke en cloud VPS y homelab bare-metal mediante túneles privados WireGuard en Tailscale sin exponer el puerto 6443 de la API de Kubernetes al internet público.

Generado en el build desde src/diagrams/gitops.architecture.json

[ 03 / Ciclo de Vida de Secretos Zero-Trust y Criptografía ]

Cifrado de sobre con Age, derivación en memoria y proyecciones efímeras en Kubernetes.

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
Ninguna credencial en texto claro toca jamás el control de versiones ni los discos locales. Las configuraciones sensibles se cifran en reposo mediante claves asimétricas de Age a través de Mozilla SOPS. En el despliegue, toolkit secrets procesa y descifra los sobres íntegramente en memoria volátil, aplica derivación criptográfica unidireccional (Argon2id para bases de datos de Authelia y bcrypt para el acceso de administración de Argo CD) y genera objetos K8s Secret con ámbito estricto de namespace. Los contenedores montan las credenciales exclusivamente mediante proyecciones tmpfs en memoria para garantizar cero persistencia en disco y evitar fugas involuntarias.

Generado en el build desde src/diagrams/secret-flow.architecture.json