web: allow direct IP dashboard and worker access #26

Merged
schmidt.florian merged 1 commits from 25-ip-access into master 2026-11-15 16:42:14 +01:00
Owner

Closes #25

What and why

Direct IP access returned HTTP 400 because the server required the installer hostname. Remote HTTP was also rejected and HTTPS-only cookies prevented HTTP login. Version 1.2.3 accepts HTTP/HTTPS access by IP or hostname without registration, ignores legacy FINALTOKEN_PUBLIC_ORIGIN and checks browser mutation Origin against the actual request Host. Access keys, HttpOnly/SameSite cookies, CSRF protection and machine/profile login routing remain required.

Workers accept HTTP/HTTPS origins through shared validation. Proxmox installation no longer requires --domain, health checks use no forged Host and success output lists container IP URLs. Existing keys, profiles, settings, history and updater trust boundaries are preserved. No proxy is added.

Decisions

Updates D14 and R8 for the user's explicit requirement: direct HTTP IP access on port 5187, with optional HTTPS/proxy. HTTP transport is unencrypted. Existing weekly sustainability analysis and CLI credential ownership remain unchanged.

How it was tested

On the 1.2.2 baseline, both new HTTP tests failed with 400; the hostname-free setup, HTTP worker URL and domain-free guest configuration regressions failed before production changes.

  • dotnet build FinalToken.slnx -c Release: 0 warnings/errors.
  • dotnet test --solution FinalToken.slnx -c Release --no-build: 447 passed.
  • python -B tools/test_web_dashboard.py: 3 passed, using real local web/worker processes and synthetic CLI. Includes direct IP Host with the old placeholder configuration, HTTP login cookie, authenticated/unauthenticated API, logout, bad CSRF/foreign Origin rejection and HTTPS cookie through a simulated proxy.
  • python -B tools/proxmox/test_installer.py: 41 passed.
  • python -B tools/proxmox/test_update.py: 7 passed.
  • python -B tools/docs/check_docs.py: 0 errors.
  • python -B tools/check_public.py: 0 pattern findings; two source icon binaries are not content-scanned (also reported for index copies).
  • bash -n tools/proxmox.sh; bash -n tools/proxmox-update.sh; git diff --check: passed.

No browser rendering, live Linux/LXC deployment of this correction, real cross-machine transport or provider authorization was exercised. No visible view changed. The user's previous logs establish an earlier Debian 13 native publish/update, not deployment of this fix.

Closes #25 ## What and why Direct IP access returned HTTP 400 because the server required the installer hostname. Remote HTTP was also rejected and HTTPS-only cookies prevented HTTP login. Version 1.2.3 accepts HTTP/HTTPS access by IP or hostname without registration, ignores legacy FINALTOKEN_PUBLIC_ORIGIN and checks browser mutation Origin against the actual request Host. Access keys, HttpOnly/SameSite cookies, CSRF protection and machine/profile login routing remain required. Workers accept HTTP/HTTPS origins through shared validation. Proxmox installation no longer requires --domain, health checks use no forged Host and success output lists container IP URLs. Existing keys, profiles, settings, history and updater trust boundaries are preserved. No proxy is added. ## Decisions Updates D14 and R8 for the user's explicit requirement: direct HTTP IP access on port 5187, with optional HTTPS/proxy. HTTP transport is unencrypted. Existing weekly sustainability analysis and CLI credential ownership remain unchanged. ## How it was tested On the 1.2.2 baseline, both new HTTP tests failed with 400; the hostname-free setup, HTTP worker URL and domain-free guest configuration regressions failed before production changes. - dotnet build FinalToken.slnx -c Release: 0 warnings/errors. - dotnet test --solution FinalToken.slnx -c Release --no-build: 447 passed. - python -B tools/test_web_dashboard.py: 3 passed, using real local web/worker processes and synthetic CLI. Includes direct IP Host with the old placeholder configuration, HTTP login cookie, authenticated/unauthenticated API, logout, bad CSRF/foreign Origin rejection and HTTPS cookie through a simulated proxy. - python -B tools/proxmox/test_installer.py: 41 passed. - python -B tools/proxmox/test_update.py: 7 passed. - python -B tools/docs/check_docs.py: 0 errors. - python -B tools/check_public.py: 0 pattern findings; two source icon binaries are not content-scanned (also reported for index copies). - bash -n tools/proxmox.sh; bash -n tools/proxmox-update.sh; git diff --check: passed. No browser rendering, live Linux/LXC deployment of this correction, real cross-machine transport or provider authorization was exercised. No visible view changed. The user's previous logs establish an earlier Debian 13 native publish/update, not deployment of this fix.
schmidt.florian added the type/bugtype/decision labels 2026-11-15 16:38:43 +01:00
schmidt.florian self-assigned this 2026-11-15 16:38:43 +01:00
schmidt.florian added 1 commit 2026-11-15 16:38:44 +01:00
Remove fixed-host and HTTPS-only deployment requirements so the dashboard
works at the container IP on HTTP port 5187. Validate browser mutations
against the actual request host and retain access keys and CSRF protection.
Ignore legacy public-origin settings and make Proxmox setup hostname-free.
Update D14 and regression coverage for version 1.2.3.

