pnpr 0.1.0-alpha.15
- 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
- The package rules API reports a version and an ETag, accepts If-Match on PUT and DELETE, and refuses a change based on rules another admin has since changed with 412
- npm access grant, npm access revoke, and npm access list packages <scope:team> work on a registry with rulesManagedBy: api
- Admins can manage teams with pnpm team on a hosted registry that sets teamsManagedBy: api, with teams listed in auth.admins
- Teams managed through the hosted store are shared by every replica, and a team: access rule applies membership changes immediately
- OIDC sign-in can place a user in registry teams based on the groups in the ID token, configured under auth.oidc[].login.groups
- Group-based team membership from OIDC sign-in lasts as long as the session and does not apply to password logins or tokens
- Admins listed in auth.admins can manage accounts through /-/pnpr/v0/admin/users, including creating accounts while self-registration is disabled, changing passwords, removing accounts, and revoking tokens
- Removing an account stops its tokens, including container registry tokens issued from them
- pnpr serves SCIM 2.0 user endpoints when auth.scim.token is set, so an identity provider can deprovision accounts
- Deactivating or deleting a user via SCIM revokes its tokens, removes its password account, ends its browser sessions, and refuses later sign-in with that username
- 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
- 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
- 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-uipackage is installed next to it, for example withpnpm add -g @pnpm/pnpr,@pnpm/pnpr-ui. The newuisetting 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=uiends 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
versionand anETag, and acceptsIf-MatchonPUTandDELETE. A change based on rules another admin has since changed is refused with412. -
npm access grant,npm access revoke, andnpm access list packages <scope:team>now work on a registry withrulesManagedBy: api. A grant adds the team to theaccesslist of a package thepackages:map declares by name, andread-writealso adds it topublish. -
Admins can now manage teams with
pnpm teamon a hosted registry that setsteamsManagedBy: api. List the admins inauth.admins. pnpr stores these teams in the hosted store, so every replica serves the same teams, and ateam: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.adminscan 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.tokenis 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.allowedOriginsmay now sendPUT,POST, andDELETErequests.
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.integrityfor upstream package versions, so pnpm clients can install them. This applies to upstreams with caching enabled pnpm/tasks#24.