kernl API
    Preparing search index...

    Function createFirewallPermissions

    • kehto's approval adapter for kernl: the firewall's host side.

      A request no stored answer covers goes to the rules first. What they allow goes ahead, what they deny is refused, and what they say to ask about is put to the person as a firewall.approve ask; a host that draws none has such a request refused, never allowed. A question for an applet this shell did not plan is cancelled. "Always" answers are kept under FIREWALL_DECISIONS_STORAGE_KEY; a failed write is told to the person and grants nothing. An applet that asks too often has its questions dropped by kehto's suggested budget, twelve a minute.

      Parameters

      Returns PermissionAdapter

      The adapter for ShellAdapter.permissions.

      const permissions = createFirewallPermissions({ host, rules, appletOf, rateLimiter, onRateLimit });
      const adapter: ShellAdapter = { ...rest, permissions };