From 553ce6ae636c10536639d8c15893e182c9f0c6ee Mon Sep 17 00:00:00 2001 From: clover caruso Date: Fri, 16 Oct 2026 02:12:59 -0700 Subject: [PATCH] Fix API account creation and shares list scrolling Allow the host service to reach Copyparty through Podman port forwarding, deriving its allowlist from the declared bridge subnet. Account creation and rotation now finish without reload timeouts. Bound the Shares list during refresh errors and short viewports. Anchor hidden live-status text so table rows cannot expand the outer document. Verified production-equivalent sandbox creation/rotation, single requests on double-click, document bounds, sticky headers, last-row keyboard access, and live-status accessibility. Assisted-by: gpt-6.1-sol --- dashboard/web/pages/Shares.css | 4 ++++ dashboard/web/styles.css | 2 +- nixos/configuration.nix | 3 ++- tools/copyparty.md | 18 ++++++++++++++++++ 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/dashboard/web/pages/Shares.css b/dashboard/web/pages/Shares.css index 0eda47842115d08736414e5031c673e894fd180d..0ae44f0a121e70da141b7e4442f405dbf200b26a 100644 --- a/dashboard/web/pages/Shares.css +++ b/dashboard/web/pages/Shares.css @@ -1,3 +1,7 @@ +.main:has(> .shares-page) { display: flex; flex-direction: column; overflow: hidden; } +.main > .shares-page { flex: 1; min-height: 0; height: auto; width: 100%; } +.shares-page .list-body { overflow: hidden; } +.shares-page .list-body > .fill { min-height: 0; } .shares-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; } .shares-toolbar .search-box { margin-left: auto; width: 240px; } .shares-toolbar .count { opacity: 0.7; } diff --git a/dashboard/web/styles.css b/dashboard/web/styles.css index ea490d4eea643ec4dbec4bf4d9b0366b01d6389d..ead64201830c9924bec0a159e6ccbd8646c6ec82 100644 --- a/dashboard/web/styles.css +++ b/dashboard/web/styles.css @@ -865,7 +865,7 @@ td.actions :is(button, a):focus-visible { outline-offset: -2px; } } .copy:hover { background: var(--accent-wash); } -.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } +.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .skeleton { display: block; diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 17136db2c05d236a8fc2a718c90cbc5c229a1759..46019971f6b0a28638cc43d7cd68c4d459ce1de5 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -78,6 +78,7 @@ in boot.supportedFilesystems = [ "zfs" ]; virtualisation.podman.enable = true; + virtualisation.containers.containersConf.settings.network.default_subnet = "10.88.0.0/16"; virtualisation.libvirtd.enable = true; virtualisation.libvirtd.qemu.swtpm.enable = true; systemd.services.podman.environment.LOGGING = "--log-level=warn"; @@ -214,7 +215,7 @@ in DeviceAllow = [ "/dev/zfs rw" "char-pts rw" ] ++ lib.optional (builtins.elem "nvidia" config.services.xserver.videoDrivers) "char-nvidia* rw"; RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" ]; IPAddressDeny = "any"; - IPAddressAllow = [ "127.0.0.1/32" ]; + IPAddressAllow = [ "127.0.0.1/32" config.virtualisation.containers.containersConf.settings.network.default_subnet ]; Restart = "always"; RestartSec = 2; }; diff --git a/tools/copyparty.md b/tools/copyparty.md index 32e97c1ad1bc55b8c3c748efd9ace59843f84ff0..a87d8bb153ac36f9b520941c4dc4cff9b00289c0 100644 --- a/tools/copyparty.md +++ b/tools/copyparty.md @@ -68,3 +68,21 @@ one-second HTTPS HEAD sampling bounded total public unavailability across release activation and the move to 55.12 seconds over three intervals. Restricted plan, database/config backups, frozen job, and result evidence are in `/var/lib/studio/copyparty-cutover/20261016T082910Z-424b5410`. + +## 2026-10-16 account creation timeout + +The production host unit allowed only loopback traffic, but Podman's loopback +port forwarding translates requests onto its bridge. A read-only health probe +under the same IP restrictions timed out after 3.003 seconds; allowing the +existing Podman subnet returned HTTP 200 in 0.0013 seconds. Account creation +waited for config reload and its recovery reload before returning an error. +The host allowlist now derives the bridge range from the declared Podman default +subnet, preserving the existing network. + +The hardened preview created an account in 0.54 seconds and rotated its +password in 0.60 seconds. Double-clicked submits sent one request each. +Shares-list checks also caught absolute copy-status text expanding the document +outside its scroller. Anchoring that hidden text and bounding the list during +refresh errors kept the document at 720 × 320 in a 720 × 320 viewport, with +only the table scrolling. Its headers and last-row keyboard actions stayed +reachable; the hidden live status remained in the accessibility tree. -- 2.54.1