Skip to content

v0.4.1: Safer installs and clearer limits

·All releases ·GitHub release

The Worker is unchanged from 0.4.0. This release corrects the docs after two reviews of 0.4.0, and adds a test for a rule whose test passed for the wrong reason.

Check your workflows

Earlier docs ran bunx broker-run without installing Portona first. Portona isn’t published to npm, so where it isn’t installed, bunx would download whatever npm package has that name and hand it the job’s workload token. Install a release tarball and run ./node_modules/.bin/broker-run, or copy client/broker-run.ts into your repository. If a workflow or script runs a bare bunx broker-run, change it. See Using an environment.

What 0.4 does and doesn’t cover

  • Stored secrets are keyed by the environment’s name. Its ID labels audit rows, nothing more yet. Creating an environment with a name used before, even with a new ID, gives it the old secrets, so never reuse a name. See Environments and grants.
  • protected is required on production names but changes nothing else yet, since every grant lives in git.
  • Rolling back to 0.3 after moving to PORTONA_ACCESS needs the old PORTONA_POLICIES too, and those grant whole environments. Deploying your own has the full migration command and how to roll back.
  • expiresAt in an exchange’s reply is when the workload’s token expires, not the secrets, and a secret’s rotate-by date is only a reminder.

A name in both PORTONA_POLICIES and PORTONA_ACCESS is still refused, so a bundle moved to PORTONA_ACCESS can’t keep its old environment-wide grant. Its test now checks that rule rather than an unrelated decode error, and a mutation check covers it.