roadmap NOT-STARTED

1022. The fuzz host mints its tokens from the App key

Raised by lane/fuzz-findings-without-a-person on 2026-11-01 (UTC), from the credential ruling recorded in fuzz-findings-without-a-person.

Reuse: helpers/smelter-token already signs a JSON Web Token with openssl and trades it for an installation token. This takes its signing and exchange code, not its keychain or session parts.

What it builds

How it is checked

A selftest runs the helper against a throwaway key it generates and a stub curl, with no network. It checks that the JSON Web Token verifies against the key's public half, and that the exchange asks for exactly the two permissions and the one repository. It also checks that the token file has the right mode and that nothing printed contains the key.

Status

Built as fuzz-token in nifeos/fuzz-host@0c85820b2ff280c993613cbc66f95f71548ea229 (the repository), with its selftest, unit, timer and install section. It narrows each token further than this proposal asked: one token per service, Contents write alone for the daily release and Repository security advisories write alone for the filer. The token file sits under /run/fuzz-token/, and systemd's EnvironmentFile= reads it as root before the service drops to the fuzz account, so no third account sits between them. Not installed on the host. helpers/fuzz-daily-publish.sh does not yet refuse a stale token by name. App keys do not expire, and installation tokens last one hour (GitHub's documentation, read 2026-11-01 UTC).

Index row

The fuzz host holds an App key and trades it for one-hour installation tokens, so no long-lived token sits on the machine. The helper runs as root outside the clone, so an update from main never replaces code that runs with the key.