Skip to content

Issue running tests on a FIPS compliant agent #571

Open
@civ555

Description

@civ555

The crypto.createHash('md5') function in index.js (vue3 and vue2 versions) causes errors where the machine is FIPS compliant.

This was encountered using vue2 with jest@29. @vue/vue2-jest": "29.2.6". A similar project with vue3 also has the issue, which makes sense because they both use the same code.

I see this error running jest tests for all my SFCs.

  ● Test suite failed to run

    error:060800C8:digital envelope routines:EVP_DigestInit_ex:disabled for FIPS

We made a modified version using sha256 instead of md5 and it appears to work modifying this file here:
index.js

Are other people having this problem?

Created this PR with a suggested fix:
#572

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions