Class NoRoleRequiredAttribute

Assembly: redb.Tsak.Core.dll

Marks an action (or a whole controller) as requiring no particular role — a valid API key
is enough. Intended for technical endpoints: Kubernetes probes, echo-style
reachability checks, and anything a load balancer or orchestrator calls.

Those endpoints are normally auth-exempt altogether (Tsak:Api:AuthExempt), so the
role check never even reaches them. This attribute is the second line of defence: if an
operator narrows the exempt list, the endpoint starts requiring a key but still must not
start demanding privileges — a probe that answers 403 would take the pod out of
rotation for the wrong reason.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class NoRoleRequiredAttribute : Attribute

Inheritance

Object→Attribute→NoRoleRequiredAttribute