Skip to content

Add Rust-backed legacy recovery flow to Locker web#10008

Draft
ua741 wants to merge 7 commits intoente-io:mainfrom
neeraj-pilot:legacy_rust
Draft

Add Rust-backed legacy recovery flow to Locker web#10008
ua741 wants to merge 7 commits intoente-io:mainfrom
neeraj-pilot:legacy_rust

Conversation

@ua741
Copy link
Copy Markdown
Member

@ua741 ua741 commented Apr 10, 2026

Summary

  • add Legacy recovery APIs, models, and password-reset flow to rust/contacts
  • expose the Legacy surface through the wasm bindings and ente-contacts-web
  • add the Locker Legacy drawer and mobile-aligned owner/trusted-contact flows
  • stop sending User-Agent from browser wasm requests to avoid the Firefox CORS failure

Validation

  • cargo check --manifest-path rust/contacts/Cargo.toml
  • cargo check --manifest-path web/packages/wasm/Cargo.toml
  • cargo check --manifest-path mobile/packages/rust/rust/Cargo.toml
  • yarn lint
  • yarn workspace locker next build

@socket-security
Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
HTTP dependency: npm @electron/rebuild depends on https://github.com/electron/node-gyp#06b29aafb7708acef8b3669835c8a7857ebc92d2

Dependency: @electron/node-gyp@https://github.com/electron/node-gyp#06b29aafb7708acef8b3669835c8a7857ebc92d2

Location: Package overview

From: ?npm/electron-builder@26.0.14npm/@electron/rebuild@3.7.2

ℹ Read more on: This package | This alert | What are http dependencies?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Publish the HTTP URL dependency to a public or private package repository and consume it from there.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@electron/rebuild@3.7.2. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: npm clip-bpe-js is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: desktop/package.jsonnpm/clip-bpe-js@0.0.6

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/clip-bpe-js@0.0.6. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

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.

1 participant