Interview Prep/Networking/TLS, Certificates & Network Security

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
All Networking questions Roadmap: Networking for DevOps

More on TLS, Certificates & Network Security