Companion

object Companion

Properties

Link copied to clipboard

Allows every action; it decides no operational command (decidesOperational is false).

Functions

Link copied to clipboard

authorizers as one: asked in their order, the first Authorization.Denied is the answer and the rest are not asked; a command every one allows is allowed. It decidesOperational when one of them does. ALLOW_ALL for none, the authorizer itself for one.

Link copied to clipboard

An authorizer that decides Wow's operational commands by decide and has no objection to any other action: CommandAuthorizer.operational { caller, action -> if (caller.hasRole("operator")) Allowed else Denied.of("Only an operator sends ${action.type.name}.") }. A node with one allows an operational command when decide does and its other authorizers do not object. A service identity (Caller.service) is not asked about: a call between services is trusted, as CoSec's authorizer trusts it, and the internal port serves a system command only to a service whose wow.callers entries name it.