HENNGE / aiodynamo

Asynchronous, fast, pythonic DynamoDB Client
https://aiodynamo.readthedocs.io/
Other
69 stars 20 forks source link

Support IMDSv2 to retrieve metadata #159

Closed y26805 closed 9 months ago

y26805 commented 9 months ago

Fixes https://github.com/HENNGE/aiodynamo/issues/157

Tested on an IMDSv2-only instance on AWS EC2, and it works 🎉

ojii commented 9 months ago

shouldn't we support both flavors of IMDS?

y26805 commented 9 months ago

shouldn't we support both flavors of IMDS?

IMDSv2 is supposed to be more secure (so AWS will probably remove v1 support at some point). Also, it's currently not possible to only allow IMDSv1, based on AWS documentation. This means IMDSv2 is always supported. https://github.com/HENNGE/aiodynamo/issues/157#issuecomment-1742510749