Package-level declarations
Types
CoSecCommandAuthorizer and CoSecServiceRouteAuthorizer, CoSec's decision on a command and on a service route call by the same actions, as the caller of its request, among the node's authorizers when wow.cosec.authorizer.enabled is true and CoSec decides here (its AuthorizationChecker): asked with the application's own authorizers, each of which must allow a command too. On the public port CoSec's pipeline already decides the command routes. A request-less command (a saga's, a timer's, a scheduled job's) gets no objection from them; a caller of a request that is not the principal CoSec authenticated for it is denied. Where the switch is true and they cannot be wired, the node refuses to start (CoSecAuthorizerSwitch).
Wires CoSec into the host when the application has wow-cosec and CoSec's WebFlux module: the host wires its optional integrations as it wires Kafka, and wow-cosec keeps the Spring-free part, the resolver, the authorizers and the route map. It reads wow.cosec.* once, through WowProperties.cosec, the keys' one reader and one default.
CoSec's settings (wow-cosec), which the host's CoSec configuration reads from here alone, their one reader and their one default: they have metadata, and a key of wow.cosec that none of these is refuses the startup (ConfigurationKeys) instead of being ignored, so a mistyped Authorizer.enabled cannot leave the authorizer that allows all in place.
The Manifest's command and service routes as the route map CoSec's pipeline reads (CoSecActions.routes), where CoSec decides the requests itself (cosec.pipeline.mode enforce, its default): a command is <context>:<command> on <aggregate>/<id>, a service route <context>:<route> on route/<route>, the names CoSecCommandAuthorizer and CoSecServiceRouteAuthorizer decide them by. It comes after the host's configuration, which defines the Manifest, and before CoSec's pipeline, whose route map file it takes the place of; an application that maps routes of its own declares its RouteMap. Experimental as wow-cosec is.
A resolver that answers through another one, decorated, narrowing or completing its callers (a service's reserved scopes, its sign-in): the request's credentials are still decorated's, so what the host declares of them, the OpenAPI security schemes (WowOpenApiSecurity.of), is decorated's too.
The host's callers in a development profile (a profile of wow.dev-profiles), when the application has no CallerResolver and CoSec is off: the caller the request's identity headers (DevelopmentHeaders) name, so a service runs and is tried out at every caller level without an identity provider. Any client sets these headers, so the host wires it only when a development profile is active: outside one, it never does.
Requires a signed-in caller: decorated's caller without a subject, the anonymous one, is no caller, so the edge answers the request 401 on every route, as CoSec's resolver has it answered. For a service whose every route needs a user, in development too, where the host's callers (DevelopmentCallerResolver) serve a request without Wow-User as the anonymous caller.