pnpm pnpr@0.1.0-alpha.15

pnpr@0.1.0-alpha.15Pre-release

pnpr 0.1.0-alpha.15

Added 16
  • pnpr serves a web UI at /-/ui/ when the @pnpm/pnpr-ui package is installed next to it
  • A new ui setting turns the web UI off or serves it from another directory
  • The web UI signs in with a password or with an OIDC provider that offers browser sign-in
  • pnpr lists OIDC sign-in providers at GET /-/pnpr/v0/sign-in
  • A browser sign-in started with /-/oidc/<provider>/login?return=ui ends in the web UI
  • Admins can change who may read, publish, and unpublish packages of a hosted registry with rulesManagedBy: api through /-/pnpr/v0/admin/rules/{ecosystem}/{name}, without a config deploy
Changed 2
  • Browser origins listed in cors.allowedOrigins may now send PUT, POST, and DELETE requests
  • A token stops working once its account is removed from the htpasswd file by hand, at the next pnpr restart, instead of continuing until revoked
Fixed 3
  • A new account with the name of a removed account no longer accepts tokens the removed account left behind
  • Layer downloads from Quay that are redirected to its CDN no longer fail with a 502
  • pnpr computes a missing or empty dist.integrity for upstream package versions so pnpm clients can install them, for upstreams with caching enabled
Security 1
  • Tokens that outlived their account no longer keep working after the account is removed

From pnpm

pnpr 0.1.0-alpha.15 adds a web UI, admin APIs for package rules, teams, and accounts, and SCIM deprovisioning. It also carries a security fix for tokens that outlived their account.

Minor Changes
  • pnpr serves a web UI at /-/ui/ when the new @pnpm/pnpr-ui package is installed next to it, for example with pnpm add -g @pnpm/pnpr,@pnpm/pnpr-ui. The new ui setting turns the UI off or serves it from another directory.

    The web UI signs in with a password or with an OIDC provider that offers browser sign-in. pnpr lists those providers at GET /-/pnpr/v0/sign-in. A browser sign-in started with /-/oidc/<provider>/login?return=ui ends in the web UI.

  • Admins can now change who may read, publish, and unpublish the packages of a hosted registry that sets rulesManagedBy: api. They use /-/pnpr/v0/admin/rules/{ecosystem}/{name}, and the change applies without a config deploy. The package patterns a registry serves stay in the config pnpm/tasks#111.

    The API reports a version and an ETag, and accepts If-Match on PUT and DELETE. A change based on rules another admin has since changed is refused with 412.

  • npm access grant, npm access revoke, and npm access list packages <scope:team> now work on a registry with rulesManagedBy: api. A grant adds the team to the access list of a package the packages: map declares by name, and read-write also adds it to publish.

  • Admins can now manage teams with pnpm team on a hosted registry that sets teamsManagedBy: api. List the admins in auth.admins. pnpr stores these teams in the hosted store, so every replica serves the same teams, and a team: access rule applies a membership change immediately pnpm/tasks#111.

  • OIDC sign-in can now put a user in registry teams based on the groups in their ID token. Configure it under auth.oidc[].login.groups. The membership lasts as long as the session and does not apply to the user's password logins or tokens pnpm/tasks#111.

  • Admins listed in auth.admins can now manage accounts through /-/pnpr/v0/admin/users. They can create accounts while self-registration is disabled, change passwords, remove accounts, and revoke tokens. Removing an account stops its tokens, including container registry tokens issued from them pnpm/tasks#111.

  • pnpr now serves SCIM 2.0 user endpoints when auth.scim.token is set, so an identity provider can deprovision accounts. Deactivating or deleting a user revokes its tokens, removes its password account, ends its browser sessions, and refuses any later sign-in with that username.

  • Browser origins listed in cors.allowedOrigins may now send PUT, POST, and DELETE requests.

Patch Changes
  • A token now stops working once its account is removed from the htpasswd file by hand, at the next pnpr restart. Before, it kept working until it was revoked. A new account with the name of a removed one no longer accepts tokens the removed account left behind.

  • pnpr can now cache images from Quay. Layer downloads that Quay redirects to its CDN no longer fail with a 502 #16548.

  • pnpr now computes a missing or empty dist.integrity for upstream package versions, so pnpm clients can install them. This applies to upstreams with caching enabled pnpm/tasks#24.

View original

Upgraded? How did it go?

Discussion