Allow Rules
Policies are expressed as allow rules against upstream server names and tool names.Wildcards
allow("*") grants access to all matching tools in the selected scope.
Rate Limits
Attach rate limiters to the policy permission that should be limited. Fentaris enforces policy-attached limiters automatically before forwarding the tool call.github.create_issue calls per minute. For shared team quotas, provide a custom limiter or store that normalizes keys by group or tenant.
App-Level Composition
When a proxy is assembled across modules, declare policies and groups from the app handle beforestart():
app.policy("readonly") calls return the same policy instance. Fentaris validates the final configuration and reports diagnostics for missing named policies, empty groups, duplicate declarations, and policies that reference servers not yet registered.
Use app.usePolicy(...) when one policy should apply globally and you are not configuring groups: