ExecLayer
Hosted Kernel
Connect your application to the hosted authorization API. You manage your application, integration and policy. ExecLayer operates the service.
Sign in
Your account
Workspaces
Get your first verified decision
- Choose Set up your account after buying the hosted Kernel on AWS Marketplace. Verify your email here and confirm which account will own the license.
-
Select your workspace and download
workspace.json. It contains the issuer’s public verification keys. Keep this trusted copy for independent verification. Download the Kernel client into the same empty directory. Use Node.js 22.12 or later. -
Generate your keys locally. Keep
policy-keys.jsonandcaller-key.jsonprivate and back it up securely. Upload onlyregistration.jsonusing the form above.node kernel-client.mjs prepare
-
Sign a request, submit it to the Kernel and verify the returned
receipt. The last command also works offline.
node kernel-client.mjs request 1 node kernel-client.mjs submit node kernel-client.mjs verify
The starter policy authorizes up to ten units forPUBLISH_RECORDonexample-record. Repeat withrequest 11to obtain a verified refusal. Both outcomes carry Ed25519 and SLH-DSA signatures. Your application acts only after verifying an ALLOW for its exact signed request. It owns execution, idempotency and recovery.
Integrate your workflow and maintain keys
Set the operation, target and maximum units for a bounded action in a local JSON file, for example:
{"operation":"APPROVE_EXPORT","target":"monthly-summary","maximum":3}
Download a fresh workspace.json, then run
node kernel-client.mjs prepare my-rules.json and upload
registration.json. The command signs a successor policy with your
original recovery keys. Repeat before the seven-day trust window
ends. Downloading a fresh workspace file also shows the current AWS
subscription expiry. An expired contract or policy stops new
decisions.
For an application request, POST the signed contents of request.json
as JSON to /api/marketplace?action=decision at your
workspace origin. Retry the identical request within its one-minute
lifetime after an uncertain delivery to recover its committed
receipt. A new nonce requests a new decision. Archive each request
and receipt with its registration and trust record before running
another example. Keep recovery and policy signing keys off
application hosts. The runtime needs only caller-key.json to sign
requests. To revoke a caller, download the latest workspace.json,
run node kernel-client.mjs suspend and upload the new
registration. To rotate it, run
node kernel-client.mjs rotate against the latest
workspace.json, upload the registration, then replace
caller-key.json with next-caller-key.json. Use the downloadable
client as a reference implementation.
For multiple operations, set operations in your rules
file to an array. Each operation has its own target and required
parameters. For example:
{"operations":[{"operation":"EXPORT","target":"summary",
"parameters":{"rows":{"min":1,"max":100},"format":{"allowed":["csv","json"]}}}]}
Download the standalone Node SDK. In your server application, load your trusted workspace.json, caller-key.json and public registration.json. This function returns the verified decision for the requested export:
import { signIntent, verifyResult } from './kernel-sdk.mjs';
export async function authorizeExport(workspace, caller, registration, rows) {
const intent = { operation: 'EXPORT', target: 'summary',
parameters: {rows, format: 'csv'} };
const request = signIntent(workspace, caller, intent);
const response = await fetch(workspace.origin + '/api/marketplace?action=decision', {
method: 'POST', headers: {'content-type': 'application/json'},
body: JSON.stringify(request), redirect: 'error', signal: AbortSignal.timeout(30000)
});
if (!response.ok) throw Error('Kernel authorization unavailable');
return verifyResult(workspace, registration, request, await response.json());
}