Refs #25
Author
Owner

Agent review: pass on 480b73d899

## Blocking

None.

Notes

  • tools/proxmox/host.py:77: The --server-url help still says "Existing HTTPS dashboard". Update it to HTTP or HTTPS to match the accepted worker URLs and deployment guide.
  • tools/test_web_dashboard.py:178: The new direct-IP login test checks cookie attributes, then sends the cookie manually. A future cookie-jar or browser regression could also verify automatic storage and return over HTTP. The current synthetic Host tests verify server behavior, not browser cookie policy or actual cross-machine routing.

Checked

Reviewed head 480b73d899b6f3907ef86817128f6b845d7b28ec in a separate detached worktree. Read PR #26, issue #25 and its comments, the complete diff against origin/master, root and touched-project AGENTS.md files, project mind, relevant requirements and decisions (especially D1, D2, D5 and revised D14), and deployment documentation. No earlier PR comments or reviews existed. The PR carries type/decision and updates D14/R8 for the explicit direct-IP HTTP requirement.

Ran from the review worktree root on Windows:

  • dotnet build FinalToken.slnx -c Release: passed, 0 warnings and 0 errors.
  • dotnet test --solution FinalToken.slnx -c Release --no-build: 447 passed, 0 failed, 0 skipped.
  • python -B tools/test_web_dashboard.py: 3 passed. Includes legacy-origin/direct-IP Host access, HTTP cookie attributes, authenticated/anonymous API behavior, CSRF/foreign-Origin rejection, HTTPS-origin Secure cookies, and real local synthetic worker/login process integration.
  • python -B tools/proxmox/test_installer.py: 41 passed.
  • python -B tools/proxmox/test_update.py: 7 passed.
  • python -B tools/docs/check_docs.py: 0 errors.
  • python -B tools/check_public.py: 0 pattern findings; source icon binaries and their index copies were not content-scanned.
  • bash -n tools/proxmox.sh, bash -n tools/proxmox-update.sh, and git diff --check origin/master...HEAD: passed.

No production code changed. No browser rendering, Linux/LXC deployment, NativeAOT publish, real cross-machine traffic or real provider login was exercised. No visible view changed in this PR.

**Agent review: pass** on 480b73d899b6f3907ef86817128f6b845d7b28ec ## Blocking None. ## Notes - `tools/proxmox/host.py:77`: The `--server-url` help still says "Existing HTTPS dashboard". Update it to HTTP or HTTPS to match the accepted worker URLs and deployment guide. - `tools/test_web_dashboard.py:178`: The new direct-IP login test checks cookie attributes, then sends the cookie manually. A future cookie-jar or browser regression could also verify automatic storage and return over HTTP. The current synthetic Host tests verify server behavior, not browser cookie policy or actual cross-machine routing. ## Checked Reviewed head `480b73d899b6f3907ef86817128f6b845d7b28ec` in a separate detached worktree. Read PR #26, issue #25 and its comments, the complete diff against origin/master, root and touched-project AGENTS.md files, project mind, relevant requirements and decisions (especially D1, D2, D5 and revised D14), and deployment documentation. No earlier PR comments or reviews existed. The PR carries type/decision and updates D14/R8 for the explicit direct-IP HTTP requirement. Ran from the review worktree root on Windows: - `dotnet build FinalToken.slnx -c Release`: passed, 0 warnings and 0 errors. - `dotnet test --solution FinalToken.slnx -c Release --no-build`: 447 passed, 0 failed, 0 skipped. - `python -B tools/test_web_dashboard.py`: 3 passed. Includes legacy-origin/direct-IP Host access, HTTP cookie attributes, authenticated/anonymous API behavior, CSRF/foreign-Origin rejection, HTTPS-origin Secure cookies, and real local synthetic worker/login process integration. - `python -B tools/proxmox/test_installer.py`: 41 passed. - `python -B tools/proxmox/test_update.py`: 7 passed. - `python -B tools/docs/check_docs.py`: 0 errors. - `python -B tools/check_public.py`: 0 pattern findings; source icon binaries and their index copies were not content-scanned. - `bash -n tools/proxmox.sh`, `bash -n tools/proxmox-update.sh`, and `git diff --check origin/master...HEAD`: passed. No production code changed. No browser rendering, Linux/LXC deployment, NativeAOT publish, real cross-machine traffic or real provider login was exercised. No visible view changed in this PR.
schmidt.florian merged commit 284e692993 into master 2026-11-15 16:42:14 +01:00
schmidt.florian deleted branch 25-ip-access 2026-11-15 16:42:15 +01:00
Sign in to join this conversation.