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.
Install
Section titled “Install”Go
Needs Go 1.27.0 or later (the go line in go.mod). Installs to $(go env GOPATH)/bin.
go install github.com/dyokto/laissez@latestLinux and macOS binary
Pick the archive for your platform from the releases page: darwin-arm64, darwin-amd64, linux-amd64 or linux-arm64.
gh release download -R dyokto/laissez -p 'laissez-*-linux-amd64.tar.gz'tar xzf laissez-*-linux-amd64.tar.gz laissezsudo install laissez /usr/local/bin/Debian and Ubuntu
gh release download -R dyokto/laissez -p 'laissez_*_linux_amd64.deb'sudo apt install ./laissez_*_linux_amd64.debFedora and RHEL
gh release download -R dyokto/laissez -p 'laissez_*_linux_amd64.rpm'sudo dnf install ./laissez_*_linux_amd64.rpmCheck it is on your PATH. A release binary prints its version; a go install build prints dev.
$ laissez versionlaissez v0.1.0Start the demo
Section titled “Start the demo”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:
git clone --depth 1 https://github.com/dyokto/laissezcd laissez$ go build -o bin/laissez-demo ./examples/demo$ bin/laissez-demo --dir laissez-demo 2>laissez-demo.log &$ ls laissez-demoagent-key.pemagent.jwtagent.pemapp.pembundle.jwksbundle.pemlaissez.tomlproxy-key.pemproxy.pemstranger-key.pemstranger.pemupstream-ca.pemIt 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:
$ laissez check --config laissez-demo/laissez.tomlok: 1 agent(s)$ laissez run --config laissez-demo/laissez.toml 2>laissez-demo/laissez.log &Refused at CONNECT
Section titled “Refused at CONNECT”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:
$ 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 403An 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:
$ 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/laissezcurl: (56) CONNECT tunnel failed, response 403Allowed, 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:
$ 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"}The audit log
Section titled “The audit log”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:
$ 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.
Verify a release
Section titled “Verify a release”Each release has a checksums.txt signed keylessly with cosign, an SPDX SBOM per archive, and SLSA build provenance for the archives and packages.
$ 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.txtVerified OK$ sha256sum --ignore-missing -c laissez-0.1.0-checksums.txtlaissez-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
© 2026 The laissez Authors. Licensed under Apache-2.0. Part of dyokto.