Lab 1: Zero Trust Architecture
Implement identity-based access
Allow traffic based on service identity, not IP address. Works even if pods move between nodes.
Zero Trust
# Istio AuthorizationPolicy — identity-based, not network-based $ cat > authz-policy.yaml << 'EOF' apiVersion: security.istio.io/v1beta1 kind: AuthorizationPolicy metadata: name: backend-policy namespace: bootcamp-app spec: selector: matchLabels: app: backend action: ALLOW rules: - from: - source: principals: ["cluster.local/ns/bootcamp-app/sa/frontend"] to: - operation: methods: ["GET", "POST"] paths: ["/api/*"] EOF $ kubectl apply -f authz-policy.yaml
WHY THIS MATTERS
Zero Trust means never trust, always verify. Every request is authenticated regardless of where it originates — inside or outside the cluster.