DeclaredServices

The service a request to the internal port comes from, as it names itself in WowHeaders.SERVICE: no token and no principal, the internal port being reachable by the platform's own pods alone. A request that names a service is that service's Caller: its subject service:<name>, in the tenantId, without scope, a service identity, so the call routes take its Wow-Call and CallPermits what it may call or read. A name is letters, digits, ., _ and -, at most MAX_NAME_LENGTH characters; any other value names no service.

Properties

Link copied to clipboard
const val MAX_NAME_LENGTH: Int = 253

The most characters of a service name, a DNS name's.

Link copied to clipboard

The prefix of a service identity's subject, and of the operator it would record on a command of its own.

Functions

Link copied to clipboard
fun callerOf(name: String, tenantId: String = Caller.DEFAULT_TENANT): Caller

The service identity of the service named name, in tenantId.

Link copied to clipboard
fun isName(name: String): Boolean

Whether name is a service name a request may state.

Link copied to clipboard
fun nameOf(request: ServerRequest): String?

The service request names, or null when it names none.

Link copied to clipboard
fun resolver(tenantId: String = Caller.DEFAULT_TENANT): CallerResolver

The service each request names, as its Caller in tenantId; null for a request that names none.

Link copied to clipboard
fun serviceOf(caller: Caller): String?

The service caller is, by name: its subject without SUBJECT_PREFIX.