You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Request]: Per-record ownership for the store extension and CRUD screen #331
enhancementNew feature or requestextensionInvolves an extension or companion package (store, ui, auth, admin)importantHigh-priority work selected for near-term focus
Every caller who can reach the store mount sees and edits the whole collection. Before the CRUD screen is shown to more than one user, add per-record ownership (records belong to the authenticated user; other users cannot read or change them), designed with the auth extension. This is security-relevant and needs a design decision before implementation.
Recommendation: treat ownership as a generic extension contract, not a store-specific auth integration. The current ExtensionRequest has no authenticated principal, and store should not read auth cookies or auth tables directly.\n\nFirst define an opaque, validated request identity/capability handoff that an operator-installed auth extension can provide and a store extension can consume only when a collection explicitly declares an ownership policy. Then make the policy scope every list, read, update and delete operation, with tests for cross-user denial and migrations of existing unowned records. Keep unowned shared collections supported for legitimate team or public data, but do not present the CRUD screen as multi-user-safe until this contract exists.
Decision: not built. Per-record ownership for the store is not planned. Every caller who can reach a store mount sees and edits the whole collection, so the CRUD screen is for one user or a trusted group, not for separate users.
No change is made to the core extension contract. The request that reaches a mounted extension carries no user identity today, so ownership would need the generic contract extended, with an opaque principal set by authorize, as the recommendation above describes. That design (and the closed design PR #340) is the starting point if this is ever reopened.
Follow-up (docs only):docs/STORE.md already says there is no per-user ownership model; state it next to the CRUD screen too, so nobody reads the screen as a multi-user surface.
Reopen if: someone needs a multi-user CRUD screen.
Reopened (owner, 2026-09-25). The reopen condition in the decision above has been met: #529 (a composed forms→store record workflow with confirmation and edit pages) needs records scoped to their owner. Without that, record routes expose any record whose id can be guessed.
The design starting point is unchanged from the recommendation above and the closed design PR #340:
Extend the generic extension contract with an opaque, validated principal that an operator-installed auth extension sets in authorize. Core stays unaware of auth.
Store consumes the principal only for collections that explicitly declare an ownership policy, and scopes every list, read, update and delete by it.
Unowned shared collections stay supported. Include a migration story for existing unowned records and tests for cross-user denial.
Once this lands, the CRUD screen can be described as multi-user-safe only for owned collections.
enhancementNew feature or requestextensionInvolves an extension or companion package (store, ui, auth, admin)importantHigh-priority work selected for near-term focus
Activity
jimhoyd commentedon Sep 20, 2026
Recommendation: treat ownership as a generic extension contract, not a store-specific auth integration. The current ExtensionRequest has no authenticated principal, and store should not read auth cookies or auth tables directly.\n\nFirst define an opaque, validated request identity/capability handoff that an operator-installed auth extension can provide and a store extension can consume only when a collection explicitly declares an ownership policy. Then make the policy scope every list, read, update and delete operation, with tests for cross-user denial and migrations of existing unowned records. Keep unowned shared collections supported for legitimate team or public data, but do not present the CRUD screen as multi-user-safe until this contract exists.
jimhoyd commentedon Sep 20, 2026
Progress: an agent has started on this; a PR will be linked here when it opens.
jimhoyd commentedon Sep 21, 2026
Decision: not built. Per-record ownership for the store is not planned. Every caller who can reach a store mount sees and edits the whole collection, so the CRUD screen is for one user or a trusted group, not for separate users.
No change is made to the core extension contract. The request that reaches a mounted extension carries no user identity today, so ownership would need the generic contract extended, with an opaque principal set by
authorize, as the recommendation above describes. That design (and the closed design PR #340) is the starting point if this is ever reopened.Follow-up (docs only):
docs/STORE.mdalready says there is no per-user ownership model; state it next to the CRUD screen too, so nobody reads the screen as a multi-user surface.Reopen if: someone needs a multi-user CRUD screen.
Note the store screen has no per-record ownership next to the screen …
jimhoyd commentedon Sep 25, 2026
Reopened (owner, 2026-09-25). The reopen condition in the decision above has been met: #529 (a composed forms→store record workflow with confirmation and edit pages) needs records scoped to their owner. Without that, record routes expose any record whose id can be guessed.
The design starting point is unchanged from the recommendation above and the closed design PR #340:
authorize. Core stays unaware of auth.Once this lands, #529 can proceed.
Generated by Claude Code
feat(store,core): per-record ownership via an opaque extension princi…