Interview Prep/GitHub Actions/Runners, Self-hosted & ARC

Runner jobs on EKS can call AWS with the node's role, which they should not.

AdvancedTroubleshootingRunners, Self-hosted & ARC
Answer

Likely causes → Pods can reach the EC2 instance metadata service (IMDS) and inherit the node IAM role.

Diagnose → In a job: curl -s -m 2 http://169.254.169.254/latest/meta-data/iam/security-credentials/.

Fix → Enforce IMDSv2 with hop limit 1 on runner nodes (launch template or Karpenter metadataOptions.httpPutResponseHopLimit: 1), or block with a NetworkPolicy; use OIDC in workflows instead.

Prevent → Include the IMDS check in your runner security tests.

All GitHub Actions questions Roadmap: GitHub Actions

More on Runners, Self-hosted & ARC