Skip to content

Conversation

@pranavjain97
Copy link
Contributor

@pranavjain97 pranavjain97 commented May 27, 2025

Ticket: WP-4583

This updates the enclaved bitgo express to include the base master bitgo express functionality as well.
Both of them have seperate configs and can be run separately, but share some common setup.

This only implements the /ping APIs.
curl -k https://localhost:3080/ping/enclavedExpress -> This calls MBE running on 3080, which pings enclaved express. Added README on how to setup/run both of them.

Note: This repo will be renamed to advanced-key-management-express

@pranavjain97 pranavjain97 changed the title feat: allow running in either enclaved or master express modes feat: package master bitgo express with enclaved express May 27, 2025
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.

some typing nits which we can handle in a follow up.

console.log('Starting in Master Express mode...');
await masterExpressApp.init();
} else {
throw new Error(`Unknown app mode: ${(cfg as any).appMode}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

you don't need this if config() returns Config

*/
export function createErrorHandler(debugLogger: debug.Debugger) {
return function (
err: any,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should be unknown

});

// Set timeout
app.use(timeout(config.timeout) as any);
Copy link
Contributor

Choose a reason for hiding this comment

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

can we avoid type casting here?

@pranavjain97 pranavjain97 merged commit 0d97d24 into master May 28, 2025
3 checks passed
@pranavjain97 pranavjain97 deleted the WP-4352-setup-enclaved-bitgo-express branch May 28, 2025 16:33
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