Skip to content

diagram sharing phase 2: child-entity (nodes/edges) write enforcement #77

Description

@fabracht

Phase 2 of diagram sharing (design: docs/design/diagram-sharing.md). Phase 1 (#76) gates only the ownership-enabled parent entity.

Problem

Child entities (e.g. a diagram's nodes/edges) have no write protection — they are only obscured behind the parent's UUID. Any authenticated user who knows a child id (or the parent id) can read/update/delete child records regardless of the parent's ownership or _shares grants.

Scope

  • Derive access on child entities from the parent's ownership + _shares grant via the relationship/scope config (ScopeConfig).
  • Read child requires view on the parent; create/update/delete child requires edit on the parent.
  • Deleting the parent cascades to children (and their grants are already cleared with the parent in phase 1).
  • Apply on the agent CRUD path first; cluster path tracked in cluster parity for diagram sharing #75.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions