Skip to content

Attach external PDFs to partner and account records - #143

Merged
jameskurz-filecoin merged 6 commits into
mainfrom
codex/account-documents
Oct 22, 2026
Merged

jameskurz-filecoin merged 6 commits into
mainfrom
codex/account-documents

Conversation

@jameskurz-filecoin

@jameskurz-filecoin jameskurz-filecoin commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Staff can now attach an externally signed MNDA or another PDF directly to a saved partner, organization, or account. The Documents section captures a title, document type and optional signing date, shows who uploaded it and when, and provides private view/download links. Organization and account pages share the account's attachments; standalone partner records retain their own files.

The existing PDF store enforces the 25 MB limit and verifies file hashes. Migration 001482 adds append-only attachment metadata with an explicit account or partner foreign key, content deduplication, and protection against deleting referenced bytes. Every request requires the record's staff read permission and MFA; uploads also require contract:write. Uploads and downloads are audited. Retries preserve the same attachment, and attaching an external document does not advance signing or approval workflows.

Release compatibility: route handlers use the repository’s explicit guard pattern. The release audit also required patching the existing MCP SDK to 1.32.0 and Vite to 8.2.4, removing the resolved SDK advisory waiver, and enabling the SDK’s input-element limit with an audited-refusal regression test.

CI database startup now preserves the pinned CLI’s ECR → GHCR → Docker Hub fallback instead of forcing a single mirror, and authenticates GHCR with the job’s read-only token. Repeated registry throttling had prevented integration/proof jobs from starting, including an authenticated GHCR attempt.

Approved registration seeds now keep their protection windows relative to reset time, matching the existing referral seed. Fixed October expiries had started failing existing RLS quote and registration-ownership tests. No production policy is changed.

Validation:

  • Focused component, route/access, repository, multipart-upload and database security tests.
  • Production-build browser flow: attach, reload and download on partner and organization records; reject a cross-account document URL; desktop/mobile layout and accessibility.
  • Web, database and contracts type checks; production build; schema drift; module boundaries; generated API unchanged; repository commit hooks.

@socket-security

socket-security Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedvite@​8.2.0 ⏵ 8.2.498100 +2282 +197100
Updated@​modelcontextprotocol/​sdk@​1.30.1 ⏵ 1.32.099 +1100 +3110097100

View full report

@jameskurz-filecoin
jameskurz-filecoin merged commit a27050b into main Oct 22, 2026
17 checks passed
@jameskurz-filecoin
jameskurz-filecoin deleted the codex/account-documents branch October 22, 2026 17:23
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