Skip to content

fix(#745,#746,#747,#748): memo validation, cache headers, evidence types, expiration events - #792

Merged
nonsobethel0-dev merged 5 commits into
Parashield-Protocol:mainfrom
franciscodes-ops:fix/issues-745-748
Oct 18, 2026
Merged

nonsobethel0-dev merged 5 commits into
Parashield-Protocol:mainfrom
franciscodes-ops:fix/issues-745-748

Conversation

@franciscodes-ops

Copy link
Copy Markdown
Contributor

Closes #745
Closes #746
Closes #747
Closes #748

What changed

franciscodes-ops and others added 5 commits October 18, 2026 18:42
…-byte limit

Added validateMemo() that rejects memos exceeding 28 bytes (Stellar
limit) with a clear error message. invokeContract now accepts an
optional memo parameter, validated before transaction building.
…e API responses

Added CacheControlInterceptor that sets no-store, private, max-age=0
with Pragma: no-cache and Expires: 0 headers. Applied to claims and
policy controllers to prevent intermediary caching of sensitive data.
…module

Added evidence-validation.ts with whitelist of allowed file types
(PNG, JPEG, WebP, PDF), magic byte validation to prevent disguised
executables, and 10MB size limit. Full validation function combines
type check + magic bytes + size.
…ration

ClaimsWorker now emits PolicyStatusChange(EXPIRED) via StatusEventsService
when a policy expires, so downstream systems are aware of the status
change. Previously the transition happened silently.
@drips-wave

drips-wave Bot commented Oct 18, 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

@nonsobethel0-dev
nonsobethel0-dev merged commit 0476703 into Parashield-Protocol:main Oct 18, 2026
0 of 3 checks passed
Dove1010 pushed a commit to Dove1010/parashield-backend that referenced this pull request Oct 21, 2026
Enchanterme pushed a commit to Enchanterme/parashield-backend that referenced this pull request Oct 21, 2026
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