The usual way to let a coding agent open a pull request is to put a personal access token in its environment. The usual way to let it read an S3 bucket is to put AWS_ACCESS_KEY_ID next to it. Both keys outlive the task by months, both can do more than the task needs, and the agent is the one process on the machine that reads untrusted text for a living. One prompt injection in a README and env goes out in a request body.
I wanted the agent to hold nothing worth stealing. laissez is what came out of that: a forward proxy the agent sends its HTTPS traffic through. The agent proves who it is with a SPIFFE identity, and laissez attaches a credential it minted for that agent a moment ago, limited to that agent's policy. Everything below was run on 2026-12-05 against laissez v0.2.0.
What the agent sees
From the agent's side it is two environment variables:
HTTPS_PROXY=https://127.0.0.1:8443 SSL_CERT_FILE=/path/to/bundle-with-laissez-ca.pem git, curl, the GitHub CLI and the AWS SDKs all honour HTTPS_PROXY, so nothing in the agent changes. Each tunnel starts with a CONNECT, and before anything is dialed laissez has to answer two questions: who is asking, and is this host:port in their policy.
"Who" comes from one of three places. An X509-SVID as the TLS client certificate to the proxy, checked against the trust bundle of the trust domain the SVID names. A JWT-SVID in Proxy-Authorization: Bearer, which needs the configured audience, a known kid, an asymmetric algorithm and an unexpired exp. Or, on a Unix socket, the peer's uid (and optionally its executable path) from the kernel, mapped to a SPIFFE ID. If the agent presents two of them, they must name the same ID.
What happens on the way out
Most allowed hosts are spliced through as they are. For pypi.org laissez only checks the policy and copies bytes.
For api.github.com and github.com, laissez terminates the agent's TLS with a CA it generates at startup and keeps only in memory. It drops whatever Authorization header the agent sent, attaches a GitHub App installation token, and forwards the request over a new TLS connection with normal certificate checks. The token is requested with exactly the repositories and permissions in that agent's policy, and if GitHub's response grants anything more, laissez throws the token away. Installation tokens expire after one hour. laissez caches each one until five minutes before that.
AWS works the other way round, because the SDKs already have a hook for it. laissez serves the container credentials endpoint (AWS_CONTAINER_CREDENTIALS_FULL_URI), checks the agent's token on each call, and returns a 900-second AssumeRole session carrying the agent's inline session policy, which can only narrow the role. The signing keys stay in laissez's own environment.
The interception CA is name constrained to the intercepted hosts and excludes every IP address. This is the certificate from a real run with the demo configuration:
$ openssl x509 -in laissez-ca.pem -noout -subject -enddate -ext nameConstraints,basicConstraints subject=CN=laissez interception CA notAfter=Jan 4 11:43:23 2027 GMT X509v3 Basic Constraints: critical CA:TRUE, pathlen:0 X509v3 Name Constraints: critical Permitted: DNS:api.github.com DNS:github.com Excluded: IP:0.0.0.0/0.0.0.0 IP:0:0:0:0:0:0:0:0/0:0:0:0:0:0:0:0 Even if the key leaked, a verifying client would reject a certificate it signed for any other name.
A real run
The repository has a demo that stays on loopback: a fake GitHub that echoes back the Authorization header it received, laissez in front of it, and curl playing the agent.
$ make demo == allowed: X509-SVID agent, its own Authorization header is replaced {"authorization_seen_by_gh":"Bearer ghs_demo_minted_token","host":"api.github.com","path":"/repos/dyokto/laissez"} == allowed: JWT-SVID agent, git smart HTTP {"authorization_seen_by_gh":"Basic eC1hY2Nlc3MtdG9rZW46Z2hzX2RlbW9fbWludGVkX3Rva2Vu","host":"github.com","path":"/dyokto/laissez.git/info/refs?service=git-upload-pack"} == denied: host not in policy (expect 403 at CONNECT) curl: (56) CONNECT tunnel failed, response 403 403 == denied: SPIFFE ID not in policy (expect 403 at CONNECT) curl: (56) CONNECT tunnel failed, response 403 403 == denied: no identity (expect 407 at CONNECT) curl: (56) CONNECT tunnel failed, response 407 407 In the first request curl sends Authorization: token agent-should-not-have-this. GitHub never sees it. It gets the minted token instead. The git request gets Basic with x-access-token:ghs_demo_minted_token base64 encoded, which is what git smart HTTP expects. Any other path on github.com is refused, so the token cannot be used on the web UI.
Every decision is one JSON line in the audit log. The token itself is never written, only the first 16 hex characters of its SHA-256:
{"time":"2026-12-05T11:43:01.358272Z","agent":"spiffe://example.org/agent/coder","identity_method":"x509-svid","destination":"api.github.com:443","method":"GET","path":"/repos/dyokto/laissez","credential_kind":"github-installation-token","scope":"42|laissez|contents=read,metadata=read","token_sha256":"a971e0ba66c2f86c","decision":"allow"} {"time":"2026-12-05T11:43:01.38856Z","agent":"spiffe://example.org/agent/coder","identity_method":"x509-svid","destination":"example.com:443","method":"CONNECT","credential_kind":"none","decision":"deny","reason":"destination not in policy","status":403} {"time":"2026-12-05T11:43:01.409778Z","destination":"api.github.com:443","method":"CONNECT","credential_kind":"none","decision":"deny","reason":"no valid agent identity","status":407} If the audit record cannot be written, the request is refused.
The policy file
One TOML file. Each agent is a SPIFFE ID with the hosts it may reach and what it gets on GitHub and AWS:
[[agent]] spiffe_id = "spiffe://example.org/agent/reviewer" [agent.github] installation_id = 12345678 repositories = ["laissez", "docs"] permissions = { contents = "read" } An empty repository list would ask GitHub for a token that covers the whole installation. laissez treats that as a configuration error, and laissez check catches it without starting anything:
$ laissez check --config laissez.toml ok: 2 agent(s) $ laissez check --config unscoped.toml laissez check: invalid configuration: agent "spiffe://example.org/agent/reviewer": github.repositories must name at least one Unknown keys, missing references and plain-text listeners on anything but loopback fail the same way.
What it does not do
laissez narrows what a credential can do. It does not judge what the agent does inside that. A token with contents: write on a repository can still push a bad commit to it, and laissez does not read request bodies, so data can leave in a body to any host the policy allows. If the agent can open connections without the proxy, laissez sees none of them. Blocking that is the platform's job (network policy, firewall, container egress rules).
There are also gaps in laissez itself, written down in the threat model. The AWS endpoint listens on loopback without checking the peer, so any local process holding a valid token for an agent gets that agent's session. Trust bundles are files read at startup, not fetched from the SPIFFE Workload API. v0.2.0, released today, closes one of the gaps: before it, a spliced tunnel had no deadline at all. Now a tunnel with no traffic for five minutes is closed.
laissez is pre-alpha. The whole flow runs against fakes in CI, but it has not been run against real GitHub, STS or SPIRE yet.
Trying it
brew install --cask kanywst/tap/laissez # or go install github.com/dyokto/laissez@latest Linux and macOS archives, deb and rpm packages are on the releases page, with an SBOM, a cosign signature and build provenance. I checked the v0.2.0 assets like this:
$ gh attestation verify laissez-0.2.0-darwin-arm64.tar.gz -R dyokto/laissez --format json \ | jq -r '.[0].verificationResult.signature.certificate.subjectAlternativeName' https://github.com/dyokto/laissez/.github/workflows/release.yml@refs/tags/v0.2.0 $ cosign verify-blob \ --bundle laissez-0.2.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.2.0-checksums.txt Verified OK The quick start goes from install to one refused and one allowed request in a few minutes. If you run agents against GitHub or AWS and try it with a real App or a real role, I would like to hear where it breaks. Issues are open at dyokto/laissez.

