Skip to content

Feature request: file-scoped sharing — cross-account file list/stat + file-specific share grants #62

Description

@ashfulcra

Datashares grant data types, but there's no way to share a file. create_datashare takes fulcra_data_types + allowed_user_ids, while every file method — list_files, resolve_filepath, download_file, upload_file — is own-account only and takes no user id. Same on the CLI: share create requires --data-type, and no file subcommand accepts --user-id. Verified on 0.1.38.

So one account can't read another's file at all, and there's no file dimension in the share model to grant.

Request, in priority order:

  1. A file grant in the datashare model — share a path prefix (e.g. reports/) the way a data type is shared today.
  2. Cross-account list_files / resolve_filepath scoped to that grant, so a recipient can browse what they were given instead of being sent exact paths out of band.

Use case: multi-user apps that keep a creator's data separate from an end user's need file sharing that's scoped and browsable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions