Skip to content

Prevent preview and main collections to be writable when parent buckets do not exist #1470

Description

@leplatrem

If preview and main buckets do not exist, they are created with {"write": [request.prefixed_userid]}.

If preview and main collections do not exist, they are created with {"read": (Everyone,)}.

Since permissions are inherited by default, this allows the author of the first request (bucket implicit creator) to write into the preview or main collections.

Possible fixes:

  • create destination/preview buckets only with plugin:remote-settings allowed to write
  • explicitly prevent user-originated record writes to preview/destination collections managed by the signer

See https://bugzilla.mozilla.org/show_bug.cgi?id=2062151

┆Issue is synchronized with this Jira Task

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions