SplicedockUSER DOCUMENTATIONGitHub
Contents
USER GUIDE

Check the operation before it runs.

Configure CLI rules and request approval for individual operations.

On this page

CLI passthrough checks the argument array before starting a process.

Evaluation order

The gateway checks a CLI call in this short order. The first step that refuses the call ends it.

  1. Executable whitelist and credential-print denies.
  2. Argument limit, then the regex and substring deny rules.
  3. Subcommand deny and allow rules, then required arguments. For kubectl, the namespace confinement is part of this step.
  4. The circuit breaker, which can force strong approval after many denials.
  5. Approval rules. A denial always beats an approval rule.

See Every policy mechanism for the exact order and every key.

Policy example

kubectl tool policy
policy:
  max_args: 64
  deny_args_regex: ["^--token"]
  deny_subcommands: [delete]
  approval_subcommands: [apply]
  require_any_of:
    - ["--namespace=demo"]
  audit: true

delete is denied, and so is any argument that starts with --token. An apply request in the demo namespace requests approval. A call without --namespace=demo is denied.

Request and consume approval

The tool returns approval_id and expires_at. Wait through approvals__wait for up to 120 seconds per call. After approval, submit the same operation with the same token, profile, argument array, and resolved working directory before expiry. Each approval can be used once.

Arguments for approvals__wait
{"id":"<APPROVAL_ID>","timeout_s":120}

Strong approval with WebAuthn

Set server.consent.rp_id, its HTTPS origin, and the trusted hardware attestation roots. Configure the public origin used by the browser.

Operation classes

For kubectl, Splicedock rates each operation as benign, disruptive, destructive or unknown. Today the rating only limits learned grants: destructive and unrecognised operations always need a person. It never allows anything by itself and does not replace your allow and deny rules.

Optional learned grants

Enable SPLICEDOCK_GRANTS=1 to let Splicedock approve a repeated, low-risk operation after you approved the same kind of operation three times successfully. Grants apply only in namespaces listed in SPLICEDOCK_GRANT_NAMESPACES (default none), only to object names sharing the approved name prefix, and never to destructive or unrecognised operations. Free-text context can only send a request back to a human. Read Learned grants for the full algorithm.