Skip to content

fix(#523,#524,#525,#526): input validation, logging config, cache headers, MFA - #585

Merged
ritaifeoluwa merged 5 commits into
SmartDropLabs:mainfrom
franciscodes-ops:fix/issues-523-526
Oct 19, 2026
Merged

ritaifeoluwa merged 5 commits into
SmartDropLabs:mainfrom
franciscodes-ops:fix/issues-523-526

Conversation

@franciscodes-ops

Copy link
Copy Markdown
Contributor

Closes #523
Closes #524
Closes #525
Closes #526

What changed

franciscodes-ops and others added 5 commits October 18, 2026 18:54
Validates string fields in request body/query/params against per-field
maximum lengths (address: 56, memo: 28, name: 200, etc.). Rejects
oversized inputs with 400 and detailed error messages. Prevents buffer
overflow and database issues.
Added setLogLevel() and getCurrentLogLevel() functions with validation.
Log level can now be changed at runtime via API, not just at startup via
LOG_LEVEL env var. Valid levels: debug, info, warn, error.
Sets appropriate Cache-Control headers: no-store for auth/keys/webhooks,
public with max-age for prices/airdrops/metrics, private for everything
else. Includes stale-while-revalidate for cacheable paths.
RFC 6238 TOTP implementation with secret generation, code verification
(clock drift tolerance ±30s), otpauth:// URI for QR codes, and requireMfa
middleware for sensitive operations. Uses timing-safe comparison.
@drips-wave

drips-wave Bot commented Oct 19, 2026

Copy link
Copy Markdown

@franciscodes-ops 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

@ritaifeoluwa
ritaifeoluwa merged commit 81720b6 into SmartDropLabs:main Oct 19, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants