Skip to content

fix(files): enforce record and field authorization - #136

Merged
rrrodzilla merged 3 commits into
mainfrom
fix/file-tenant-boundary
Sep 7, 2026
Merged

fix(files): enforce record and field authorization#136
rrrodzilla merged 3 commits into
mainfrom
fix/file-tenant-boundary

Conversation

@rrrodzilla

Copy link
Copy Markdown
Contributor

File operations now enforce the same record policy and field permissions used by entity access before issuing storage access or running mutation hooks. Upload and confirmation require update permission. The shared tenant middleware continues to supply the selected program context, including accounts with multiple memberships.

Eight route regressions cover tenant and owner boundaries, selected/missing/unauthorized program context, field read/write restrictions, authenticated access and administrator behavior. Package patch versions advance the acton crate to 0.36.1 and CLI to 0.37.3. A separate small commit fixes an existing loop lint exposed by Rust 1.97 without suppression.

Validation:

  • 654 acton tests passed; four existing external-MinIO tests skipped.
  • All-target acton and PostgreSQL CLI Clippy passed with zero warnings.
  • PostgreSQL release CLI built successfully with Rust 1.97.1.
  • An isolated live PostgreSQL/S3-compatible fixture verified permitted result bytes, cross-program denial for read/upload/confirmation, and selected-program isolation for a multi-membership account.

No production deployment is included in this PR.

@rrrodzilla
rrrodzilla marked this pull request as ready for review September 7, 2026 21:22
@rrrodzilla
rrrodzilla merged commit 9f850ea into main Sep 7, 2026
4 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

Development

Successfully merging this pull request may close these issues.

1 participant