Skip to content

chore(advanced-wallets): rename enclave to secure express#77

Closed
pranavjain97 wants to merge 3 commits intomasterfrom
WP-5298-rename-enclave-to-secure
Closed

chore(advanced-wallets): rename enclave to secure express#77
pranavjain97 wants to merge 3 commits intomasterfrom
WP-5298-rename-enclave-to-secure

Conversation

@pranavjain97
Copy link
Contributor

Ticket: WP-5298

@pranavjain97 pranavjain97 requested a review from Copilot July 21, 2025 18:32
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

This PR performs a comprehensive renaming from "enclaved" to "secured express" terminology throughout the codebase. The purpose is to align naming with the actual functionality of the secure key management service. The changes maintain all existing functionality while updating terminology to better reflect the service's role as a secured express server for sensitive operations.

Key Changes:

  • Renamed "enclave" terminology to "secured express" across all files and configurations
  • Updated configuration variables from ENCLAVED_EXPRESS_* to SECURED_EXPRESS_*
  • Modified API endpoints and client names to use "secured" terminology
  • Updated documentation and error messages to reflect new naming

Reviewed Changes

Copilot reviewed 72 out of 75 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/types/request.ts Updated interface to use SecuredExpressClient instead of EnclavedExpressClient
src/shared/types/index.ts Renamed AppMode.ENCLAVED to SECURED and EnclavedConfig to SecuredExpressConfig
src/shared/responseHandler.ts Updated error handling to use securedError instead of EnclavedError
src/shared/appUtils.ts Renamed validation functions and error messages to use secured terminology
src/securedExpressApp.ts Core application file renamed with updated function signatures and logging
src/securedBitgoExpress/routers/*.ts Updated router configurations and API specifications
src/routes/*.ts Updated route setup files with new naming
src/kms/kmsClient.ts Updated client configuration to use SecuredExpressConfig
src/initConfig.ts Comprehensive config updates with new environment variable names
src/errors.ts Renamed EnclavedError to securedError
src/api/secured/* All secured API handlers updated with new type imports
src/api/master/routers/securedExpressHealth.ts Updated health check endpoints from enclavedExpress to securedExpress
src/api/master/clients/securedExpressClient.ts Renamed client class and updated all references
src/tests/* Updated all test files to use new naming and configurations
package.json Updated package name and binary name
README.md Comprehensive documentation updates with new terminology
Dockerfile Updated CMD to use new binary name

if (!config.enclavedExpressUrl) {
throw new Error('ENCLAVED_EXPRESS_URL is required for Master Express mode');
if (!config.securedExpressUrl) {
throw new Error('secured_EXPRESS_URL is required for Master Express mode');
Copy link

Copilot AI Jul 21, 2025

Choose a reason for hiding this comment

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

The error message uses 'secured_EXPRESS_URL' with an underscore, but should be 'SECURED_EXPRESS_URL' to match the actual environment variable name format used elsewhere.

Suggested change
throw new Error('secured_EXPRESS_URL is required for Master Express mode');
throw new Error('SECURED_EXPRESS_URL is required for Master Express mode');

Copilot uses AI. Check for mistakes.
if (!config.enclavedExpressCert) {
throw new Error('ENCLAVED_EXPRESS_CERT is required for Master Express mode');
if (!config.securedExpressCert) {
throw new Error('secured_EXPRESS_CERT is required for Master Express mode');
Copy link

Copilot AI Jul 21, 2025

Choose a reason for hiding this comment

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

The error message uses 'secured_EXPRESS_CERT' with an underscore, but should be 'SECURED_EXPRESS_CERT' to match the actual environment variable name format used elsewhere.

Suggested change
throw new Error('secured_EXPRESS_CERT is required for Master Express mode');
throw new Error('SECURED_EXPRESS_CERT is required for Master Express mode');

Copilot uses AI. Check for mistakes.
@pranavjain97 pranavjain97 force-pushed the WP-5298-rename-enclave-to-secure branch 4 times, most recently from 789698b to a0694ca Compare July 21, 2025 19:07
Copy link
Contributor

@mohammadalfaiyazbitgo mohammadalfaiyazbitgo left a comment

Choose a reason for hiding this comment

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

please use the breaking change commit message https://www.conventionalcommits.org/en/v1.0.0/

Copy link
Contributor

Choose a reason for hiding this comment

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

remoev

Copy link
Contributor

Choose a reason for hiding this comment

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

remove

Copy link
Contributor

Choose a reason for hiding this comment

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

remove

@pranavjain97 pranavjain97 force-pushed the WP-5298-rename-enclave-to-secure branch 7 times, most recently from 8e47335 to 6b4a1b4 Compare July 21, 2025 22:13
The word enclave isnt valid to use here since we
cannot make provider-agnostic KMS API calls from an actual enclave.
Moving to "secure" bitgo express.

Ticket: WP-5298
@pranavjain97 pranavjain97 force-pushed the WP-5298-rename-enclave-to-secure branch from 6b4a1b4 to 277d8d9 Compare July 21, 2025 22:30
@pranavjain97 pranavjain97 enabled auto-merge July 21, 2025 22:37
@pranavjain97 pranavjain97 marked this pull request as draft July 22, 2025 19:12
auto-merge was automatically disabled July 22, 2025 19:12

Pull request was converted to draft

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.

2 participants