Skip to content
Sign in

rbac-proxy

v1.1.7

RBAC boundary proxy for the iii worker protocol — auth, gating, namespacing, middleware, and engine:: result filtering on its own port.

license: Apache-2.0authorizationmiddlewareproxyrbacsecurity

Install

bash
iii call compose::add worker=rbac-proxy@1.1.7

Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.

Functions3

rbac-proxy::on-config-change

Function

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.

Request
  • idstring
Response
  • applied_configobjectrequired
    • engine_urlstring

      The trusted internal engine listener the data plane proxies to. 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 connection. Unset ⇒ every upgrade is refused.

      • 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 nested
        any of (2)
        Variant 1
        valuestring
        Variant 2
        • matchstringrequired
      • expose_functionsany of[]

        Filters exposing functions for invocation/discovery; a function is exposed if **any** filter matches.

        Show 3 nested
        any of (3)
        Variant 1
        valuestring
        Variant 2
        • matchstringrequired
        • namespacestring
        Variant 3
        • metadataobjectrequired
        • namespacestring
      • 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

rbac-proxy::on-functions-changed

Function

Internal: invalidate the discovery catalog cache when the engine's function set changes.

Request
  • invocation_idstring
Response
  • okbooleanrequired

rbac-proxy::status

Function

Check proxy health: bound host/port, the (credential-redacted) upstream engine URL, whether an auth function is configured, which endpoints are exposed, and the live downstream connection count.

Request
Empty object
Response
  • active_connectionsinteger· uint32requiredmin 0

    Live downstream connections.

  • engine_urlstringrequired

    Upstream engine URL, with any `user:pass@` credentials redacted.

  • expose_endpointsstring[]required

    The `rbac.expose_endpoints` patterns: the paths the proxy serves. Empty: every connection is refused.

  • hoststringrequired

    Bound public host.

  • portinteger· uint16requiredmin 0

    Bound public RBAC port.

  • rbac_enabledbooleanrequired

    Whether an `auth_function_id` is configured.

  • versionstringrequired

    Worker version (matches `Cargo.toml`).

Search the registry

Find workers, kits and executables, or jump to a page.