FIPS Compatibility Issue #10963
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
I have a requirement to build my Docusaurus website in a FIPS compliant container. Currently it is not possible as Docusaurus hardcodes the use of the md5 algorithm .
Could it be possible to use another hashing algorithm that is compliant to FIPS 140-2 (or a customisable one) like sha256?
Are you only using md5 a hashing function or does it have some cryptographic use also?
I attempted to use patch-package to modify my node_modules & replace md5 with sha256 in the hashUtils module. This wasn't successful and resulted in further issues i was unable to debug.
Reproducible demo
https://github.com/bendudz/docusaurus/tree/fips-repro/examples/classic
Steps to reproduce
The repro uses a publicly available .FIPS image. If you have access to Chainguard there are images available from them that could be substituted into the dockerfile FROM clause.
Clone the repro & navigate to the example.
cd examples/classic
Build the dockerfile
docker build -t fips-repro --no-cache=true .
Expected behavior
I would like to think Docusaurus could be built in a FIPS compliant manner with either an applicable algorthim used or a customisable option to replace md5.
Actual behavior
Attempting to build the site in the FIPS enabled container ends up with a long stacktrace.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: