Let the operator choose which profiles a device opens, behind an optional PIN #2184

Open
opened 2026-10-29 08:33:20 +00:00 by enricobuehler · 0 comments
Owner

A paired device can open any profile on the box today. On a Linux door that includes the owner's own desktop, unlocked, even with nobody logged in. This tracks making profiles a real access boundary.

First step: settle the design. Not started. Nothing gets built before the design is agreed.

What's wanted

  • The operator chooses, in the console, which profiles each paired device may open.
  • A profile can carry a PIN, asked whenever a device opens it. A device allowed into several profiles still faces a gate per profile.
  • Possibly Face ID or a similar biometric in place of typing the PIN, on clients that have one.

How it works today (origin/main f996046bb)

  • Pairing is the only gate. A device pairs once (PIN ceremony or console approval) and its key is pinned. A new pairing gets full grants, launch and power included (native_pairing.rs, GRANT_ALL).
  • Profiles grant nothing. mgmt/profiles.rs says so: "A profile is not a trust boundary: any paired device may pick any profile." On connect the host resolves whatever profile id the client names (profiles.rs, resolve). On a box with seats it redirects to that profile's seat whenever the seat is running and free (seats/placement.rs, decide). The launch grant gates only waking a stopped seat (may_wake).
  • On a door, the owner's row is never stopped for idling (seats/lifecycle.rs, stop_idle), and seat desktops start with kwin_wayland --no-lockscreen (packaging/linux/seat-session). So any paired device can open the owner's full desktop: their files, browser sessions and keys, with no password.

Questions for the design

  • Scope: per device (which profiles each device may open), or also per profile (say, a parent profile that may open the kids' ones)? What does an existing pairing get on upgrade, without locking anyone out or quietly widening access?
  • Where the check sits: at resolve or placement on the box, so a redirect can't skip it, and again on the seat host that admits the redirected device. The wake route and the client picker should follow the same rule.
  • The PIN: stored hashed on the box and checked by the host, never by the client. It needs a retry limit and lockout. How does a client without a keyboard enter it (TV, Deck, a gamepad-only client)? Does entering it once cover a reconnect, or every session?
  • Biometrics: the host can't verify a face. A biometric can only release a secret the client holds (Keychain or Keystore behind a biometric check) that the host then verifies. Is that a PIN cached on the device, or a per-profile key enrolled at first entry? How is it revoked?
  • Moonlight / GameStream: that protocol has no profiles. On a door, the owner's host can serve Moonlight and lands it on the owner's desktop. Does it get a profile binding, or is it refused for gated profiles?
  • The owner's desktop on a door: is a PIN enough, or should the owner's row also start locked, so the Linux password is asked as at the desk? gamescope has no lock screen.
  • Every host: Windows seats and take-turns profiles use the same profile model, so this can't be door-only.
  • Settings: this adds operator settings (docs/settings.md), which the maintainer asked for here.

Not in scope

The console's own sign-in (admin lane). Pairing itself, which stays the device credential.

A paired device can open any profile on the box today. On a Linux door that includes the owner's own desktop, unlocked, even with nobody logged in. This tracks making profiles a real access boundary. **First step: settle the design.** Not started. Nothing gets built before the design is agreed. ## What's wanted - The operator chooses, in the console, which profiles each paired device may open. - A profile can carry a PIN, asked whenever a device opens it. A device allowed into several profiles still faces a gate per profile. - Possibly Face ID or a similar biometric in place of typing the PIN, on clients that have one. ## How it works today (origin/main f996046bb) - Pairing is the only gate. A device pairs once (PIN ceremony or console approval) and its key is pinned. A new pairing gets full grants, launch and power included (`native_pairing.rs`, `GRANT_ALL`). - Profiles grant nothing. `mgmt/profiles.rs` says so: "A profile is not a trust boundary: any paired device may pick any profile." On connect the host resolves whatever profile id the client names (`profiles.rs`, `resolve`). On a box with seats it redirects to that profile's seat whenever the seat is running and free (`seats/placement.rs`, `decide`). The launch grant gates only waking a stopped seat (`may_wake`). - On a door, the owner's row is never stopped for idling (`seats/lifecycle.rs`, `stop_idle`), and seat desktops start with `kwin_wayland --no-lockscreen` (`packaging/linux/seat-session`). So any paired device can open the owner's full desktop: their files, browser sessions and keys, with no password. ## Questions for the design - **Scope:** per device (which profiles each device may open), or also per profile (say, a parent profile that may open the kids' ones)? What does an existing pairing get on upgrade, without locking anyone out or quietly widening access? - **Where the check sits:** at resolve or placement on the box, so a redirect can't skip it, and again on the seat host that admits the redirected device. The wake route and the client picker should follow the same rule. - **The PIN:** stored hashed on the box and checked by the host, never by the client. It needs a retry limit and lockout. How does a client without a keyboard enter it (TV, Deck, a gamepad-only client)? Does entering it once cover a reconnect, or every session? - **Biometrics:** the host can't verify a face. A biometric can only release a secret the client holds (Keychain or Keystore behind a biometric check) that the host then verifies. Is that a PIN cached on the device, or a per-profile key enrolled at first entry? How is it revoked? - **Moonlight / GameStream:** that protocol has no profiles. On a door, the owner's host can serve Moonlight and lands it on the owner's desktop. Does it get a profile binding, or is it refused for gated profiles? - **The owner's desktop on a door:** is a PIN enough, or should the owner's row also start locked, so the Linux password is asked as at the desk? gamescope has no lock screen. - **Every host:** Windows seats and take-turns profiles use the same profile model, so this can't be door-only. - **Settings:** this adds operator settings (`docs/settings.md`), which the maintainer asked for here. ## Not in scope The console's own sign-in (admin lane). Pairing itself, which stays the device credential.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unom/punktfunk#2184