Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPtables bootstrap scripts breaks new EKS Pod Identity #123

Open
pupapaik opened this issue Apr 8, 2024 · 1 comment
Open

IPtables bootstrap scripts breaks new EKS Pod Identity #123

pupapaik opened this issue Apr 8, 2024 · 1 comment

Comments

@pupapaik
Copy link

pupapaik commented Apr 8, 2024

botocore.exceptions.CredentialRetrievalError: Error when retrieving credentials from container-role: Error retrieving metadata: Received error when attempting to retrieve container metadata: Connect timeout on endpoint URL: "http://169.254.170.23/v1/credentials"

I feel there has to be some update in this script, because it is missing rule for this endpoint. I cannot get credentials when I keep default DROP rule

https://github.com/aws-samples/containers-blog-maelstrom/blob/main/cis-bottlerocket-benchmark-eks/bottlerocket-cis-bootstrap-image/bootstrap-script.sh

@pupapaik
Copy link
Author

pupapaik commented Apr 8, 2024

when I remove this

# 3.4.1.1 Ensure IPv4 default deny firewall policy (Automated)
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

it starts working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant