Permission

sealed interface Permission

A permission that can be granted to a pipeline, controlling access to certain resources or operations. Permissions are checked at various points during compilation to ensure that a document does not perform unauthorized actions (e.g. reading files outside the project directory or accessing the network).

See also

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data object GlobalRead : Permission

Allows reading files from the entire file system, including outside the project directory.

Link copied to clipboard

Allows using native content features (e.g. embedding raw HTML).

Link copied to clipboard

Allows accessing remote resources over the network (e.g. fetching remote media).

Link copied to clipboard
data object ProjectRead : Permission

Allows reading files within the project directory.

Properties

Link copied to clipboard
abstract val name: String

The kebab-case identifier for this permission, used in CLI options and error messages.