Skip to content

Pre-alpha (v0.1.0). It runs end to end against fakes but has not been run against real GitHub, AWS or SPIRE, and the configuration format may change.

laissez

The agent holds no secret.laissez attaches one per request.

An AI agent sends its HTTPS traffic through laissez and proves who it is with its SPIFFE workload identity. laissez attaches a GitHub or AWS credential it mints for that agent, scoped to the agent's policy and valid for under an hour. Hosts the policy does not name are refused at CONNECT, and every decision goes to a JSON Lines audit log.

  • Go
  • one static binary
  • SPIFFE
  • Apache-2.0

Quick start

Run laissez on loopback in front of a fake GitHub, then send requests through it with curl as an agent: one to a host the policy does not name and one from an agent the policy does not know, both refused at CONNECT, then one that is allowed and gets a GitHub token the agent never held. It needs Go, curl and jq, and no GitHub App, SPIRE or AWS account. Nothing leaves loopback.

Go

Needs Go 1.27.0 or later (the go line in go.mod). Installs to $(go env GOPATH)/bin.

Terminal window
go install github.com/dyokto/laissez@latest

Linux and macOS binary

Pick the archive for your platform from the releases page: darwin-arm64, darwin-amd64, linux-amd64 or linux-arm64.

Terminal window
gh release download -R dyokto/laissez -p 'laissez-*-linux-amd64.tar.gz'
tar xzf laissez-*-linux-amd64.tar.gz laissez
sudo install laissez /usr/local/bin/

Debian and Ubuntu

Terminal window
gh release download -R dyokto/laissez -p 'laissez_*_linux_amd64.deb'
sudo apt install ./laissez_*_linux_amd64.deb

Fedora and RHEL

Terminal window
gh release download -R dyokto/laissez -p 'laissez_*_linux_amd64.rpm'
sudo dnf install ./laissez_*_linux_amd64.rpm

Check it is on your PATH. A release binary prints its version; a go install build prints dev.

Terminal window
$ laissez version
laissez v0.1.0

The fake GitHub and its throwaway keys come from examples/demo, which is not part of the laissez binary, so build it from a clone:

Terminal window
git clone --depth 1 https://github.com/dyokto/laissez
cd laissez
Terminal window
$ go build -o bin/laissez-demo ./examples/demo
$ bin/laissez-demo --dir laissez-demo 2>laissez-demo.log &
$ ls laissez-demo
agent-key.pem
agent.jwt
agent.pem
app.pem
bundle.jwks
bundle.pem
laissez.toml
proxy-key.pem
proxy.pem
stranger-key.pem
stranger.pem
upstream-ca.pem

It serves a fake api.github.com on loopback and writes into laissez-demo/ a SPIFFE trust bundle for example.org, X509-SVIDs for spiffe://example.org/agent/coder and spiffe://example.org/agent/stranger, a GitHub App key, and a laissez.toml that lists one agent:

[[agent]]
spiffe_id = "spiffe://example.org/agent/coder"
[agent.github]
installation_id = 42
repositories = ["laissez"]
permissions = { contents = "read", metadata = "read" }

Check the configuration, then start laissez on 127.0.0.1:18443:

Terminal window
$ laissez check --config laissez-demo/laissez.toml
ok: 1 agent(s)
$ laissez run --config laissez-demo/laissez.toml 2>laissez-demo/laissez.log &

In the commands below, --proxy-cert and --proxy-key are the agent's X509-SVID, --proxy-cacert trusts laissez's listener, and --cacert trusts the CA laissez wrote at start for the hosts where it injects a credential.

The agent coder asks for example.com, which its policy does not name. laissez answers the CONNECT with 403 and never dials the host:

Terminal window
$ cd laissez-demo
$ curl --silent --show-error --proxy https://127.0.0.1:18443 \
--proxy-cacert upstream-ca.pem --cacert laissez-ca.pem \
--proxy-cert agent.pem --proxy-key agent-key.pem \
https://example.com/
curl: (56) CONNECT tunnel failed, response 403

An agent with a valid SVID from the same trust domain, but no [[agent]] entry, gets the same 403 for a host that coder may reach:

Terminal window
$ curl --silent --show-error --proxy https://127.0.0.1:18443 \
--proxy-cacert upstream-ca.pem --cacert laissez-ca.pem \
--proxy-cert stranger.pem --proxy-key stranger-key.pem \
https://api.github.com/repos/dyokto/laissez
curl: (56) CONNECT tunnel failed, response 403

