Skip to content

fix(auth): constrain LFS writes and popup identity messages - #63

Draft
tobi wants to merge 1 commit into
backlog/04-lfs-metricsfrom
backlog/05-auth-boundaries
Draft

fix(auth): constrain LFS writes and popup identity messages#63
tobi wants to merge 1 commit into
backlog/04-lfs-metricsfrom
backlog/05-auth-boundaries

Conversation

@tobi

@tobi tobi commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Require write authorization for upload batch actions and reject unknown batch operations. Send popup identity messages only to the same origin or an explicitly allowed caller origin, encode principal data safely in script context, and have the SDK verify both sender origin and popup identity.

Extracts the auth corrections from #8. Local API/LFS regressions cover read-only upload rejection, unknown operations, disallowed origins and script-closing principal text. The SDK passes lint, typecheck and production build.

Stack layer 5/8; base: backlog/04-lfs-metrics. Review the diff against this base. Combined tree at 4475bb4 passes local just ci (38 e2e tests, 19 serial simulations and standalone smoke) and the real two-instance S3 push/maintenance/clone/fsck rig. All six ignored stress/benchmark tests and all 184 full TLC checks pass locally (15 new checks across two models). The follow-up at 37bc4cc changes only two shell test assertions to Bash builtins; it passes with a minimal PATH. All eight stack heads are green in hosted CI (26 jobs). This layer’s successful run.

Review order: 01-conditional-storage02-s3-credentials03-lfs-batches04-lfs-metrics05-auth-boundaries06-dev-setup07-azure08-azure-events.

Extract the remaining authorization fixes from PR #8. Upload batches require write access; unknown operations reject. The popup targets an allowlisted opener or its own origin, safely encodes identity JSON, and the SDK checks the opened window and origin. API integration tests 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