How do you protect against SSRF reaching cloud metadata?
IntermediateProductionTLS, Certificates & Network Security
Answer
Require IMDSv2 with hop limit 1 for containers, block 169.254.169.254 from application pods using NetworkPolicy or iptables unless needed, use IRSA or Pod Identity instead of node credentials, and validate and allow-list outbound URLs in applications.
aws ec2 modify-instance-metadata-options --instance-id i-0abc --http-tokens required --http-endpoint enabled
More on TLS, Certificates & Network Security
How do you manage certificates at scale without outages?IntermediateHow does cert-manager work in Kubernetes?IntermediateWhat is the best way to terminate TLS in AWS?IntermediateWhat is SPIFFE/SPIRE and why do platforms adopt it?IntermediateHow do you handle TLS configuration drift across many servers?IntermediateWhat are the risks of terminating TLS at the edge and sending plain HTTP internally?Advanced