Skip to content

fix: [#4840] The use of the package browserify-sign could violate Microsoft crypto policy #4875

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ceciliaavila
Copy link
Collaborator

Fixes #4840

Description

This pull request substitutes the crypto-browserify package in both tsup and webpack browser builds with the native Web Crypto API module. With these changes, the hash.js dependency causing policy violations is no longer used.

Specific Changes

  • Removed the crypto-browserify dependency from both the root package.json and the browser-echo-bot.
  • Updated tsup configuration to use window.crypto as the alias for the crypto module.
  • Updated webpack configuration to use window.crypto as the alias for the crypto module.

Testing

These images show the browser-echo-bot working after the changes and the hash.js package no longer installed.
image

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.

The use of the package browserify-sign could violate Microsoft crypto policy
1 participant