Skip to content

feat: implement Testnet account bootstrap endpoint using Friendbot s…#1002

Open
nikkybel wants to merge 2 commits into
Pulsefy:mainfrom
nikkybel:feat/safeguards
Open

feat: implement Testnet account bootstrap endpoint using Friendbot s…#1002
nikkybel wants to merge 2 commits into
Pulsefy:mainfrom
nikkybel:feat/safeguards

Conversation

@nikkybel

Copy link
Copy Markdown

PR description
The bootstrapAccount endpoint (POST /stellar/bootstrap) now fully satisfies the acceptance criteria:

@UseGuards(JwtAuthGuard) + @ApiBearerAuth — requires a valid JWT, blocking unauthenticated abuse
this.config.network !== 'testnet' check — throws 403 ForbiddenException if the running network is mainnet, making the guard environment-aware
isEnabled() check returns 403 ForbiddenException (was incorrectly 401 UnauthorizedException before)
@Throttle(getFriendbotBootstrapThrottleOverride()) — already wired to the friendbotBootstrap rate limit profile (5/hr dev, 3/hr staging, 2/hr prod)
@matches(/^G[A-Z2-7]{55}$/) on the DTO — validates the Stellar public key format at the request validation layer before it even hits the service
.env.example comment updated to make the testnet-only constraint and the "never enable in production" intent explicit
close #843

@drips-wave

drips-wave Bot commented Jun 30, 2026

Copy link
Copy Markdown

@nikkybel Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Cedarich

Copy link
Copy Markdown
Contributor

@nikkybel fix workflow

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.

Backend: Testnet account bootstrap endpoint using Friendbot safeguards

2 participants