kernl API
    Preparing search index...

    Function createAppletAdmissions

    • Admit applets through kehto's firewall before they run.

      kehto dispatches nothing for a window whose session holds no admission, so kernl opens the session itself when it plans the window, under the verified principal, and asks the firewall for every domain the grants layer left the applet. Domains the applet requires are decided together and refuse the start when refused; each other domain is decided on its own and is simply left out when refused. With kernl's shipped rules none of this asks the person anything. shell is the read-only control plane and is not a permission, as in kehto's own launcher.

      Parameters

      • runtime: AdmissionRuntime

        kehto's runtime, with permissions configured.

      • now: () => number

        Clock for the session's registration time.

      Returns AppletAdmissions

      The admissions.

      const admissions = createAppletAdmissions(bridge.runtime, Date.now);
      const domains = await admissions.admit('applet-1', summary, environment);
      if (admissions.isCurrent('applet-1')) frame.srcdoc = srcdoc;