PROJECT / SECURE DELIVERY

Building a Secure EKS Delivery Pipeline

A security-first DevSecOps delivery pipeline: Terraform-defined AWS and EKS foundations, a hardened FastAPI workload validated locally on Kubernetes, and a staged path to secure delivery and runtime detection.

Secure EKS Delivery Pipeline architecture showing Terraform, GitHub Actions, Trivy, Amazon ECR, Amazon EKS, Falco, and future Helm and Argo CD stages.
Target AWS delivery architecture. The local Kubernetes baseline is validated first; EKS resources remain unapplied to control cloud costs.

The project, at a glance

The project starts with a cost-conscious AWS foundation provisioned with Terraform, then layers in EKS, container delivery, and runtime security.

What’s working so far

Field Notes #1 — AWS foundation and delivery design

The first update established the target architecture and Terraform foundation: remote state, private VPC networking, IAM roles, ECR, EKS control-plane and managed-node definitions, security groups, cost-control flags, and a VPC-endpoint egress design. The resources remain intentionally unapplied while the application path is tested locally, avoiding EKS control-plane costs.

Field Notes #2 — secured local Kubernetes baseline

The second update moved the lab from design into local validation. A kind cluster running Kubernetes v1.36.1 with Cilium now runs the FastAPI workload behind a ClusterIP service. Restricted Pod Security Admission rejected an unsafe test workload, while default-deny NetworkPolicies demonstrated both an unlabelled client timeout and an approved access=api-client path reaching /health/ready.

Container supply-chain hardening is also underway: the Dockerfile uses separate build and runtime stages, a digest-pinned Python base image, a non-root runtime user, and a hash-verified dependency lock. Trivy has established the initial vulnerability baseline. Next: verify and scan the final locked application image, introduce CI security checks and GitHub OIDC, then move through Helm, Falco, and Argo CD.

Read field notes update #1 →Read field notes update #2 →