Package-level declarations
Types
The CoSec actions and resources of Wow's commands and service routes, one name whether CoSec decides the HTTP request or an authorizer decides the command in the process:
What CoSecCallerResolver takes from the host (wow.tenant.default and wow.cosec.*).
The caller of a request from the security context CoSec's pipeline built for it: CoSec authenticates the request and resolves its scope, deciding it itself or, behind a CoSec gateway (cosec.pipeline.mode=gateway), reading what the gateway verified from CoSec-Identity. This resolver turns that context into a Caller.
Authorizes a command with CoSec's documents, as its caller: the command is the action <context>:<command> on the resource <aggregate>/<id> (CoSecActions), the name CoSec's route map gives its HTTP route, so one policy guards both. CoSec's checker evaluates it for the principal and scope of the request the caller comes from (CoSecRequest); a command it does not permit is denied.
The codes CoSec answers any request with before Wow's routes, beside the public port's own (401, 403, 400): 429 wow.request.rate-limited, a caller past its rate limit, and 503 wow.auth.unavailable, a policy or a permission CoSec cannot read now (CoSecProblemRenderer.codeOf). With them among the edge's filter codes, the OpenAPI document lists them on every operation.
The identity a CoSec gateway forwards in CoSec-Identity once it has verified a person's token and permitted the request: what a local client or an end-to-end test sends a service behind one (wow.cosec.mode: gateway), which believes the header as it comes. subject of tenant with roles in the scope app and space (empty for none and the default space), its token valid for ttl from the moment the header is written. The credential is a person's (auth.kind person, CoSec 8.0.0-beta.9's IDN-44), as a user's sign-in is: a header without the member is read as a workload's.
Writes the body of CoSec's refusals as Wow's problems (wow.cosec.problems: wow, #6591), so a service that decides its requests itself answers them in one catalog. It writes the body alone: the status and every header stay CoSec's (Content-Type, CoSec-Request-Id, Retry-After, the RateLimit-* headers).
CoSec's request id as a command's request id when the request has no Wow-Request-Id: a CoSec gateway sets CoSec-Request-Id on the requests it forwards, so a command it sends again under the same header is the same request, which the log answers as a duplicate. The header is read as the request carries it, never the request id CoSec generates for a request without the header.
Authorizes a call of a service route with CoSec's documents, as CoSecCommandAuthorizer authorizes a command: the call is the action <context>:<route> on the resource route/<route> (CoSecActions), the name CoSec's route map gives the route over HTTP. A request-less caller gets no objection; a caller of a request that is not the principal CoSec authenticated for it is denied (CoSecRequest).