You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pnpm/pnpm#16769 makes pnpr serve its web UI at /-/ui/ from the @pnpm/pnpr-ui package. Follow-ups it leaves:
Container image: include @pnpm/pnpr-ui in ghcr.io/pnpm/pnpr, for example under /usr/local/share/pnpr/ui with a matching lookup in pnpr. Until then, the docs say to mount the UI and set ui.dir.
Login screen: sign in from the UI instead of pasting a token on the Connect screen.
Password login through the same endpoint npm login uses.
OIDC sign-in (/-/oidc/<provider>/login) that redirects back to the UI instead of showing a token.
Decide whether a session survives a reload: a strict same-site cookie or session storage. pnpr sets no authenticating cookies today.
Connect screen when served: when pnpr serves the UI, the CSP's connect-src 'self' blocks any other server, so the server URL field only confuses. Hide it, or show it read-only.
Font: the design theme loads Inter from Google Fonts. Self-host it so a private registry's UI makes no third-party requests, then drop Google Fonts from the CSP in pnpr/crates/pnpr/src/server/web_ui.rs.
PR CI: build pnpr/ui in pull request CI when it changes, so a bad pin fails before release.
Written by an agent (Claude Code, claude-opus-5-5).
Follow-up from pnpm/pnpm#16794: add a browser test that runs the built web UI against pnpr.
Each side tests its half of the OIDC handoff on its own:
The pnpr-web specs cover the client: it reads ?flow=, sends a same-origin POST /-/oidc/handoff?flow=<flow>, and handles a missing flow and a 401.
pnpr's Rust tests cover the server.
Nothing runs the two together. A version mismatch between them broke OIDC sign-in on main until pnpm/pnpm#16794. A headless-browser test against a mock OIDC provider would catch that and also cover the full round trip, which has only been checked by hand.
Written by an agent (Claude Code, claude-opus-5-5).
Sign-in form creates accounts. The password form sends PUT /-/user/org.couchdb.user:<name> with {name, password}, the npm adduser call. On a server where auth.htpasswd.max_users still allows registration, a mistyped username creates a new account and signs in as it. The user then sees none of their private packages, with no hint why, and the stray account uses up a registration slot. Found on a Cloudflare trial deployment: a deleted account signed in again through the same endpoint and got 201. The form should only sign in existing accounts, or say that it created one.
Written by an agent (Claude Code, claude-opus-5-5).
I ticked the login screen: pnpr/docs/web-ui.md documents password and OIDC sign-in.
Left: the UI in the container image (docs still say to mount the dist), self-hosting the font (the CSP in web_ui.rs still allows Google Fonts), building pnpr/ui in PR CI (only release.yml builds it), and a browser end-to-end test. The connect-screen item was not re-checked.
Written by an agent (Claude Code, claude-opus-5-5).
Activity
zkochan commentedon Oct 9, 2026
Follow-up from pnpm/pnpm#16794: add a browser test that runs the built web UI against pnpr.
Each side tests its half of the OIDC handoff on its own:
?flow=, sends a same-originPOST /-/oidc/handoff?flow=<flow>, and handles a missing flow and a 401.Nothing runs the two together. A version mismatch between them broke OIDC sign-in on main until pnpm/pnpm#16794. A headless-browser test against a mock OIDC provider would catch that and also cover the full round trip, which has only been checked by hand.
Written by an agent (Claude Code, claude-opus-5-5).
zkochan commentedon Oct 23, 2026
Sign-in form creates accounts. The password form sends
PUT /-/user/org.couchdb.user:<name>with{name, password}, the npm adduser call. On a server whereauth.htpasswd.max_usersstill allows registration, a mistyped username creates a new account and signs in as it. The user then sees none of their private packages, with no hint why, and the stray account uses up a registration slot. Found on a Cloudflare trial deployment: a deleted account signed in again through the same endpoint and got201. The form should only sign in existing accounts, or say that it created one.Written by an agent (Claude Code, claude-opus-5-5).
zkochan commentedon Nov 8, 2026
Status check against main (2026-11-08).
I ticked the login screen:
pnpr/docs/web-ui.mddocuments password and OIDC sign-in.Left: the UI in the container image (docs still say to mount the dist), self-hosting the font (the CSP in
web_ui.rsstill allows Google Fonts), buildingpnpr/uiin PR CI (onlyrelease.ymlbuilds it), and a browser end-to-end test. The connect-screen item was not re-checked.Written by an agent (Claude Code, claude-opus-5-5).