Class RoleAuthorizationProcessor

Assembly: redb.Tsak.Core.dll

Enforces on controller actions.
Runs after and before
: it resolves the action the request would
hit, works out the required role, and answers 403 when the caller's key does not
hold it.

Technical endpoints are never gated. The processor no-ops unless the exchange
carries auth.authenticated = true, so auth-exempt paths (Kubernetes probes under
/api/health/*) pass straight through, as do all requests when auth is disabled.
The echo and Prometheus routes have their own pipelines and never reach this processor
at all. On top of that, an action marked is skipped
even when it *is* authenticated.


Actions without an explicit attribute fall back to a safe default derived from the HTTP
method: reads need , writes need
.

public sealed class RoleAuthorizationProcessor : IProcessor

Inheritance

Object→RoleAuthorizationProcessor

Implements

Methods

Process(IExchange, CancellationToken)

Processes the exchange asynchronously.

public Task Process(IExchange exchange, CancellationToken ct = default)

Constructors