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
fix(compiler-cli): change ngcc hash algorithm to be FIPS compliant #42582
fix(compiler-cli): change ngcc hash algorithm to be FIPS compliant #42582
Conversation
…urable! The ngcc configuration gets hashed to be used when caching but it was hardcoded to use the `md5` algorithm, which is not FIPS compliant. Now the hash algorithm can be configured in the ngcc.config.js file at the project level.
…rable The hash algorithm for the entry-point manifest was hardcoded to `md5`. This can now be configured by the `hashAlgorithm` property on the ngcc.config.js project configuration.
…liant The previous default algorithm was `md5`, which is not compliant with FIPS. The default is now set to `sha256`, which is compliant. Fixes angular#42577
Although this addresses the compatibility issue in ngcc, the CLI also uses md5 hashing and its dependencies might as well. Since we don't test FIPS compatibility I'm a bit hesitant to say we "officially" support operating within FIPS constraints.
The ability to configure should be enough to future proof ngcc. Regarding testing, perhaps we could update our CI containers to run node in FIPS compliant mode? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes #42577
NOTE: This is not a breaking change, since the hashes are only used locally and are recreated when installing a new version of ngcc.
The text was updated successfully, but these errors were encountered: