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

EC2 task networking on Windows: Implementation change for blocking IMDS #2910

Merged

Conversation

rawahars
Copy link
Contributor

Summary

Earlier, we were creating Windows Firewall rules for blocking the IMDS access to the tasks. With this change, instead of creating a firewall rule, we will create a blackhole route in the task namespace for IMDS.

Implementation details

The original methods of creating and deleting firewall rules have been removed.
In place of those, a new command is created to be run inside the task namespace which loops back the request sent to IMDS endpoint.

Testing

The changes were tested using unit tests as well as a custom binary was tested.
New tests cover the changes:
Yes

Description for the changelog

Changed implementation method for blocking IMDS access to the tasks.

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Harsh Rawat added 2 commits June 17, 2021 21:16
Instead of creating Windows Firewall rules, create a loopback route for IMDS inside the task namespace.
@rawahars rawahars requested review from a team June 20, 2021 23:57
@fenxiong fenxiong merged commit 4c22a2b into aws:feature/awsvpc-windows Jun 22, 2021
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

Successfully merging this pull request may close these issues.

6 participants