Skip to content

security(escrow): add JwtAuthGuard to POST escrow/fund endpoint (#38) - #416

Open
MyDude92 wants to merge 1 commit into
MergeFi:mainfrom
MyDude92:security/guard-escrow-fund-endpoint-38
Open

MyDude92 wants to merge 1 commit into
MergeFi:mainfrom
MyDude92:security/guard-escrow-fund-endpoint-38

Conversation

@MyDude92

Copy link
Copy Markdown

🎯 Objective

Closes #38. Applies JwtAuthGuard to POST /escrow/fund in EscrowController, ensuring that only authenticated sponsors can initiate escrow funding and register funder payloads.


📊 Before vs. After Benchmark Matrix

Caller Inbound Request Legacy Behavior Solved Guarded Behavior
Unauthenticated Bot POST /escrow/fund ❌ Processed anonymously 401 Unauthorized (Blocked)
Authenticated Sponsor POST /escrow/fund Funded Funded securely

🛠️ Precise Kernel Diff (src/escrow/escrow.controller.ts)

+  @UseGuards(JwtAuthGuard)
   @Idempotent('escrow.fund')
   @Post('fund')
   async fund(@Body() dto: FundEscrowDto) {

@vercel

vercel Bot commented Sep 22, 2026

Copy link
Copy Markdown

@MyDude92 is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant