rbac-proxy::on-config-change
Internal: hot-reload rbac-proxy from the authoritative configuration — rebinds the public listener on a host/port change (last-good on failure), else swaps the per-connection snapshot.
- idstring
- applied_configobjectrequired
- engine_urlstring
The trusted internal engine listener the data plane proxies to. When unset: the engine the worker was started against (`III_URL` / `--url`), else `ws://127.0.0.1:49134`. New connections dial this; existing connections finish on their captured upstream (no forced cutover).
- expose_worker_internalsboolean
Strip operational identity (`pid`, `ip_address`, `isolation`, `internal`, `latest_metrics`) from `engine::workers::*` results. `false` (strip) is the multi-tenant-safe default.
- hoststring
Host the public RBAC listener binds. Structural (rebind on change).
- middleware_function_idstring
When set, every allowed, non-`engine::` invocation is routed to this function instead of the target; its return value becomes the result.
- portinteger· uint16min 0
The public RBAC port. Structural (rebind on change).
- rbacall of
The RBAC contract (auth function, expose filters, the function and observer registration hooks).
all of (1)Variant 1- auth_function_idstring
Engine function id invoked once per upgrade to authenticate the worker (`/`) or telemetry (`/otel`) connection. Unset ⇒ every such upgrade is refused, except a loopback peer's when `loopback_auth` is set.
- expose_endpointsany of[]
Endpoints of the engine's worker port the proxy serves (`/`, `/otel`, `/ws/channels/*`); one is served if **any** rule matches it. Unset serves `/` only, as earlier versions did (minus channels), so an upgrade keeps workers connected; an empty list serves nothing.
Show 2 nestedHide nested
any of (2)Variant 1valuestringVariant 2- matchstringrequired
- expose_functionsany of[]
Filters exposing functions for invocation/discovery; a function is exposed if **any** filter matches.
Show 3 nestedHide nested
any of (3)Variant 1valuestringVariant 2- matchstringrequired
- namespacestring
Variant 3- metadataobjectrequired
- namespacestring
- loopback_authany of
Built-in authentication for local projects, used only when `auth_function_id` is not set. Like the auth function it governs the worker endpoint `/` and telemetry `/otel` only (`/ws/channels/*` sockets are checked by the engine's channel access keys): a connection whose peer address is loopback (exactly 127.0.0.1, ::1 or ::ffff:127.0.0.1) and whose upgrade shows no sign of a non-local client (see `allowed_origins`, `allow_forwarded`) gets these grants, as if an auth function had returned them; any other is refused. Only safe where every local process is trusted: a tunnel, a reverse proxy or a sandbox gateway on the same machine makes remote clients look local. `auth_function_id` wins when both are set.
Show 2 nestedHide nested
any of (2)Variant 1- allow_forwardedboolean
Whether an upgrade carrying a proxy's forwarding headers (`Forwarded`, `X-Forwarded-For`, `X-Forwarded-Host`, `X-Forwarded-Proto`, `X-Real-IP` or `Via`) still gets the loopback grant. Default `false`: such an upgrade came through a proxy, so its client is not known to be local, and it is refused as a non-loopback peer.
- allow_function_registrationboolean
Whether the connection may register functions (event sources included). Default `false`, unlike an auth function's result; when `true`, a non-empty `function_registration_prefix` is required.
- allowed_functionsstring[]
Function ids the connection may call in the `default` namespace (exact ids; a pattern goes in `namespaces`).
- allowed_originsstring[]
`Origin` values whose upgrades still get the loopback grant (exact, scheme and host compared case-insensitively, e.g. `http://localhost:3000`). An upgrade carrying any other `Origin`, a browser page's, is refused as a non-loopback peer; one with no `Origin` (SDK workers) is unaffected. Default `[]`: every upgrade that carries an `Origin` is refused.
- contextunknown
Passed to the middleware and the registration hooks.
- forbidden_functionsstring[]
Function ids the connection may never call, in any namespace; wins over every other rule.
- function_registration_prefixstring
Private prefix for the connection's own registrations and worker names. Non-empty and required when `allow_function_registration` is `true`.
- namespacesobject
Grants scoped to one namespace each (`{ orders: ["svc::*"] }`); the keys are then the only namespaces the connection may declare.
- worker_namesstring[]
Worker names the connection may declare unchanged (exact, never an `rbac-proxy:` name; one live session at a time holds each).
Variant 2valuenull - on_function_registration_function_idstring
Called before a function is registered, with its `function_id`, `description`, `metadata`, `namespace`, `private`, `observable`, `args_format` (when set) and the session's `context`. An object answer may rewrite `function_id`, `description`, `metadata`, `private`, `observable` and `args_format`; anything else denies (the registration is dropped).
- on_observer_registration_function_idstring
Called before an observer is created, with `observer_id`, `function_id`, `namespace`, `args`, `filters`, `target_function_id`, `target_namespace`, `metadata` and the session's `context`. An object answer may rewrite `function_id`, `target_function_id`, `args`, `filters` and `metadata`; anything else denies (`FORBIDDEN`).
- bound_hoststringrequired
- bound_portinteger· uint16requiredmin 0
- errorstring
- okbooleanrequired
- registration_namespacebooleanrequired
This build pins a session to the auth result's `registration_namespace`. A caller that needs the pin refuses a proxy whose answer lacks it.