Skip to content

fix: remove R2, D1-only storage, and core hardening - #2

Merged
MHDLabs merged 1 commit into
mainfrom
fix/remove-r2-core-hardening
Nov 7, 2026
Merged

MHDLabs merged 1 commit into
mainfrom
fix/remove-r2-core-hardening

Conversation

@MHDLabs

@MHDLabs MHDLabs commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Summary

Mandatory R2 removal and core hardening.

  • No R2 — D1 stores normalized text/HTML; attachment metadata only
  • Atomic inbox quota; D1 failures are not treated as duplicates
  • Cursor pagination; UUID multi-domain message listing
  • Stronger HTML allowlist sanitizer (no remote resources)
  • Webhook timeout + URL checks
  • Health probes; CI lockfiles; panel does not persist inbox tokens

Do not merge without owner approval. Do not deploy from this PR without review.

Test plan

  • vitest run — 51 tests passed locally
  • GHA on this branch
  • Operator applies 0002_d1_content migration on staging before deploy

- Drop R2 bindings, storage adapter, and object cleanup
- Persist sanitized HTML and text in D1; attachment metadata only
- Atomic message quota via conditional message_count update
- Classify D1 failures separately from duplicates
- Cursor pagination, multi-domain UUID message lookup
- Parser-based HTML allowlist sanitizer (no remote resources)
- Webhook timeout and URL safety checks
- Health probes for D1/KV; panel no longer stores inbox tokens
- Docs and CI updated for R2-free architecture
@MHDLabs
MHDLabs merged commit d0f8b1c into main Nov 7, 2026
1 check failed
@MHDLabs
MHDLabs deleted the fix/remove-r2-core-hardening branch November 7, 2026 13:42
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.

1 participant