Anchorage API reference
    Preparing search index...

    Configuration for RBACMiddleware.

    interface RBACMiddlewareOptions {
        allowedPrincipalKinds?: readonly PrincipalKind[];
        allowedRoles: readonly Role[];
        audit?: AuditLogger;
        getActor?: (args: ProcessInputArgs) => Actor | undefined;
        resource?: string;
    }
    Index

    Properties

    allowedPrincipalKinds?: readonly PrincipalKind[]

    Exact principal kinds authorized to call the agent. Defaults to ['human'], so an existing configuration denies every automated principal without changing a line — the caller must name the automation it wants.

    allowedRoles: readonly Role[]

    Exact roles authorized to call the agent. Consulted for humans only.

    audit?: AuditLogger

    Optional audit logger for authorization decisions and lookup failures.

    getActor?: (args: ProcessInputArgs) => Actor | undefined

    Override actor sourcing. Default reads ACTOR_CONTEXT_KEY from requestContext.

    resource?: string

    Audit resource. Defaults to the stable processor identifier.