-
Notifications
You must be signed in to change notification settings - Fork 619
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
bind introspection to localhost #2588
Conversation
93dae6c
to
27f47eb
Compare
@yunhee-l this change breaks all my clusters as I rely on |
@yunhee-l I confirm @leshik 's request. I rely on the introspection API being available from inside the container to check the health of adjacent containers. I definitely need either a revert, or a more configurable setup. |
Same here. I use this port on load balancer health checks to know when a box is ready for ECS deploys. Access to this port is already restricted by security group rules. I second that this should be reverted. |
@yunhee-l what bug this PR fixes? |
I think this change has broken all the ECS task metadata endpoints from v1 to v4. |
I'm sorry this caused disruption. We are working on adding more flexible handling of this, during that time a workaround is to use older version of agent (v1.44.1 or older). |
@stedelahunty our testing shows that metadata endpoints were not impacted, but if it has for you, can you provide more information please? |
This change is preventing
|
we are prioritizing impact mitigation: #2605 |
@yunhee-l When we run 1.44.2 hitting the same endpoint returns Our ecs-agent is started like this: ifconfig docker:
We have had the same configuration for a few years no with no issues, this change is the first time we've seen this behaviour. As an attempt to fix the issue hitting v1, we also tried to hit the other metadata endpoints listed in here and the same exception was thrown |
@stedelahunty (and anyone else who sees this same failure) thank you for the explanation, the situation is a little more clear now. Running agent in bridge mode would result in different behavior than what we tested. Reverting this commit will fix that issue for you as well. We'll report back here when its done. (In our optimized AMIs, we've been running with |
@petderek Thank you for that information, we will look to migrate to using |
There are no plans to deprecate those endpoints. We've released an updated agent (AMIs and dockerhub) with this change reverted, so you should be good to go. Please let us know if you have any difficulties. |
Could you share your cwagent configuration? and the task definition? |
Summary
Binding introspection api to localhost
Implementation details
filter by localhost ip
Testing
New tests cover the changes:
Description for the changelog
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.