feat: security hardening suite (redaction, sanitization, yield tests, IPFS tests) - #211
Merged
Chucks1093 merged 1 commit intoAug 25, 2026
Conversation
…ellarState#148, StellarState#147, StellarState#146) - StellarState#149: Add redaction formatter for Winston logger to mask Stellar secret keys, JWT tokens, Bearer tokens, and sensitive meta values - StellarState#148: Add sanitize-input middleware to strip XSS/injection payloads from request bodies and query params - StellarState#147: Add unit tests for pro-rata yield distribution across 2/3/10 investor splits with 0%/1%/2.5% fees - StellarState#146: Add integration tests for IPFS upload retry on 429, file size validation, and error reporting
|
@robertocarlous 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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #146
closes #147
closes #148
closes #149
Changes
#149 – Sensitive data redaction filter for Winston logger
src/observability/redaction-formatter.ts– custom Winston format that automatically redacts:src/observability/logger.ts#148 – HTTP request payload sanitization middleware
src/middleware/sanitize-input.middleware.ts– Express middleware that recursively strips HTML/script tags fromreq.bodyandreq.querystring values usingsanitize-htmlsrc/app.tsafterexpress.json()#147 – Unit tests for investment pro-rata yield distribution
tests/unit/services/investment-yield.test.tswith coverage for:#146 – Integration tests for IPFS upload retry & error handling
tests/integration/ipfs-upload.test.tswith coverage for:Dependencies
sanitize-htmland@types/sanitize-htmlto package.json (needsnpm install)