Skip to main content

Module caller_admission

Module caller_admission 

Source
Expand description

Which contexts may call a service, decided across the whole project (#3890).

A refinement over Caller (actor Admin = Caller where IsContext(shop.admin)) names the calling contexts a service admits. The compiler sees every call edge in the project, so a call the callee’s actor does not admit is refused here, at the call site, before deploy. The callee still checks the proven caller at run time (wire format check 6), because signing keys are per context pair and a stale caller may still be deployed.

Two reports: bynk.actor.unknown_context (a name in IsContext(…) that is no context of the project) and bynk.actor.caller_not_admitted (a call from a context no member of the callee’s by clause admits).

Functions§

phase_caller_admission
Refuse a name that is no context, and a call no by member admits.