Skip to content

Laptop remote desktop rotted: KRdp logons all fail — krdpserver's KWallet user store never loads under the Hyprland session #5415

Open

Description

@developing-today

Discovered 2026-11-04 during a codespace-scope grant attempt: the fleet's KRdp route to the laptop is dead, and every logon fails.

Symptom. KRdp (:3389) requires NLA and rejects every logon (ERRCONNECT_LOGON_FAILURE).

Root cause. KRdp's managed users are stored by KWallet. Per the declarative setup in nixos/hosts/amd-krdp.nix:

RDP usernames/passwords are NOT passed on the command line (they would land in the world-readable Nix store and process list). They are managed on the machine in System Settings -> Networking -> Remote Desktop (the KCM ships in this same package) and are stored by KWallet, never in the repo.

But the laptop's seat session is no longer Plasma. Verified live 2026-11-04:

  • loginctl show-session 3 (seat0, active): Type=wayland, Desktop=Hyprland
  • No kwalletd6/kwalletd process running at all
  • Session bus: org.freedesktop.DBus.NameHasOwner org.kde.kwalletd6 → false

So krdpserver starts with no user store loaded — there is no user it can authenticate. (The nix module's own header anticipates the class of problem: the unit is WantedBy plasma-workspace.target, i.e. it was designed to start with the Plasma session.) This silently killed the fleet's co-provisioned GUI fallback route to the laptop. RustDesk is the other fallback and has a separate sandbox-side GLX problem — out of scope here.

Fix candidates.

(a) Ensure kwalletd autostarts in the Hyprland session (session config / systemd user unit in the same declarative layer, nixos/hosts/amd-krdp.nix), verified by a successful KRdp NLA logon.

(b) Or migrate KRdp to an auth model that doesn't depend on KWallet under a non-Plasma session.

Acceptance. A KRdp connection with the filed credential (krdp.amd-6-password in Bitwarden) completes logon to the live session.

Acceptance criteria

  • KRdp logons succeed under the Hyprland session: krdpserver's KWallet user store loads and a remote-desktop login completes.
  • No regression: existing tests/checks for the touched area remain green, and the change lands via PR referencing this issue.
  • Evidence (PR link, test/CI output, or verification note) is posted on this issue before it is closed.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    on Nov 4, 2026
  2. dezren39 commented on Nov 4, 2026

    @dezren39
    Member

    Intake review

    🤖 Agent note · state: filed

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-04 06:12 CST
    • Found via: monitor reconciliation
    • Task: Intake enrichment (protocol §5): verified still live in a bounded check this run (no merged PR or closed duplicate naming this fix), appended acceptance criteria, normalized labels.
    • Expectation: as labelled (effort class on the issue); done = acceptance criteria met with evidence linked here.

    Related: none identified in this bounded pass.
    Risks: Low for the intake pass itself; implementation risk lives in the issue body.
    Suggested approach: Triage through the queue in dependency order, verifying each step's acceptance evidence before closing.

  3. added
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 4, 2026
  4. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 5, 2026
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    Member

    🤖 Agent note · done

    Triage — task 10038, issue #5415

    Reproduced fresh (2026-11-05T13:31Z, laptop via the fleet laptop route): pgrep kwalletd6 / pgrep kwalletd → no process (NO_KWALLETD); seat0 session (session 3) is present. This matches the issue's 2026-11-04 verification exactly: under the Hyprland seat session no KWallet daemon runs, so krdpserver has no user store to authenticate against and every NLA logon fails. The bug is live, not stale.

    Fix path (scoped): candidate (a) from the issue — make kwalletd autostart under the Hyprland session (systemd user unit / session config in the same declarative layer as nixos/hosts/amd-krdp.nix), verified by a successful KRdp NLA logon with the filed credential. Candidate (b) (replace the KWallet auth model) is the fallback only if (a) proves fragile.

    Routing note: the touched file lives in the darwin-nix configuration (the laptop's NixOS hosts), not in this repo — the implementation belongs to the nix repo's queue/sweep, referencing this issue, not to a code-repo PR. Acceptance stays as written on the issue: logon completes, evidence posted before close.

    Outcome for task 10038: triaged (reproduced).

  6. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  7. 113 remaining items

  8. added and removed
    status/blockedQueue or user escalation state
    on Nov 14, 2026
  9. dezren39 commented on Nov 14, 2026

    @dezren39
    Member

    Released to the queue under Drew's 2026-11-13 unblock-all order (main chat, 23:53 CT). Task(s) 12734 moved from blocked/parked to queued in the fleet unblock-all pass (worker main-unblock-all-2026-11-13). Dependency gates still recorded on a task remain recorded — the dependency checker will re-block it if a gate is genuinely unmet.

  10. dezren39 commented on Nov 14, 2026

    @dezren39
    Member

    state: blocked (escalated — unchanged)
    task: 12734 (lane any-d, repo-worker-code)
    issue: #5415 — KRdp logons fail: KWallet user store never loads under Hyprland

    Re-served claim re-verified fresh 2026-11-14 by lane any-d; the escalation recorded by lane code-j (2026-11-12) stands unchanged: #5415 is OPEN, assigned to Drew, labeled user/escalated. PR #7767 is MERGED but intentionally supports Plasma-session start only; the Hyprland start was removed because the pinned Hyprland portal lacks KRDP's required RemoteDesktop interface, and #8734 (the re-scope record) is CLOSED. The acceptance test — a live KRdp NLA logon with the filed Bitwarden credential against the laptop's live Hyprland session — turns on Drew's direction for the auth model (fix candidate (a) is foreclosed by the portal limitation; candidate (b) is a migration decision), so task 12734 is blocked as escalated rather than re-worked. Nothing was modified.

  11. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed on Nov 16, 2026
  12. dezren39 commented on Nov 16, 2026

    @dezren39
    Member

    🤖 Agent note · blocked (escalated)

    Fresh state 2026-11-16 (laptop-local checks, this lane runs on the host):

    • loginctl: session 3 active, Type=wayland Desktop=Hyprland — unchanged.
    • pgrep kwalletd / pgrep krdpserver: both empty — unchanged.
    • Portal backends (busctl --user list): hyprland impl active; GTK impl active; GNOME impl activatable. Introspection of org.freedesktop.impl.portal.desktop.hyprland at /org/freedesktop/portal/desktop exposes GlobalShortcuts, InputCapture, ScreenCast, Screenshot only — no org.freedesktop.impl.portal.RemoteDesktop. So fix candidate (a) (autostart kwalletd in the session) cannot produce a working KRdp logon: krdpserver's PortalSession has no backend that can serve a desktop.
    • PR #7767 is MERGED (e95cc33, 2026-11-11) and deliberately Plasma-session-only; a942c88b02 removed hyprland-session.target from the unit and recorded the reason in the nixos/hosts/amd-krdp.nix header. Main is at a756d08438 today, unchanged in this area.
    • No open PRs mentioning krdp; stale-pr: resolve code#7767 — fix(nixos): start KRDP in the Hyprland session #8734 (re-scope record) is CLOSED.

    Decision required (Drew): the remaining acceptance — a live Hyprland KRdp NLA logon with krdp.amd-6-password — is foreclosed for candidate (a) by the pinned portal. Options, with my read:

    1. Authorize a RemoteDesktop-capable backend for the Hyprland session (new/updated xdg-desktop-portal-hyprland, or install a backend that implements RemoteDesktop and route the Hyprland session to it). Then re-enable hyprland-session.target in amd-krdp.nix and verify end-to-end.
    2. Re-scope Laptop remote desktop rotted: KRdp logons all fail — krdpserver's KWallet user store never loads under the Hyprland session #5415 acceptance to Plasma-session support (what shipped in fix(nixos): KRDP KWallet user store + Plasma-session start (Hyprland start deferred) #7767) and close the Hyprland requirement as deferred, tracked separately.
    3. Migrate the laptop's remote-desktop route away from KRdp (e.g. the fleet-broker direction in design: remote desktop through the fleet brokers (RustDesk transport, secrets, pre-warming, virtual desktops) #5694; see also Retroactive home for PR #701: fix(amd): quote KRdp service name so it is one systemd unit #9310) and close Laptop remote desktop rotted: KRdp logons all fail — krdpserver's KWallet user store never loads under the Hyprland session #5415 as superseded.

    No deploy, nixos-rebuild, credential access, file edit, or competing PR was made by this lane.

  13. dezren39 commented on Nov 16, 2026

    @dezren39
    Member

    state: blocked (escalated)
    task: 12734 (lane code-d, repo-worker-code)
    issue: #5415 — KRdp logons fail: KWallet user store never loads under Hyprland

    Fresh re-verification this shift (2026-11-16, via laptop):

    Can't-you gate: the fleet cannot clear this — the remaining choices change the laptop's remote-desktop architecture or the issue's acceptance scope, which is Drew's decision. Options recorded in the pending-decisions ledger as item krdp-hyprland-portal-5415: (1) authorize a RemoteDesktop-capable portal/backend for Hyprland, (2) re-scope #5415 acceptance to Plasma-session only, (3) migrate to an auth/backend path independent of KWallet+portal (refs #5694, #9310). No files, deploy, or credential access touched this shift.

  14. dezren39 commented on Nov 17, 2026

    @dezren39
    Member

    🤖 Agent note · triaged — duplicate; escalation to Drew stands, live state re-verified today (task 18306, queue repo-health-code-pilot, lane code-a)

  15. removed their assignment
    on Nov 20, 2026
  16. dezren39 commented on Nov 22, 2026

    @dezren39
    Member

    🤖 Agent note · blocked (packet defect)

  17. dezren39 commented on Nov 22, 2026

    @dezren39
    Member

    Owner-parks batch (#12234, 2026-11-22) — sharpened: this is a genuine owner question, stated exactly.

    What is settled: PR #7767 merged a Plasma-session-only KRdp fix; the laptop's live session is Hyprland, which lacks the RemoteDesktop portal backend KRdp needs, so logons still fail. No further agent implementation is blocked on evidence — it is blocked on a choice about Drew's own laptop:

    The question: which remote-desktop route should the fleet standardize on for the laptop?

    • (a) Run the laptop seat session under Plasma — the merged fix(nixos): KRDP KWallet user store + Plasma-session start (Hyprland start deferred) #7767 path works as-is; unblocks: nothing to build, acceptance is a logon test.
    • (b) Keep Hyprland and adopt a non-portal remote stack (e.g. wayvnc/Sunshine-class) — unblocks: an implementation slice to package, configure, and swap the fleet route to it.
    • (c) Retire the laptop remote-desktop route — unblocks: closing this issue and removing the dead route from the fleet's surfaces.

    Each answer is one word here; the follow-on work is fleet work in all three branches. The stale task packet describing the superseded Hyprland-start implementation should not be re-issued in any branch.

  18. dezren39 commented on Nov 22, 2026

    @dezren39
    Member

    Hands item — confirmed in the #12234 owner-parks sweep (archer, lane S, 2026-11-22). What is settled: PR #7767's fix is Plasma-session-only, the laptop's live session is Hyprland, and Hyprland lacks the RemoteDesktop portal backend KRdp needs, so no further agent implementation can close this. The remaining question is a choice about Drew's own laptop, with the three branches and their follow-ons stated in the 2026-11-22 note on this issue; every branch's follow-on is fleet work. The stale task packet describing the superseded Hyprland-start implementation should not be re-issued in any branch.

    The one action is in the marker above and in this issue's body, so the dashboard and fleet agent next treat this as a hands item; user/escalated stays until the action lands.

  19. dezren39 commented on Nov 22, 2026

    @dezren39
    Member

    decision:v1
    by: Drewry (via Felix, main chat)
    at: 2026-11-22

    Remote-desktop route: BOTH. Drewry approved routes (a) Plasma and (b) Hyprland + non-portal — support both rather than picking one; retirement (c) is rejected. Implementation proceeds on that basis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)queue/blockedQueue or user escalation statestatus/blockedQueue or user escalation stateuser/escalatedRequires a Drew decision or access

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions