ViewStoreAuthorizer

Who writes what in the view store, the 9.x gateway's write rules:

  • wow.lifecycle.TransferOwner is never sent over HTTP: an owner changes only by sharing or claiming, which the view decides and its saga carries out.

  • Wow's operational commands (a scheduled job's, the snapshot rebuild, an operator's action on a parked entry) need ViewStoreRoles.SYSTEM_WRITER, the platform's administrator of the stored system views, whatever scope they name.

  • The owner (shared)'s writes (a shared view's save, rename, delete and claim; shared preferences) need ViewStoreRoles.SHARED_WRITER, as the dataset wording, the whole tenant's, does. So does sharing a personal view (ShareView): sent as its user, it publishes the view to the tenant's shared list, the owner (shared) the saga moves it to, which a derived command is not checked against.

  • The owner (system)'s writes need ViewStoreRoles.SYSTEM_WRITER.

  • A user writes its own views; the kernel keeps it to them.

  • A write in a scope without an owner is refused: the kernel checks only the parts of the scope a command has, so a tenant-level or anonymous caller, or Wow-Scope naming a tenant alone, would reach every owner's views and preferences, the reserved owners' among them, without the roles above.

  • Preferences are written in the caller's own scope alone: PreferencesTarget derives their id from the caller's owner, as a transformer does not see the scope Wow-Scope targets, so a caller acting as another owner would write preferences of the wrong id. The callers of ReservedScopeCallers act as (shared) with that owner as their own, so they are not affected; a CoSec administrator writes the shared preferences once the transformers see the target scope.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val decidesOperational: Boolean

It decides Wow's operational commands: ViewStoreRoles.SYSTEM_WRITER sends them.

Functions

Link copied to clipboard
open suspend override fun authorize(caller: Caller, action: CommandAction): Authorization