Skip to content

feat(ebe): hide recovery api under non recovery mode#91

Merged
pranavjain97 merged 2 commits intomasterfrom
WP-5319/hide-recovery-api-ebe-v2
Jul 25, 2025
Merged

feat(ebe): hide recovery api under non recovery mode#91
pranavjain97 merged 2 commits intomasterfrom
WP-5319/hide-recovery-api-ebe-v2

Conversation

@cpatino-intive
Copy link
Copy Markdown
Contributor

TASKS: WP-5319

Copy link
Copy Markdown

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

This PR adds a safety mechanism to ensure recovery-related API endpoints are only accessible when the server is running in recovery mode. It introduces a configuration check that throws an error when recovery operations are attempted without the proper mode enabled.

  • Added checkRecoveryMode utility function to validate recovery mode configuration
  • Integrated recovery mode checks in recovery transaction handlers
  • Updated test configurations to include recovery mode flag

Reviewed Changes

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

Show a summary per file
File Description
src/api/enclaved/utils.ts Added checkRecoveryMode function to validate recovery mode configuration
src/api/enclaved/handlers/signEddsaRecoveryTransaction.ts Added recovery mode check at the start of the handler
src/api/enclaved/handlers/recoveryMultisigTransaction.ts Added recovery mode check and updated imports
src/tests/api/enclaved/signMpcRecoveryTransaction.test.ts Added recoveryMode: true to test configuration
src/tests/api/enclaved/recoveryMusigEth.test.ts Added recoveryMode: true to test configuration
src/tests/api/enclaved/recoveryMultisigTransaction.test.ts Added recoveryMode: true to test configuration

Comment thread src/api/enclaved/handlers/recoveryMultisigTransaction.ts
Base automatically changed from WP-5318/hide-recovery-apis-mbe to master July 25, 2025 16:45
@pranavjain97 pranavjain97 merged commit 2e67bdd into master Jul 25, 2025
4 checks passed
@pranavjain97 pranavjain97 deleted the WP-5319/hide-recovery-api-ebe-v2 branch July 25, 2025 16:46
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