Zero-trust architecture operates on the principle: "Never trust, always verify." Unlike traditional perimeter-based security, zero-trust assumes breach and verifies every request regardless of origin.
Advanced security skill for implementing zero-trust architecture in cloud-native environments
This skill provides comprehensive guidance for implementing zero-trust security architecture following NIST SP 800-207 guidelines. It covers mutual TLS (mTLS), service mesh security, workload identity management, network microsegmentation, and continuous verification.
skills/security/zero-trust/
├── SKILL.md # Main skill document (3 levels)
├── templates/ # Configuration templates
│ ├── mtls-config.yaml # Istio mTLS configuration
│ ├── workload-identity.yaml # SPIFFE/SPIRE setup
│ └── network-policy.yaml # Kubernetes NetworkPolicies
├── resources/ # Supporting documentation
│ ├── zero-trust-architecture.md # Architecture diagrams and explanations
│ └── nist-800-207-checklist.md # NIST compliance checklist
└── scripts/ # Automation scripts
└── setup-mtls.sh # mTLS certificate automation
Target audience: Developers, DevOps engineers, security practitioners
Target audience: Security architects, platform engineers, DevSecOps teams
Target audience: Security specialists, compliance officers, senior architects
# Set environment variables
export NAMESPACE=production
export SERVICE_MESH=istio # or linkerd
export CA_DIR=/tmp/mtls-ca
# Run setup
./scripts/setup-mtls.sh setup
# Generate service certificates
./scripts/setup-mtls.sh generate-cert frontend
./scripts/setup-mtls.sh generate-cert backend
./scripts/setup-mtls.sh generate-cert database
# Verify configuration
./scripts/setup-mtls.sh verify
# Apply mTLS configuration
kubectl apply -f templates/mtls-config.yaml
# Verify mTLS status
istioctl proxy-status
istioctl authn tls-check
# Deploy SPIRE server and agents
kubectl apply -f templates/workload-identity.yaml
# Verify SPIRE deployment
kubectl exec -n spire spire-server-0 -- \
/opt/spire/bin/spire-server healthcheck
# Deploy NetworkPolicies
kubectl apply -f templates/network-policy.yaml
# Verify policies
kubectl get networkpolicies -n production
kubectl describe networkpolicy default-deny-all -n production
templates/mtls-config.yaml)Lines: 233 | Use cases: Service mesh security, encrypted communication
templates/workload-identity.yaml)Lines: 424 | Use cases: Zero-trust identity, mTLS with automatic certificates
templates/network-policy.yaml)Lines: 483 | Use cases: Microsegmentation, east-west traffic control
resources/zero-trust-architecture.md)Comprehensive architecture guide including:
Lines: 573 | Key topics: Architecture design, component integration
resources/nist-800-207-checklist.md)Detailed compliance checklist covering:
Lines: 568 | Use case: Compliance assessment, implementation tracking
scripts/setup-mtls.sh)Automated certificate management and mTLS configuration:
Commands:
setup-mtls.sh setup # Create CA and configure service mesh
setup-mtls.sh generate-cert <name> # Generate service certificate
setup-mtls.sh rotate <name> ... # Rotate certificates
setup-mtls.sh verify # Verify mTLS status
setup-mtls.sh info <name> # Display certificate info
Features:
Lines: 387 | Languages: Bash, OpenSSL
This skill directly addresses the following NIST SP 800-53 controls:
| Control | Name | Implementation | |---------|------|----------------| | AC-4 | Information Flow Enforcement | NetworkPolicies, service mesh authorization | | SC-7 | Boundary Protection | Microsegmentation, PEP at boundaries | | SC-8 | Transmission Confidentiality and Integrity | mTLS, TLS 1.3, encrypted channels |
# Check mTLS status
istioctl proxy-status
istioctl authn tls-check <service>
# View certificate details
kubectl exec <pod> -c istio-proxy -- \
openssl s_client -showcerts -connect <service>:8080
# Check mTLS metrics
kubectl exec <pod> -c istio-proxy -- \
curl http://localhost:15000/stats/prometheus | grep ssl
# Test connectivity
kubectl run test-pod --rm -it --image=nicolaka/netshoot -- \
curl -v <service>:<port>
# Check policy application
kubectl describe networkpolicy <policy-name>
# View policy logs (Cilium)
kubectl logs -n kube-system -l k8s-app=cilium --tail=50
# Check SPIRE server health
kubectl exec -n spire spire-server-0 -- \
/opt/spire/bin/spire-server healthcheck
# List registered workloads
kubectl exec -n spire spire-server-0 -- \
/opt/spire/bin/spire-server entry show
# Check agent status
kubectl logs -n spire -l app=spire-agent --tail=50
Track these metrics to measure zero-trust effectiveness:
To improve this skill:
This skill is part of the Standards Repository and follows the repository's license terms.
npx skills add williamzujkowski/zero-trust-security下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Category:other