Cerbos JavaScript SDK
    Preparing search index...

    Interface RoleRule

    A rule for actions that can be performed on a resource by a role.

    interface RoleRule {
        allowActions: string[];
        condition?: Condition;
        resource: string;
    }
    Index

    Properties

    allowActions: string[]

    The list of allowable actions that the role can carry out on the given resource.

    condition?: Condition

    A condition that must be met for the actions to be allowed.

    resource: string

    The resource kind to which the rule applies.