Skip to content

Conversation

@stevebio
Copy link
Collaborator

MLE-24397 - fix reported issue on Linux FIPS around exception caused by default load of FIPS-forbidden MD5 digest algorithm. Incorporate the source from the abandoned www-authenticate project and fix in place.

…n another commit..

Delete and re-add existing www-authenticate files to www-authenticate-patched. Change path for require for requester and tests. Changes to www-authenticate will be in subsequent commit, for tracking
Copilot AI review requested due to automatic review settings September 22, 2025 18:15
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fixes a FIPS compliance issue on Linux where the default loading of MD5 digest algorithm caused exceptions. The solution incorporates and patches source code from the abandoned www-authenticate project to prevent MD5 from being loaded by default.

  • Relocates www-authenticate module to a patched version that avoids MD5 loading issues
  • Updates require paths throughout the codebase to use the patched module
  • Removes documentation comments that may no longer be relevant

Reviewed Changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated 1 comment.

File Description
test-basic/digestauth-fips-nomd5load.js Updates test to use patched www-authenticate module path
lib/www-authenticate-patched/www-authenticate.js Removes JSDoc documentation and whitespace from the patched module
lib/requester.js Updates require path to use the patched www-authenticate module

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

…eption on FIPS-enabled systems when the www-authenticate module is loaded via require. The MD5 digester functions are already created on demand when using DIGEST authentication.

Use Buffer.from rather than deprecated new Buffer constructor form.
Move the Parser_Authenticate_Info prototype statement to after the definition of the function.
Add copyright to all the files.
@stevebio stevebio merged commit 6ba3f22 into marklogic:develop Sep 22, 2025
1 of 2 checks passed
@stevebio stevebio deleted the task/fipsMD5Fix2 branch October 15, 2025 14:53
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.

3 participants