A realm call relayed by the bridge: mcl_core:call_realm/3 #10
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (capability): a service on a LAN member can call a realm procedure, such as the realm's
crew_standing, through its cluster's bridge, the way it already calls a capability.The gap
The bridge relays two things today:
call_capability/5(an org-scoped DHT lookup) andpublish/3(src/bridge/mcl_core_bridge.erl:56-65). A realm procedure is dialled directly withmacula:call(Pool, Realm, Procedure, ...)onmesh_handles/0. On a member that answers{error, mesh_unavailable}, because a member has no pool. mcl-kanban's crew_standing reconciler does exactly this (crew_standing_reconciler.ex:105-108). DESIGN §5 points it at "call_capability with a realm target", which does not exist.What
mcl_core:call_realm(Procedure, Payload, TimeoutMs) -> {ok, Reply} | {error, Reason}: the direct dialmacula:call(Pool, Realm, Procedure, Payload, TimeoutMs), run on the node that holds the mesh pool.{error, mesh_unavailable}, asmesh_handles/0gives.call_capability/5is relayed: the call's own timeout plus the relay margin, and{error, {bridge_unreachable, R}}when the hop fails. With no bridge in the cluster, it answers as a node with no pool.Out of scope: relaying mesh events onto the LAN. The member's 60 s reconcile stays its path for crew facts.
Threat model
call_capabilitytoday. It is stated in the docs; it is not a new trust.Done when
mcl_core:call_realm/3on a standalone or bridge node makes the direct dial with this node's pool and realm, and answers{error, mesh_unavailable}with no pool.{error, mesh_unavailable}(peer case).Refs macula-services/mcl-kanban#16