Skip to content

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.

Exchange: token in, secrets outAdmin, deploy and cron
  1. 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.
  2. Portona checks the token’s signature, issuer, audience and expiry, and records it so it can’t be used again.
  3. 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.
  4. It decrypts only those secrets, writes an audit row, and returns them.
  5. broker-run runs 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.