Allowed, with a credential the agent never held

Section titled “Allowed, with a credential the agent never held”

The same request as coder, which also sends an Authorization header of its own. laissez mints a GitHub installation token for laissez with contents: read and metadata: read, replaces the agent's header with it, and forwards the request. The fake GitHub echoes back the header it received:

Terminal window
$ curl --silent --show-error --proxy https://127.0.0.1:18443 \
--proxy-cacert upstream-ca.pem --cacert laissez-ca.pem \
--proxy-cert agent.pem --proxy-key agent-key.pem \
--header 'Authorization: token agent-should-not-have-this' \
https://api.github.com/repos/dyokto/laissez
{"authorization_seen_by_gh":"Bearer ghs_demo_minted_token","host":"api.github.com","path":"/repos/dyokto/laissez"}

Every decision is one JSON line in audit.jsonl. The minted token is recorded only as the first 16 hex characters of its SHA-256:

Terminal window
$ jq -c '{agent, destination, method, decision, reason, credential_kind}' audit.jsonl
{"agent":"spiffe://example.org/agent/coder","destination":"example.com:443","method":"CONNECT","decision":"deny","reason":"destination not in policy","credential_kind":"none"}
{"agent":"spiffe://example.org/agent/stranger","destination":"api.github.com:443","method":"CONNECT","decision":"deny","reason":"SPIFFE ID not in policy","credential_kind":"none"}
{"agent":"spiffe://example.org/agent/coder","destination":"api.github.com:443","method":"CONNECT","decision":"allow","reason":"intercept","credential_kind":"none"}
{"agent":"spiffe://example.org/agent/coder","destination":"api.github.com:443","method":"GET","decision":"allow","reason":null,"credential_kind":"github-installation-token"}

Stop the two background processes with kill %1 %2, and remove laissez-demo/ before running the demo again: the audit log appends.

Each release has a checksums.txt signed keylessly with cosign, an SPDX SBOM per archive, and SLSA build provenance for the archives and packages.

Terminal window
$ cosign verify-blob \
--bundle laissez-0.1.0-checksums.txt.sigstore.json \
--certificate-identity-regexp '^https://github.com/dyokto/laissez/\.github/workflows/release\.yml@refs/tags/v' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
laissez-0.1.0-checksums.txt
Verified OK
$ sha256sum --ignore-missing -c laissez-0.1.0-checksums.txt
laissez-0.1.0-linux-amd64.tar.gz: OK
$ gh attestation verify laissez-0.1.0-linux-amd64.tar.gz -R dyokto/laissez
  • How laissez works: identities, GitHub and AWS brokering, the environment an agent needs, and what laissez does not do
  • examples/laissez.toml: every configuration key, for running it against real GitHub and AWS
  • Threat model: what laissez protects against and its known gaps
  • Spec map: the specifications it implements and where it departs from them

Documentation

Docs

  • Overview An egress credential broker for AI agents. The agent holds no long-lived secret: it sends its HTTPS traffic through laissez and proves who it is with its SPIFFE workload identity. laissez then…

Guides

  • How it works The AWS variables are needed only when the agent has an [agent.aws] policy. The AWS credentials in laissez's own environment sign AssumeRole calls and are never handed to agents.

Reference

  • Threat model This is the threat model for laissez v0. It names what laissez is meant to stop, what it assumes, and what it does not stop. A change that moves a line between these sections needs an RFD.
  • Spec map

Project

  • Changelog All notable changes are listed here. Before 1.0, breaking changes bump the minor version and are listed first.
  • Security policy Report vulnerabilities in laissez through GitHub private vulnerability reporting. Please do not open a public issue or pull request for anything exploitable.
  • Contributing Bug reports and patches are welcome. For a suspected vulnerability in laissez, use the security policy, not a public issue.

Security

Fails closed

A host the policy does not name, an identity that cannot be verified, or an audit record that cannot be written is a refusal. There is no flag that skips verification.

Signed releases

Each release has a cosign-signed checksums.txt, an SPDX SBOM per archive and SLSA build provenance. Releases

Reporting a vulnerability

Use GitHub private vulnerability reporting, not a public issue. Security policy