aws / amazon-ecs-init

ecs-init is now part of the amazon-ecs-agent repo https://github.com/aws/amazon-ecs-agent/tree/master/ecs-init
https://github.com/aws/amazon-ecs-agent
Apache License 2.0
200 stars 118 forks source link

refactor md5 to sha256 #480

Closed Realmonia closed 2 years ago

Realmonia commented 2 years ago

Summary

Change all usage of MD5 to SHA256 as MD5 now is considered a broken crypto system.

Implementation details

Replacing all MD5 related code to SHA256

Testing

New tests cover the changes: Yes

Verified by

  1. Build init rpm
  2. Install rpm on AL2 instance
  3. Clear local agent cache by deleting agent tar under /var/cache/ecs
  4. Run sudo /usr/libexec/amazon-ecs-init reload-cache

Description for the changelog

Change all usage of MD5 to SHA256.

Licensing

This contribution is under the terms of the Apache 2.0 License:

Realmonia commented 2 years ago

This is no longer required.