Portona
Portona trades a short-lived OIDC token from an automated workload for a bundle of secrets, so no long-lived credential has to be stored where the workload runs. It runs on Cloudflare Workers, and keeps secrets encrypted in D1.
It’s named after Portunus, the Roman god of keys and doors.
Status: early prototype. It accepts tokens from Amp orbs (amp orb id-token) and GitHub
Actions jobs.
How it works
Section titled “How it works”- A workload runs
broker-run. In an Amp orb it mints a 60-second token scoped to its project; in a GitHub Actions job it uses the job’s OIDC token. - Portona checks the token’s signature, issuer, audience and expiry, and records it so it can’t be used again.
- It finds the grants to the requested environment that the token matches. The token must come from each grant’s issuer, and every claim the grant names must match exactly: the user and project for Amp, or the repository, branch, environment, workflow and event for GitHub Actions. The grants must allow every secret named.
- It decrypts only those secrets, writes an audit row, and returns them.
broker-runruns your command with only the secrets you named in its environment.
Environments and grants live in code in your deployment repository, and change only through a reviewed commit and a deploy. Secret values are set on the admin page and are never shown again.
Where to go next
Section titled “Where to go next”- Deploying your own: set up a deployment repository.
- Using an environment: run a command with secrets in an orb or GitHub Actions.
- Architecture and security: every part, flow and safeguard.
- Changelog: what changed in each release.