Different pipes. One standard.

Type to search this site.

Search runs in your browser against a static index built with this site (Pagefind). Nothing you type is sent to a server.

Permissions — a step gets only what you grant

You cannot safely run someone else’s step: it just gets your credentials.

The problem #

A downloaded script starts with your whole environment: every token, your network, your home directory. You learn what it used afterwards, if at all.

The fix #

A step declares what it needs. You grant it, per step, in the pipeline. A runner that cannot enforce a grant refuses to run the step.

yaml
nodes:
  enrich:
    pipe: ./pipes/enrich
    inputs:
      records: {from: inputs.records}
    grants:
      network: ["api.example.com:443"]
      remoteData: ["api.example.com"]

The precise terms #

  • Permission kinds: network, filesystem, subprocess, environment, secrets and remoteData (record data leaves the machine).
  • Steps that run inside the runner (built-ins, Starlark) need no grants. An executable needs subprocess; an http pipe needs network and remoteData for its host.
  • A subprocess gets a minimal environment plus what was granted, never your ambient secrets. Secrets are references delivered out of band, never parameters.
  • A nested pipeline cannot give its children more than it was given.
  • --trusted grants everything a pipe declares, and says plainly that this is not a sandbox. A subprocess alone does not isolate untrusted code.

Normative text: Pipe specification