Commit Graph

231 Commits

Author SHA1 Message Date
UNITRONIX b9f721ca7c feat(rdclient): centered multi-monitor thumbnail picker
Add RustDesk multi-capture overview with live aspect-correct tiles, focus selection, mosaic All monitors, and a + tile for virtual displays. Ships via panel update.

Thanks: INSOLVE (Honorary); betterde.sk (@trybetterdesk); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-23 19:56:53 +01:00
UNITRONIX 4a08ebf1df docs(ci): rules for main merges without minor version bumps
Document no-bump markers (docs(/skip-release), hotfix patch stays on
the current minor line, and update sponsors/release Cursor rules.

Thanks: INSOLVE (Honorary); betterde.sk (@trybetterdesk) (Bronze); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-22 22:43:16 +01:00
UNITRONIX 51906df728 fix(ci): skip stable minor bump for docs/skip-release merges
Merging the Bronze sponsors PR into main minted an accidental v3.6.0.
Guard docs(/docs:/skip-release so only real release/hotfix PRs publish.

Thanks: INSOLVE (Honorary); betterde.sk (@trybetterdesk) (Bronze); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-22 22:38:37 +01:00
UNITRONIX 144dafc94c fix(ci): restore direct version bumps; keep only main locked
Remove PR-based bump flow. Branch protection on `dev` is cleared so
operators and github-actions can push/merge freely; `main` stays
fully protected (PR + reviews + required checks).

Thanks: INSOLVE (Honorary); betterde.sk (@trybetterdesk) (Bronze); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-22 22:23:07 +01:00
UNITRONIX bffd06ff69 fix(ci): squash-merge version bumps with admin bypass
GITHUB_TOKEN-created bump PRs never receive check runs, so waiting on
gh pr checks fails immediately. Merge with --admin instead.

Thanks: INSOLVE (Honorary); betterde.sk (@trybetterdesk) (Bronze); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-22 22:21:15 +01:00
UNITRONIX 10d6ba3313 fix(ci): land version bumps via PR on protected dev
dev requires pull requests, so github-actions cannot push [version-bump]
commits directly. Open chore/bump-dev-vX.Y.Z, wait for required checks,
squash-merge, then dispatch docker-publish. Document the GH006 failure mode.

Thanks: INSOLVE (Honorary); betterde.sk (@trybetterdesk) (Bronze); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-22 22:17:47 +01:00
UNITRONIX 677a1b0118 fix(panel): close trust fallback and improve agent recovery
Prevent panel-trust requests from falling through to the bridge API key, which could associate address-book writes with the wrong operator. Add a device identity reset path for reinstalled clients and clarify generic versus preconfigured agent distribution.

Refs #510

Refs #520

Refs #517

Reported-by: @PeterLinuxOSS

Reported-by: @mh254

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-22 01:41:28 +01:00
UNITRONIX 119e0eddda fix(migration): make -migrate-sqlite-auth work on real installs
Refs #511

The migration failed three times on a real legacy split install while the dry
run reported success. Four independent defects, each reproduced:

1. A shared account with the same password in a different hash format
   (bcrypt in the console, pbkdf2 in the server) aborted as a credential
   conflict. It now fails by default with a message naming the account and
   the opt-in flag, and proceeds only with
   -migrate-sqlite-auth-prefer-target-credentials, which keeps the target
   (Go server) hash and records each resolved account as a warning in the
   report. Behind a flag on purpose: two different hashes can mean two
   different passwords, and picking one silently would grant access to
   whoever holds it. The legacy console hash is never preferred.

2. Tables were created and filled in one alphabetical pass, so a child table
   hit a foreign key on a parent that sorted later. Creation and copying are
   now separate passes; the copy runs with foreign_keys=OFF because
   alphabetical row order is still wrong, and is verified afterwards.

   Testing exposed a second, larger problem: an existing database is allowed
   to carry violations already (38 orphaned audit_log rows on the reference
   install). A check that demands zero would reject a correct migration, so
   the merge records a baseline before copying and fails only on violations
   it introduces. validateSQLiteDB no longer requires zero either, since it
   also validates the operator's existing database.

3. users went through the generic column comparison after ensureUserColumns
   added the console profile columns, so any non-empty preferred_language or
   email looked like a conflicting row. The suggested fix (skip users) would
   have dropped console-only accounts: there is no INSERT against
   legacy_auth.users anywhere. A dedicated mergeUsers inserts accounts
   missing from the target, keyed by username, and compares only
   authentication columns.

4. The dry run only compared ids and usernames, so it passed for migrations
   that could not succeed. It now runs the real merge against throwaway
   snapshots of both databases and discards them.

Verified against copies of a real split install: the dry run reports the
hash-format conflict, the real run refuses without the flag, and with the flag
the migration completes, the target is marked consolidated, the target hash is
kept, and neither database is left with candidate or tmp files.

Docs updated with the new flag, the FK-baseline behaviour, the read-only
auth.db WAL limitation and the console-only tables that remain out of scope.

Reported-by: @PeterLinuxOSS

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-20 08:57:08 +01:00
UNITRONIX 7b88fe3b03 fix(compat): harden RustDesk 1.5 relay and proto parity
Refs #504
Refs #505

Fix force-relay target advertisement for RustDesk 1.5 relay allowlists, sync additive 1.5.x protocol fields, filter locked strategy keys, and add translated deployment guidance plus regression coverage.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-18 00:40:17 +01:00
UNITRONIX 185a36d9fb feat(rdclient): add bidirectional rich clipboard bridge
Add shared text, HTML, and PNG clipboard state across the operator and remote sessions. Preserve clipboard content when browser permissions block OS writes, support multi-format RustDesk messages, and expose explicit send/copy actions in the viewer.\n\nTests: npm test -- --runInBand; npm run check:frontend\n\nThanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-18 00:30:50 +01:00
UNITRONIX 790b65fd32 fix(enrollment): keep stock clients and Support Agents able to enroll (C1 follow-up)
Hardening device registration must not lock out the clients the product is built
for. Stock RustDesk clients and Support Agents cannot produce an Ed25519
signature, so `POST /api/bd/register` now accepts three equivalent proofs of
admission instead of demanding a signature:

1. an `approved` row in `pending_registrations` for this exact device id
   (operator clicked Approve in the Registrations tab),
2. a single-use enrollment token issued by `POST /api/bd/enroll`,
3. an Ed25519 proof of possession of the key being bound.

Banned and soft-deleted ids are still refused before any write, and an existing
device's key/uuid can only be rotated by the key it already has — admission
proves identity, not ownership of an established identity. The refusal is a
single neutral error (`403 enrollment_proof_required`) so a caller cannot probe
which admission method is missing.

Verified end to end on the test host: register before approval -> 403
enrollment_proof_required; register-request -> pending; operator approval;
register with no signature -> 200; template + enroll -> 200; register with the
token -> 200; a second device reusing the same token -> 403.

Also fixed, because it silently broke this same model:

- `POST /api/bd/enroll` and the agent-template tab called `db.get()` /
  `db.query()`, which the database facade never exposed, so every enrollment
  token answered 401. Added `listAgentTemplates` / `getAgentTemplateByToken` /
  `createAgentTemplate` to both adapters and `lib/agentTemplates.js`.
- PostgreSQL installs had no `agent_templates` table (it only existed in SQLite
  auth.db). It is now created by the adapter schema on both backends with
  `enrolled_device_id` / `enrolled_at`, so a token is single-use and bound to one
  device.

Tests: `tests/bd-register.enrollment.test.js` (8 cases covering approval,
pending, rejected, token, token reuse, no-admission, later heartbeats and
removed devices) plus the existing hardening suite (11 cases).

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-13 21:45:07 +01:00
UNITRONIX 34c108c908 docs(security): record CodeQL closure and the #497/#498 fixes
Update docs/security/AUDIT_2026-11-13.md with the final state: CodeQL moved
from default setup to the advanced workflow with codeql-config.yml (6 -> 1 open
alerts, the last one fixed in 8ca20a6b), #498 implemented in 80787c71 and #497
in UNITRONIX/hbb_common af86d50 + BetterDesk-Client 238ace1d5. Neither issue is
closed; both carry a comment with verify steps for the reporters.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-13 21:35:58 +01:00
UNITRONIX 0429c4080d fix(security): close the 2026-11-13 audit findings (C1-C3, H1-H10, M4-M6/M8/M11)
Full report and per-finding status in docs/security/AUDIT_2026-11-13.md.

Critical
- POST /api/bd/register now requires an Ed25519 proof of possession for a
  first registration and for any public_key/uuid rotation, rejects banned and
  soft-deleted ids before writing, and is rate limited per IP. Knowing a device
  id is no longer enough to flood inventory, resurrect a removed device or
  swap its key.
- Signal RegisterPk with old_id is applied only when the supplied key or the
  machine UUID matches the stored peer, so an unauthenticated caller can no
  longer move and delete someone else's row. Stock RustDesk change-ID (no pk,
  matching UUID) still works.
- The Go server runs as betterdesk from /usr/local/bin/betterdesk-server and
  /opt/rustdesk is no longer group-writable at the directory level, so the
  console user cannot replace the binary. DSNs and the bootstrap admin password
  are gone from systemd units.

High
- /metrics and /api/health/detail require the metrics allowlist or an API key;
  public /api/health returns only {status, version}.
- Panel login consults the shared account-lockout tracker (429 + Retry-After);
  delegated 2FA fails closed; pending-2FA state is written after session
  regeneration; GET /logout no longer destroys the session.
- HTTP->HTTPS redirect no longer trusts the Host header or absolute request
  targets.
- Desktop login no longer pre-renders the account list; a rate-limited
  /login/lookup returns at most 8 prefix matches.
- Panel section overrides are clamped to the role ceiling, so a per-user policy
  cannot grant a permission the role lacks.
- /api/devices/:id/* is covered by one scope guard (tags, rename, change-id,
  restore, access-policy).
- applyUpdate verifies an optional Ed25519-signed manifest and can be made
  fail-closed with UPDATE_REQUIRE_SIGNED_MANIFEST=true.
- The privileged broker no longer manages DATABASE_URL, SESSION_SECRET,
  DEFAULT_ADMIN_PASSWORD, UPDATE_GITHUB_TOKEN, API_KEY_PATH,
  ORG_PEER_VAULT_KEY, SMTP_PASS or API_TOKEN_EXPIRY_DAYS, and reports a
  protocol version so a stale broker is detectable.
- Peer status/online/metrics/linked/policy endpoints require device.view and
  enforce organisation scope.

Medium / low
- Backup restore enforces a decompressed-size and entry-count budget.
- limit/offset clamped on the console and in the Go audit handlers; public
  audit writes are rate limited.
- Data embedded in inline <script> blocks goes through safeJsonScript; the
  pairing page escapes the suggested host.
- Go toolchain and builder images bumped to go1.26.11 (GO-2026-6859); the
  console requires at least that version to rebuild the server.
- Workflow Actions pinned to commit SHAs; Dependabot tracks github-actions.
- Restart tokens compared with crypto.timingSafeEqual.

Tooling
- scripts/security/pentest-local.sh / .ps1 local security gate.
- scripts/check-security-regressions.sh CI gate (unit credentials, inline
  script escaping), wired into Secret Scan.
- Two long-standing red tests fixed (platform loopback address, missing
  panelAccessPolicyService mock).

Verified on the test host: /metrics 401, /api/health/detail 401,
/api/peers/online 401, desktop login ships an empty user list, unproven
register returns 403, Host spoofing redirects to the configured public host,
and the broker reports version 2 with a secret-free manifest.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-13 21:25:10 +01:00
UNITRONIX cde8a58ad1 feat(api): serve the panel catalog from Go
Stage P3 (definition half) of the strangler plan. The console kept its own
panel section list and role map while Go owned the permissions - the
"second copy" discussion #496 pointed at.

GET /api/panel/catalog now serves the section list (key, label, group,
read/write permission), the group list, the whole permission vocabulary and
the built-in role defaults. Every signed-in principal may read it, because
every role renders its own navigation from it.

The console loads it at startup and looks sections up through
panelCatalog(); the bundled copy stays only as the fallback for an older
server binary and for unit tests. tests/panelCatalogParity.test.js fails if
the two definitions drift apart - it already caught a duplicate "toolkit"
entry nobody had noticed.

Also documents the whole plan in docs/important/console-backend-strangler.md
(domain/table ownership, stages, rollback switches) and updates the UX 3.6
wiki page and the changelog.

Refs #496

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-11 15:35:11 +01:00
UNITRONIX 6e5f7af78a feat(console): port the UX 3.6 design system instead of recolouring UX 3.5
The first beta was only a thin layer over the UX 3.5 sheets: it copied a few layout ideas but kept the old palette, the system font stack and the old component styling, so pages looked almost unchanged and the beta read as fragments of the design.

This ports the contributor's actual design system into web-nodejs/public/css/ux36/ and loads it last for the beta shell only:

- palette.css - his neutral dark scale (#141616...) and white-based light theme, rather than the GitHub blue-black we had.
- tokens.css, base.css, components.css, shell.css - his token set, IBM Plex Sans/Mono typography, component styles (.btn, .form-input, tables, menus, tags, notices) and shell layout, taken from web-nodejs/public/css/ui/ at d710bdb.
- pages.css - this console's page classes mapped onto his page rhythm: ruled rows instead of floating cards, stats as one ruled strip, Devices as a 210px folder rail beside the table, Settings as a ruled topic row, device details as a side sheet.
- legacy-bridge.css - his token names mapped onto the v2 names the remaining page sheets use, so no page mixes two type or spacing scales.
- shared-chrome.css - the switch and its BETA badge, needed in both shells.

The top bar and sidebar are their own partials now (ux36-topbar.ejs, ux36-sidebar.ejs) using his structure: logo column sized to the sidebar, breadcrumb from the section model, sections as <ul> lists with icons and group labels.

IBM Plex fonts ship with their SIL OFL licence. ux35-shell.js no longer writes the UX 3.5 palette inline while the beta shell is active, because those inline vars would beat palette.css on a theme toggle.

UX 3.5 is untouched: same sheets, same markup, same palette. Custom operator colours still win - the beta palette is scoped to data-ui-shell=ux36 and light/dark only.

Refs #493
Refs #495
Reported-by: @rathlinus
Based-on: @rathlinus UX redesign (Refs #493, #495)

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-10 01:11:20 +01:00
UNITRONIX d09015ca46 feat(console): move the UX 3.6 switch into the top bar and credit its designer
The shell switch now sits with the theme / refresh / language controls, so the beta is one click away from every page. In UX 3.5 the button carries a small BETA badge and opens UX 3.6; in UX 3.6 the same button returns to UX 3.5, and the sidebar footer repeats it as a labelled 'Switch back to UX 3.5' entry.

Move the request logic to public/js/ui-shell.js because the toggle renders in both shells (ux36-shell.js now only owns beta-only layout behaviour). The Settings card stays as the descriptive entry point.

Attribution: README gains a Credits section naming Linus Rath (@rathlinus) as the designer of the redesign that UX 3.6 is modelled on, and the Settings card links the contributor profile plus issue #493 and PR #495 next to the existing credit line. CONTRIBUTOR-ATTRIBUTIONS.md and .cursor/rules/ux36-attribution.mdc already require the 'Based-on: @rathlinus UX redesign (Refs #493, #495)' trailer on every port commit.

Refs #493
Refs #495
Reported-by: @rathlinus
Based-on: @rathlinus UX redesign (Refs #493, #495)

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-10 00:55:13 +01:00
UNITRONIX 602fa36573 feat(console): add opt-in UX 3.6 beta shell in the current EJS stack
Adds an alternative console layout modelled on the community redesign by
@rathlinus and rebuilt on the existing EJS/JavaScript/CSS stack -- the
svelte-rewrite branch stays a design reference and is not merged.

What ships:

- lib/uiShell.js resolves the shell once (query, then cookie, then default)
  so SSR markup, asset includes and window.BetterDesk.uiShell cannot
  disagree. UX 3.5 remains the default and the fallback; unknown values
  (including the removed `classic`) are ignored instead of erroring.
- routes/ui-shell.routes.js exposes GET/POST /api/ui-shell (auth + CSRF) and
  persists the choice per browser in the bd_ui_shell cookie. No database
  migration, no effect on other operators.
- lib/consoleNav.js groups the existing pages into Devices, Support, People,
  Activity and Settings. Every entry keeps its route, RBAC permission and
  panel-access section, so a role sees exactly the pages it could open
  before; the grouping is presentation only.
- views/partials/ux36-sidebar.ejs renders that model with proper
  aria-current/aria-expanded state and no duplicate navigation markup.
- public/css/ux36.css layers the new chrome on top of ux35.css without
  forking the --ux35-* token contract, so branding, wallpapers, fonts and
  light/dark/custom themes keep working in both shells.
- public/js/ux36-shell.js adds the one-open-group default, filter sync and
  the Settings switch; ux35-shell.js keeps owning drawer, resize and theme.
- Settings -> General gains a "Console interface" card so operators can opt
  in and out without a URL; ?ui=ux36 works as a support deep link.
- Settings deep links now accept ?tab=<topic> in addition to #topic.
- New nav.* and ux36.* keys in all 26 locales (real translations).
- Docs: CHANGELOG, UX wiki page, Web-Console wiki page, README, contributor
  attributions, and .cursor/rules/ux36-attribution.mdc so future UX 3.6
  commits keep the credit.

Tests: tests/ux36-shell.test.js, tests/ux36-pages.render.test.js and
tests/ux36-ui-shell.routes.test.js; ux35-ui-contract.test.js updated to
assert both shells. Full web-nodejs suite: 986 passed; the three failing
suites (users.routes, devices.routes, dashboardPairingUi) fail identically
on the untouched branch.

Refs #493
Refs #495
Reported-by: @rathlinus
Based-on: @rathlinus UX redesign (Refs #493, #495)

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-10 00:53:29 +01:00
UNITRONIX a426bf1a65 fix(console): dashboard agent pairing issues a one-time code, not the QR scanner
Główne asked operators to scan a QR while the product moved to short-code pairing, so the dashboard button and the /?activateAgent=1 deep link opened the wrong flow.

- Client-config card button and the sidebar entry (nav.pair_agent) open a pairing-code dialog: server address prefilled from the resolved client address, optional label, code generation, 10-minute countdown, copy.

- Codes are minted via the existing POST /api/panel/pairing/codes behind enrollment.approve; plaintext shown once, never logged. No new endpoint.

- The QR scanner stays reachable from the dialog (Scan agent QR) and from /pairing; the scanner modal title now names itself instead of reusing the old Activate agent label.

- New keys nav.pair_agent, dashboard.pair_with_code, pairing.scan_qr_agent, pairing.generating in all 26 locales; agents.* step 3 / button / body no longer present QR as the primary path.

- Test: web-nodejs/tests/dashboardPairingUi.test.js renders the view and asserts the code dialog wiring and the deep-link target.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-08 20:59:57 +01:00
UNITRONIX 46bb917c10 docs: lead Docker quick start with the all-in-one image
README and wiki quick-start blocks still showed only the legacy split
layout (docker-compose.quick.yml), although install.sh has defaulted to
the single container (ghcr.io/unitronix/betterdesk) since 3.3.114.

That mismatch also skews GHCR pull counters: a split install pulls two
manifests, an all-in-one install pulls one, so the AIO image looks
weaker than it is.

- README.md, docs/wiki/Home.md, docs/wiki/Installation.md: AIO first,
  split moved into a collapsible Legacy block with the 21114/21121 note
- docs/wiki/Panel-Updates.md: name both compose files
- CHANGELOG.md: [Unreleased] -> Changed entry

No code change; existing split deployments are unaffected.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-08 15:22:53 +01:00
UNITRONIX 1c291db101 docs(ports): one authoritative port cheat sheet, with verification
Port guidance was contradictory, and none of it matched the code.

- `docs/architecture/PORT_SECURITY.md` documented an API on `127.0.0.1:21120` that was never
  shipped (the real port is `21114`).
- `docs/wiki/Installation.md` told operators to expose the panel (`5000`) to WAN, which
  `docs/setup/REVERSE_PROXY.md` explicitly forbids.
- `betterdesk.sh` wrote a `firewall-notes.txt` with `21121` but without `21114`.
- `betterdesk.ps1` opened `5000`, `5443`, `21115`, `21118` and `21119` unconditionally.

New `docs/CONNECTION_PORTS.md` is now the single source of truth: port table with exposure
and failure mode, four ready-to-apply profiles (minimal / reverse-proxy+TLS recommended /
WSS-only / Docker), client-field map, what pairing actually requires, a common-mistakes
table and verification commands.

- `PORT_SECURITY.md` is marked historical and points at the new document; the wiki now
  refers to a profile instead of listing WAN ports.
- `betterdesk.sh` firewall notes include 21114 and separate WAN from localhost.
- `betterdesk.ps1` opens only the documented minimum (21116 TCP+UDP, 21117, Go API).
- `scripts/check-connection-ports.sh|.ps1` compare observed listeners with the chosen
  profile and fail on WAN-exposed panel ports or a mis-bound Client API.
- `scripts/check-port-docs.js` fails CI when the cheat sheet and the port constants in
  `constants.go` / `config.js` disagree, and when `21120` reappears as a live port.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-08 15:04:34 +01:00
UNITRONIX 76e1427a12 feat(rdclient): type-text keystrokes and Shift+symbol keyboard fixes
Add toolbar Type Text (KeyEvent.seq) for Winlogon/passwords where clipboard paste fails, and harden dead-key/Shift desync so symbols like ^ inject correctly.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-03 13:09:13 +01:00
UNITRONIX 3004e841cb fix(api): reset orphaned telemetry state on re-enrollment
Allow authorized fresh enrollment to clear persisted and in-memory replay state only when the peer ID is missing. Preserve replay state for active and soft-deleted peers, and add regression coverage and operator documentation.

Refs #484

Reported-by: @ab-tools

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-01 20:08:10 +01:00
UNITRONIX 23dc40c958 fix(security): harden panel and supply chain
Refs #477

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-10-30 16:25:01 +01:00
UNITRONIX fc6b202890 ci(docker): restore multi-arch AIO :dev with ARM-last soft-merge
Re-enable build-aio-arm64 for tag=dev / version-bump on dev (#476).
Run native ARM jobs after amd64; soft-merge publishes available digests
if ARM fails. Share GHA cache scopes between split and AIO builds.

Refs #476

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-10-30 08:28:06 +01:00
UNITRONIX 9eacc930bb feat(ui): replace Client Generator with BetterDesk Agents page
Retire the confusing in-panel ALPHA generator/build UI. /agents explains
incoming-only Support clients from BetterDesk-Client, Import for /portal,
pairing, and branding. /generator redirects to /agents.

Refs #413 #439 #446 #466 #474 #475

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-10-28 00:58:10 +01:00
UNITRONIX b6d968a355 docs(docker): clarify split VPS WSS and Client API routing
Map source-build vs GHCR updates, panel vs Client API ports, and
initiator_token_rejected diagnostics for reverse-proxy Docker installs
(Discussion #452).

Refs #452

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-10-21 01:42:00 +02:00
UNITRONIX 1b24b99d9b feat(generator): default Support agents to download-only (#466)
Import signed BetterDesk-Client releases instead of compiling on the panel host; mark build toolchain optional; add Główne → Aktywuj agenta pairing entry and Download Hub i18n.

Refs #466

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-10-21 01:05:28 +02:00
UNITRONIX 8242b435c5 fix(docker): allow Web Remote PunchHole on split compose (#465)
Console proxy source IPs are Docker bridge addresses, not loopback; default PANEL_SIGNAL_PROXY_CIDRS on the Go server so browser remote is not denied as initiator_not_registered.

Refs #465

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-10-20 18:06:16 +02:00
UNITRONIX 9355017901 fix(updates): recover from proxy timeout and harden Go rebuild
Long panel installs were surfacing as generic Request failed when a reverse
proxy cut the HTTP call around ~120s while applyUpdate kept running. Poll
install-status after gateway disconnect, clarify 502/504 errors, pin
GOTOOLCHAIN=local, and report spawn kill/timeout signals for #464.

Refs #464

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-10-19 11:02:39 +02:00
UNITRONIX db07c5c5af feat(auth): enforce idle timeout and single panel session per account
Server-side session policy replaces long-lived idle console logins: sliding
idle timeout, absolute max age, atomic replacement of prior sessions, IP/UA
audit metadata, and consistent expired-login redirects.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-10-19 10:19:56 +02:00
UNITRONIX 9d7a08e7ab feat(commercialization): group packages, billing periods, and RD reports
Modernize Commercialization on packages/sessions IA: Settings Time tab with
BILLING_TIMEZONE, group-only packages, monthly period history with midnight
split, Web Remote report overlay, pending_report in Sessions, and package
preview as a centered modal. Includes panel form polish and desktop-client
API notes.

Refs #456

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-10-18 22:45:17 +02:00
UNITRONIX 235c9c0706 security: implement Phase 0-3 remediation (deps, SQL ident, JWT, CSP, suite)
Bump axios/multer and npm overrides; add safeSqlIdent and multer cleanup;
harden JWT aud/iss/nbf; CSP without unsafe-eval via static protobuf build
and data-bd-call delegation; ship Security Test Suite v1.2.0 and docs.
Ignore generated RdClient protobuf artifacts (~40k lines) — rebuild locally
with npm run protocols:rdclient.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-10-17 15:33:48 +02:00
UNITRONIX 33199413fc fix: resolve relay metadata and settings navigation issues
Fix WSS relay peer metadata, align UX 3.5 Settings navigation, and document trusted proxy requirements for OIDC SSO. Add regression coverage across Go and Node.js paths.\n\nThanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-10-14 22:48:31 +02:00
UNITRONIX ae47747929 feat(oidc): add SSO-first login and role overrides
Add configurable SSO-first login with local recovery paths and allow administrators to manage OIDC roles without losing manual overrides when no group mapping matches. Keep explicit OIDC group mappings authoritative and preserve LDAP provider-managed roles.

Refs #443

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-10-12 11:14:20 +02:00
UNITRONIX d57fe3dc49 feat(generator): add generic agent releases and QR activation
Adds local verification and distribution of signed generic incoming-only agent releases, mobile-friendly QR activation, and the supporting generator interfaces. Includes the current staged console, documentation, localization, and builder changes.\n\nThanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-10-11 00:43:26 +02:00
UNITRONIX bea83ba2e9 fix(generator): align local builds with provider capabilities
Resolve embedded artifacts from the validated manifest, expose only targets supported by the local toolchain, and keep per-target failures isolated. Update generator APIs, UI, documentation, and regression coverage.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-10-05 06:55:59 +02:00
UNITRONIX 6af0c5a65a feat(remote): add gated RDP/VNC dependency updates
Pin the upstream gateway source, verify checksums and licenses in CI, and prepare reviewed dependency update PRs. Keep runtime activation fail-closed while the VNC GPL dependency remains outside the project policy.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-10-04 00:56:07 +02:00
UNITRONIX abc00b8804 feat(guest): enforce scoped guest access lifecycle
Bind guest WebSocket sessions to a single target peer, enforce grant lifecycle and atomic usage, add the guest issuer scope, and document the password-less security boundary.\n\nRefs #440\n\nThanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-10-03 10:22:20 +02:00
UNITRONIX f762653a5b fix(docker): load bootstrap helpers before path checks
Prevent split server and console wrappers from calling file_exists_as_betterdesk before the bootstrap helper is loaded. Add contract coverage and improve #385 diagnostics for database-store and proxy/session failures.

Refs #385

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-10-01 19:58:05 +02:00
UNITRONIX 602c4e798b fix(docker): preserve secrets on hardened bind mounts
Refs #424

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-09-26 03:02:17 +02:00
UNITRONIX ee913ea910 fix(docker): serialize split admin bootstrap
Refs #385

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-09-26 02:25:51 +02:00
UNITRONIX bda11200cd fix(installer): configure local PostgreSQL HBA rules
Add idempotent loopback pg_hba.conf rules before the native PostgreSQL connection test. Cover the installer path with a mocked regression test, CI checks, and operator documentation for Rocky/RHEL systems.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-09-25 00:12:38 +02:00
UNITRONIX 856002d389 fix(split-docker): unlock connection strategy settings
Allow the split console to read and write the P2P, relay, NAT, and initiator policy through the Go server's shared database API. Apply validated changes atomically at runtime, keep native systemd and compose paths unchanged, and cover the flow with regression tests and Docker image checks.

Refs #432

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-09-25 00:04:22 +02:00
UNITRONIX ce44e3ad79 feat(auth): allow scoped private OIDC endpoints
Add an explicit RFC1918 and IPv6 ULA allowlist for on-premises OIDC providers while retaining SSRF protections for loopback, link-local, metadata, multicast, and unspecified destinations. Apply destination validation to discovery, token, UserInfo, redirects, and actual network dials.\n\nRefs #435\n\nThanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-09-24 23:45:18 +02:00
UNITRONIX 717630d26c fix(web-remote): auto-tune mobile RDClient sessions
Add automatic mobile codec, FPS, touch, lifecycle, and relay diagnostics while preserving the HTTP H.264 fallback. Avoid opening file-transfer relays during the initial session and document the HTTPS/HTTP behavior.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-09-24 22:36:49 +02:00
UNITRONIX d514ffc18b feat(devices): queue reversible desktop connection mode
Operators can switch a BetterDesk Desktop client between normal and incoming-only. The command is stored per device and delivered only inside the signed telemetry envelope.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-09-22 08:40:08 +02:00
UNITRONIX 49d56e9519 docs: remove mobile screenshot references
Remove mobile screenshots that did not meet the quality bar from the README and Web Console documentation.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-09-20 17:14:20 +02:00
UNITRONIX 06a3e33b86 docs: add BetterDesk panel screenshot gallery
Add English UX 3.5 visual previews to the README and Web Console documentation.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-09-20 15:13:28 +02:00
UNITRONIX 854d291c3c Complete BetterDesk Support generator workflow 2026-09-19 18:53:19 +02:00
UNITRONIX 78edc5eaf4 feat: add BetterDesk management capabilities
Add allowlisted configuration management, permission diagnostics, safe service control, and repair workflows across native and Docker installers. Integrate panel capability checks with broker-backed writes and rollback, and document/test the lifecycle contract.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
2026-09-18 20:45:57 +02:00