Skip to content

feat: SFTP access to game servers (spec 040) - #1074

Merged
ValgulNecron merged 48 commits into
masterfrom
feat/040-sftp-access
Nov 23, 2026
Merged

ValgulNecron merged 48 commits into
masterfrom
feat/040-sftp-access

Conversation

@ValgulNecron

@ValgulNecron ValgulNecron commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Spec 040: SFTP access to game server files (issue #1051). Every SFTP login and file operation goes through the API as the signed-in user; the SFTP endpoint itself is the sftp/ component (GameplanePanel/sftp, pointer at sftp#2's merge).

  • Agent: files/stat, files/rename, streamed PUT files/stream (atomic commit, offset prefix copy, free-space and size checks).
  • API: SSH keys and one generated SFTP password per user, SFTP login (user, user+server, user+ns/server), session tokens with keepalive slide and revocation, per-cluster SFTP endpoint and service tokens, shared file-access check (rbac.FileAccess) for the Files tab and SFTP, GET /sftp/v1/servers with per-server write, audit source sftp, rename audit paths, migrations 025/026.
  • Operator: file-only pod for stopped or sleeping servers, never created while a start is wanted.
  • Chart: optional sftp component (host key Secret, service token, NetworkPolicy), files.maxUploadSize.
  • Web: Settings → SFTP (keys, password), admin SFTP access per user, cluster SFTP endpoint and tokens, streamed uploads with per-file progress in the Files tab, "server is starting" state. Settings nav split into ACCOUNT / SERVER. Designs in design.fig (re-applied on master's spec 030 design) with export.
  • Spec amendment (valgul 2026-11-23): uploads stay atomic; an interrupted upload leaves no partial file and is sent again (SC-003, US2 scenario 2, FR-014). Only downloads resume.

Tests

New unit, envtest and E2E tests (bucket sftp; remote endpoint as the sftp-remote-endpoint subtest of TestMultiCluster_TokenRemoteGrant, renamed from TestMultiCluster_MCPTokenRemoteGrant). Existing-test edits were approved by valgul row by row (T002 sign-off rows 1–11).

Changelog

changelog/unreleased/1074-sftp-access.md.


Generated by Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
…T005-T009)

GET /files/stat returns one Entry (lstat, never follows a symlink).
POST /files/rename {from,to,overwrite} renames with renameat on
descriptors from the rooted walk; overwrite=false uses RENAME_NOREPLACE.
PUT /files/stream?path=&offset=N writes a raw body through a temp file,
copying the first N bytes of the existing file first for resume; it
checks free space before writing (507), caps size with the new
--max-upload-bytes flag (default 20 GiB, 413) and leaves an existing file
untouched on any error or cancel. ENOSPC now answers 507 on every write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@ValgulNecron ValgulNecron added area: agent in-pod sidecar area: api REST/WebSocket gateway area: optional-components sentinel, capture-sidecar, mcp-server, tunnel, audit-syslog-bridge, telemetry-receiver type: feature New capability or user-facing addition labels Nov 23, 2026 — with Claude
@ValgulNecron ValgulNecron self-assigned this Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 230 files, which is 130 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

CodeRabbit couldn't verify your organization's usage billing state, so no usage-priced review was started. Retry after the billing service recovers.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 84e4856 and fdf8d6b.

Files ignored due to path filters: 269

  • assets/design-export/fig/1-46380.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46381.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46382.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46383.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46384.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46385.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46386.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46387.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46388.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46390.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46391.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46392.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46393.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46394.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46395.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46396.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46397.fig is excluded by !**/*.fig
  • assets/design-export/fig/1-46398.fig is excluded by !**/*.fig
  • assets/design-export/fig/1006926387-2294.fig is excluded by !**/*.fig
  • assets/design-export/fig/1006926387-2310.fig is excluded by !**/*.fig
  • assets/design-export/fig/1163467012-1553.fig is excluded by !**/*.fig
  • assets/design-export/fig/1163467012-2214.fig is excluded by !**/*.fig
  • assets/design-export/fig/1163467012-2492.fig is excluded by !**/*.fig
  • assets/design-export/fig/1163467012-259.fig is excluded by !**/*.fig
  • assets/design-export/fig/1163467012-2680.fig is excluded by !**/*.fig
  • assets/design-export/fig/1163467012-2868.fig is excluded by !**/*.fig
  • assets/design-export/fig/1163467012-3056.fig is excluded by !**/*.fig
  • assets/design-export/fig/1163467012-3228.fig is excluded by !**/*.fig
  • assets/design-export/fig/1163467012-906.fig is excluded by !**/*.fig
  • assets/design-export/fig/1274632774-1258.fig is excluded by !**/*.fig
  • assets/design-export/fig/1274632774-130.fig is excluded by !**/*.fig
  • assets/design-export/fig/1274632774-1722.fig is excluded by !**/*.fig
  • assets/design-export/fig/1274632774-2112.fig is excluded by !**/*.fig
  • assets/design-export/fig/1274632774-2492.fig is excluded by !**/*.fig
  • assets/design-export/fig/1274632774-2877.fig is excluded by !**/*.fig
  • assets/design-export/fig/1274632774-3217.fig is excluded by !**/*.fig
  • assets/design-export/fig/1274632774-3559.fig is excluded by !**/*.fig
  • assets/design-export/fig/1274632774-3890.fig is excluded by !**/*.fig
  • assets/design-export/fig/1274632774-4001.fig is excluded by !**/*.fig
  • assets/design-export/fig/1274632774-4260.fig is excluded by !**/*.fig
  • assets/design-export/fig/1274632774-470.fig is excluded by !**/*.fig
  • assets/design-export/fig/1274632774-907.fig is excluded by !**/*.fig
  • assets/design-export/fig/1494270493-26.fig is excluded by !**/*.fig
  • assets/design-export/fig/2044649516-1099.fig is excluded by !**/*.fig
  • assets/design-export/fig/2044649516-13.fig is excluded by !**/*.fig
  • assets/design-export/fig/2044649516-1687.fig is excluded by !**/*.fig
  • assets/design-export/fig/2044649516-2282.fig is excluded by !**/*.fig
  • assets/design-export/fig/2044649516-2862.fig is excluded by !**/*.fig
  • assets/design-export/fig/2044649516-2982.fig is excluded by !**/*.fig
  • assets/design-export/fig/2044649516-579.fig is excluded by !**/*.fig
  • assets/design-export/fig/46479436-2.fig is excluded by !**/*.fig
  • assets/design-export/fig/901437436-1.fig is excluded by !**/*.fig
  • assets/design-export/fig/901437436-1393.fig is excluded by !**/*.fig
  • assets/design-export/fig/901437436-1857.fig is excluded by !**/*.fig
  • assets/design-export/fig/901437436-2321.fig is excluded by !**/*.fig
  • assets/design-export/fig/901437436-2785.fig is excluded by !**/*.fig
  • assets/design-export/fig/901437436-3249.fig is excluded by !**/*.fig
  • assets/design-export/fig/901437436-3713.fig is excluded by !**/*.fig
  • assets/design-export/fig/901437436-465.fig is excluded by !**/*.fig
  • assets/design-export/fig/901437436-929.fig is excluded by !**/*.fig
  • assets/design-export/fig/A8vGwM.fig is excluded by !**/*.fig
  • assets/design-export/fig/B57dG.fig is excluded by !**/*.fig
  • assets/design-export/fig/Bbnga.fig is excluded by !**/*.fig
  • assets/design-export/fig/BdmAW.fig is excluded by !**/*.fig
  • assets/design-export/fig/Be7ZW.fig is excluded by !**/*.fig
  • assets/design-export/fig/BguST.fig is excluded by !**/*.fig
  • assets/design-export/fig/Bq2Yg.fig is excluded by !**/*.fig
  • assets/design-export/fig/C2LQE4.fig is excluded by !**/*.fig
  • assets/design-export/fig/C5Aoe.fig is excluded by !**/*.fig
  • assets/design-export/fig/C9bR6.fig is excluded by !**/*.fig
  • assets/design-export/fig/Cb3eC.fig is excluded by !**/*.fig
  • assets/design-export/fig/D9QYZ.fig is excluded by !**/*.fig
  • assets/design-export/fig/DBQyF.fig is excluded by !**/*.fig
  • assets/design-export/fig/DMnEi.fig is excluded by !**/*.fig
  • assets/design-export/fig/DWztv.fig is excluded by !**/*.fig
  • assets/design-export/fig/Dpb9f.fig is excluded by !**/*.fig
  • assets/design-export/fig/DxKOh.fig is excluded by !**/*.fig
  • assets/design-export/fig/E9EEv0.fig is excluded by !**/*.fig
  • assets/design-export/fig/EKJyM.fig is excluded by !**/*.fig
  • assets/design-export/fig/EWrn0.fig is excluded by !**/*.fig
  • assets/design-export/fig/EcoGD.fig is excluded by !**/*.fig
  • assets/design-export/fig/F9pUrx.fig is excluded by !**/*.fig
  • assets/design-export/fig/FBiMN.fig is excluded by !**/*.fig
  • assets/design-export/fig/FOVMf.fig is excluded by !**/*.fig
  • assets/design-export/fig/GR1G9.fig is excluded by !**/*.fig
  • assets/design-export/fig/GsofJ.fig is excluded by !**/*.fig
  • assets/design-export/fig/HVhmb.fig is excluded by !**/*.fig
  • assets/design-export/fig/Hy9r0.fig is excluded by !**/*.fig
  • assets/design-export/fig/IBUqJ.fig is excluded by !**/*.fig
  • assets/design-export/fig/IMSD5.fig is excluded by !**/*.fig
  • assets/design-export/fig/IdbiB.fig is excluded by !**/*.fig
  • assets/design-export/fig/IyMFM.fig is excluded by !**/*.fig
  • assets/design-export/fig/IzuY2.fig is excluded by !**/*.fig
  • assets/design-export/fig/J8GzM9.fig is excluded by !**/*.fig
  • assets/design-export/fig/K5XinZ.fig is excluded by !**/*.fig
  • assets/design-export/fig/KJdxg.fig is excluded by !**/*.fig
  • assets/design-export/fig/KhYNc.fig is excluded by !**/*.fig
  • assets/design-export/fig/LYPXU.fig is excluded by !**/*.fig
  • assets/design-export/fig/M2sA4u.fig is excluded by !**/*.fig
  • assets/design-export/fig/MaoHP.fig is excluded by !**/*.fig
  • assets/design-export/fig/N2nTf.fig is excluded by !**/*.fig
  • assets/design-export/fig/NKiqf.fig is excluded by !**/*.fig
  • assets/design-export/fig/NLDDv.fig is excluded by !**/*.fig
  • assets/design-export/fig/NLu2I.fig is excluded by !**/*.fig
  • assets/design-export/fig/Ne5TA.fig is excluded by !**/*.fig
  • assets/design-export/fig/NqaaU.fig is excluded by !**/*.fig
  • assets/design-export/fig/O08uaD.fig is excluded by !**/*.fig
  • assets/design-export/fig/O5kaV.fig is excluded by !**/*.fig
  • assets/design-export/fig/OC804.fig is excluded by !**/*.fig
  • assets/design-export/fig/OecJ5.fig is excluded by !**/*.fig
  • assets/design-export/fig/QFEg9.fig is excluded by !**/*.fig
  • assets/design-export/fig/QQtUD.fig is excluded by !**/*.fig
  • assets/design-export/fig/QgW58.fig is excluded by !**/*.fig
  • assets/design-export/fig/QpEvu.fig is excluded by !**/*.fig
  • assets/design-export/fig/RC3Kf.fig is excluded by !**/*.fig
  • assets/design-export/fig/RS0KZ.fig is excluded by !**/*.fig
  • assets/design-export/fig/RodrS.fig is excluded by !**/*.fig
  • assets/design-export/fig/SUcad.fig is excluded by !**/*.fig
  • assets/design-export/fig/SUtGZ.fig is excluded by !**/*.fig
  • assets/design-export/fig/SeizD.fig is excluded by !**/*.fig
  • assets/design-export/fig/T1wkiT.fig is excluded by !**/*.fig
  • assets/design-export/fig/T70dJ.fig is excluded by !**/*.fig
  • assets/design-export/fig/TBvTC.fig is excluded by !**/*.fig
  • assets/design-export/fig/TE2jI.fig is excluded by !**/*.fig
  • assets/design-export/fig/U9xSg.fig is excluded by !**/*.fig
  • assets/design-export/fig/UCNBm.fig is excluded by !**/*.fig
  • assets/design-export/fig/UdnBT.fig is excluded by !**/*.fig
  • assets/design-export/fig/Uzzje.fig is excluded by !**/*.fig
  • assets/design-export/fig/VM7ro.fig is excluded by !**/*.fig
  • assets/design-export/fig/VctzT.fig is excluded by !**/*.fig
  • assets/design-export/fig/WZdnw.fig is excluded by !**/*.fig
  • assets/design-export/fig/Wj0V4.fig is excluded by !**/*.fig
  • assets/design-export/fig/WrmU5.fig is excluded by !**/*.fig
  • assets/design-export/fig/X405l.fig is excluded by !**/*.fig
  • assets/design-export/fig/XR0f9.fig is excluded by !**/*.fig
  • assets/design-export/fig/YN8cE.fig is excluded by !**/*.fig
  • assets/design-export/fig/YPKbV.fig is excluded by !**/*.fig
  • assets/design-export/fig/Z0oyh.fig is excluded by !**/*.fig
  • assets/design-export/fig/ZU1BG.fig is excluded by !**/*.fig
  • assets/design-export/fig/ZUAq1.fig is excluded by !**/*.fig
  • assets/design-export/fig/ZlLf0.fig is excluded by !**/*.fig
  • assets/design-export/fig/a7o9C.fig is excluded by !**/*.fig
  • assets/design-export/fig/aMU7O.fig is excluded by !**/*.fig
  • assets/design-export/fig/akr4I.fig is excluded by !**/*.fig
  • assets/design-export/fig/atqRh.fig is excluded by !**/*.fig
  • assets/design-export/fig/b4eaUf.fig is excluded by !**/*.fig
  • assets/design-export/fig/bYDHC.fig is excluded by !**/*.fig
  • assets/design-export/fig/cDiNb.fig is excluded by !**/*.fig
  • assets/design-export/fig/dBILX.fig is excluded by !**/*.fig
  • assets/design-export/fig/dQV9N.fig is excluded by !**/*.fig
  • assets/design-export/fig/dhPtX.fig is excluded by !**/*.fig
  • assets/design-export/fig/dxdEi.fig is excluded by !**/*.fig
  • assets/design-export/fig/e9FnC.fig is excluded by !**/*.fig
  • assets/design-export/fig/e9lV4.fig is excluded by !**/*.fig
  • assets/design-export/fig/eGbsg.fig is excluded by !**/*.fig
  • assets/design-export/fig/epZO2.fig is excluded by !**/*.fig
  • assets/design-export/fig/fbBqA.fig is excluded by !**/*.fig
  • assets/design-export/fig/g5mEpx.fig is excluded by !**/*.fig
  • assets/design-export/fig/gWqMD.fig is excluded by !**/*.fig
  • assets/design-export/fig/gX7um.fig is excluded by !**/*.fig
  • assets/design-export/fig/hlwx3.fig is excluded by !**/*.fig
  • assets/design-export/fig/hmPL7.fig is excluded by !**/*.fig
  • assets/design-export/fig/i4L0M.fig is excluded by !**/*.fig
  • assets/design-export/fig/iLm38.fig is excluded by !**/*.fig
  • assets/design-export/fig/iYUWc.fig is excluded by !**/*.fig
  • assets/design-export/fig/j88bl0.fig is excluded by !**/*.fig
  • assets/design-export/fig/jXykV.fig is excluded by !**/*.fig
  • assets/design-export/fig/l64bd.fig is excluded by !**/*.fig
  • assets/design-export/fig/l7TRz9.fig is excluded by !**/*.fig
  • assets/design-export/fig/lCTci.fig is excluded by !**/*.fig
  • assets/design-export/fig/lWvcv.fig is excluded by !**/*.fig
  • assets/design-export/fig/lhKzN.fig is excluded by !**/*.fig
  • assets/design-export/fig/m5kOm4.fig is excluded by !**/*.fig
  • assets/design-export/fig/mrF6f.fig is excluded by !**/*.fig
  • assets/design-export/fig/n2qdi.fig is excluded by !**/*.fig
  • assets/design-export/fig/n6Xlo.fig is excluded by !**/*.fig
  • assets/design-export/fig/nGJE1.fig is excluded by !**/*.fig
  • assets/design-export/fig/nNGDX.fig is excluded by !**/*.fig
  • assets/design-export/fig/o1uEP.fig is excluded by !**/*.fig
  • assets/design-export/fig/o4LH8W.fig is excluded by !**/*.fig
  • assets/design-export/fig/oMuyw.fig is excluded by !**/*.fig
  • assets/design-export/fig/oPF1n.fig is excluded by !**/*.fig
  • assets/design-export/fig/oyoTs.fig is excluded by !**/*.fig
  • assets/design-export/fig/p8QSPq.fig is excluded by !**/*.fig
  • assets/design-export/fig/pnAbF.fig is excluded by !**/*.fig
  • assets/design-export/fig/pszxE.fig is excluded by !**/*.fig
  • assets/design-export/fig/q31B6w.fig is excluded by !**/*.fig
  • assets/design-export/fig/qFLfB.fig is excluded by !**/*.fig
  • assets/design-export/fig/r0heh.fig is excluded by !**/*.fig
  • assets/design-export/fig/r139UP.fig is excluded by !**/*.fig
  • assets/design-export/fig/rJt1I.fig is excluded by !**/*.fig
  • assets/design-export/fig/sSISK.fig is excluded by !**/*.fig
  • assets/design-export/fig/t3IY3u.fig is excluded by !**/*.fig
  • assets/design-export/fig/t56aLu.fig is excluded by !**/*.fig
  • assets/design-export/fig/tSOeI.fig is excluded by !**/*.fig
  • assets/design-export/fig/tooKB.fig is excluded by !**/*.fig
  • assets/design-export/fig/tr6cE.fig is excluded by !**/*.fig
  • assets/design-export/fig/uCA23.fig is excluded by !**/*.fig
  • assets/design-export/fig/uMiwd.fig is excluded by !**/*.fig
  • assets/design-export/fig/uoxQW.fig is excluded by !**/*.fig
  • assets/design-export/fig/w34N9.fig is excluded by !**/*.fig
  • assets/design-export/fig/wqnM9.fig is excluded by !**/*.fig
  • assets/design-export/fig/wxINm.fig is excluded by !**/*.fig
  • assets/design-export/fig/xCJlu.fig is excluded by !**/*.fig
  • assets/design-export/fig/xvlB6.fig is excluded by !**/*.fig
  • assets/design-export/fig/y3YcQ.fig is excluded by !**/*.fig
  • assets/design-export/fig/yrxK2.fig is excluded by !**/*.fig
  • assets/design-export/fig/zFiOW.fig is excluded by !**/*.fig
  • assets/design-export/fig/zM0VF.fig is excluded by !**/*.fig
  • assets/design-export/fig/zj5a3.fig is excluded by !**/*.fig
  • assets/design-export/fig/zqzr4.fig is excluded by !**/*.fig
  • assets/design-export/screenshots/1-46380.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46381.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46382.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46383.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46384.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46385.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46386.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46387.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46388.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46390.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46391.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46392.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46393.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46394.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46395.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46396.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46397.png is excluded by !**/*.png
  • assets/design-export/screenshots/1-46398.png is excluded by !**/*.png
  • assets/design-export/screenshots/1006926387-2294.png is excluded by !**/*.png
  • assets/design-export/screenshots/1006926387-2310.png is excluded by !**/*.png
  • assets/design-export/screenshots/1274632774-4001.png is excluded by !**/*.png
  • assets/design-export/screenshots/1274632774-4260.png is excluded by !**/*.png
  • assets/design-export/screenshots/2044649516-1099.png is excluded by !**/*.png
  • assets/design-export/screenshots/2044649516-13.png is excluded by !**/*.png
  • assets/design-export/screenshots/2044649516-1687.png is excluded by !**/*.png
  • assets/design-export/screenshots/2044649516-2282.png is excluded by !**/*.png
  • assets/design-export/screenshots/2044649516-579.png is excluded by !**/*.png
  • assets/design-export/screenshots/D9QYZ.png is excluded by !**/*.png
  • assets/design-export/screenshots/DBQyF.png is excluded by !**/*.png
  • assets/design-export/screenshots/FOVMf.png is excluded by !**/*.png
  • assets/design-export/screenshots/K5XinZ.png is excluded by !**/*.png
  • assets/design-export/screenshots/M2sA4u.png is excluded by !**/*.png
  • assets/design-export/screenshots/QgW58.png is excluded by !**/*.png
  • assets/design-export/screenshots/RC3Kf.png is excluded by !**/*.png
  • assets/design-export/screenshots/SUcad.png is excluded by !**/*.png
  • assets/design-export/screenshots/T1wkiT.png is excluded by !**/*.png
  • assets/design-export/screenshots/UdnBT.png is excluded by !**/*.png
  • assets/design-export/screenshots/Uzzje.png is excluded by !**/*.png
  • assets/design-export/screenshots/WZdnw.png is excluded by !**/*.png
  • assets/design-export/screenshots/Wj0V4.png is excluded by !**/*.png
  • assets/design-export/screenshots/cDiNb.png is excluded by !**/*.png
  • assets/design-export/screenshots/g5mEpx.png is excluded by !**/*.png
  • assets/design-export/screenshots/i4L0M.png is excluded by !**/*.png
  • assets/design-export/screenshots/l64bd.png is excluded by !**/*.png
  • assets/design-export/screenshots/l7TRz9.png is excluded by !**/*.png
  • assets/design-export/screenshots/lCTci.png is excluded by !**/*.png
  • assets/design-export/screenshots/lWvcv.png is excluded by !**/*.png
  • assets/design-export/screenshots/n6Xlo.png is excluded by !**/*.png
  • assets/design-export/screenshots/nNGDX.png is excluded by !**/*.png
  • assets/design-export/screenshots/r0heh.png is excluded by !**/*.png
  • assets/design-export/screenshots/uMiwd.png is excluded by !**/*.png
  • assets/design-export/screenshots/uoxQW.png is excluded by !**/*.png
  • assets/design-export/screenshots/yrxK2.png is excluded by !**/*.png
  • assets/design-export/screenshots/zM0VF.png is excluded by !**/*.png
  • assets/design-export/screenshots/zqzr4.png is excluded by !**/*.png
  • design.fig is excluded by !**/*.fig
  • go.work.sum is excluded by !**/*.sum
  • test/e2e/go.sum is excluded by !**/*.sum
Files selected for processing: 230

  • .github/actions/build-e2e-images/action.yml
  • .github/workflows/ci.yaml
  • .github/workflows/devcontainers.yaml
  • .github/workflows/publish-edge.yaml
  • .github/workflows/release.yaml
  • .gitmodules
  • AGENTS.md
  • Makefile
  • README.md
  • agent/cmd/files_only_test.go
  • agent/cmd/main.go
  • agent/internal/files/files.go
  • agent/internal/files/rename_linux.go
  • agent/internal/files/rename_linux_test.go
  • agent/internal/files/rooted_linux.go
  • agent/internal/files/stat.go
  • agent/internal/files/stat_test.go
  • agent/internal/files/stream_linux.go
  • agent/internal/files/stream_linux_test.go
  • agent/internal/files/stream_more_linux_test.go
  • agent/internal/files/timeouts_test.go
  • agent/specs.md
  • api/cmd/gateway.go
  • api/cmd/main.go
  • api/cmd/mounts_test.go
  • api/internal/audit/audit.go
  • api/internal/audit/audit_sftp_sinks_test.go
  • api/internal/audit/audit_source_test.go
  • api/internal/audit/s3.go
  • api/internal/auth/actor.go
  • api/internal/auth/sessions.go
  • api/internal/auth/sessions_sftp_stream_test.go
  • api/internal/auth/sftp.go
  • api/internal/auth/sftp_check_slide_test.go
  • api/internal/auth/sftp_endpoints.go
  • api/internal/auth/sftp_guard.go
  • api/internal/auth/sftp_guard_fault_test.go
  • api/internal/auth/sftp_guard_test.go
  • api/internal/auth/sftp_revoke.go
  • api/internal/auth/sftp_seed_test.go
  • api/internal/auth/sftp_service_token_sessions_test.go
  • api/internal/auth/sftp_store.go
  • api/internal/auth/sftp_store_fault_test.go
  • api/internal/auth/sftp_test.go
  • api/internal/auth/sftp_tokens.go
  • api/internal/db/migrations/common/024_sftp_credentials.sql
  • api/internal/db/migrations/common/025_sftp_cluster_endpoints.sql
  • api/internal/db/migrations/common/026_sftp_session_service_token.sql
  • api/internal/db/migrations_sftp_postgres_test.go
  • api/internal/db/migrations_sftp_test.go
  • api/internal/db/users.go
  • api/internal/db/users_sftp_test.go
  • api/internal/gateway/duration_test.go
  • api/internal/gateway/files_limit_test.go
  • api/internal/gateway/server.go
  • api/internal/gatewayprotocol/duration.go
  • api/internal/gatewayprotocol/duration_test.go
  • api/internal/gatewayprotocol/protocol.go
  • api/internal/gatewayprotocol/stream_test.go
  • api/internal/handlers/cluster_guard_test.go
  • api/internal/handlers/clusters.go
  • api/internal/handlers/mcp_tokens.go
  • api/internal/handlers/sftp.go
  • api/internal/handlers/sftp_admin_test.go
  • api/internal/handlers/sftp_cluster.go
  • api/internal/handlers/sftp_cluster_envtest_test.go
  • api/internal/handlers/sftp_cluster_test.go
  • api/internal/handlers/sftp_end_test.go
  • api/internal/handlers/sftp_envtest_test.go
  • api/internal/handlers/sftp_host_key_test.go
  • api/internal/handlers/sftp_login.go
  • api/internal/handlers/sftp_login_target_exists_test.go
  • api/internal/handlers/sftp_login_test.go
  • api/internal/handlers/sftp_servers_write_test.go
  • api/internal/handlers/sftp_unit_test.go
  • api/internal/handlers/users.go
  • api/internal/httperr/httperr.go
  • api/internal/kube/registry.go
  • api/internal/kube/registry_list_servers_test.go
  • api/internal/messages/messages.go
  • api/internal/rbac/fileaccess.go
  • api/internal/rbac/fileaccess_sftp_test.go
  • api/internal/rbac/fileaccess_test.go
  • api/internal/rbac/rbac.go
  • api/internal/rbac/sftp_admin_rules_test.go
  • api/internal/ws/dialer.go
  • api/internal/ws/ensure_files.go
  • api/internal/ws/ensure_files_test.go
  • api/internal/ws/files_limits_test.go
  • api/internal/ws/files_stream_envtest_test.go
  • api/internal/ws/gateway_client.go
  • api/internal/ws/transport.go
  • api/internal/ws/transport_content_length_test.go
  • api/specs.md
  • assets/design-export/json/1-46380.json
  • assets/design-export/json/1-46381.json
  • assets/design-export/json/1-46382.json
  • assets/design-export/json/1-46383.json
  • assets/design-export/json/1-46384.json
  • assets/design-export/json/1-46385.json
  • assets/design-export/json/1-46386.json
  • assets/design-export/json/1-46387.json
  • assets/design-export/json/1-46388.json
  • assets/design-export/json/1-46390.json
  • assets/design-export/json/1-46391.json
  • assets/design-export/json/1-46392.json
  • assets/design-export/json/1-46393.json
  • assets/design-export/json/1-46394.json
  • assets/design-export/json/1-46395.json
  • assets/design-export/json/1-46396.json
  • assets/design-export/json/1-46397.json
  • assets/design-export/json/1-46398.json
  • assets/design-export/json/1006926387-2294.json
  • assets/design-export/json/1006926387-2310.json
  • assets/design-export/json/1274632774-4001.json
  • assets/design-export/json/1274632774-4260.json
  • assets/design-export/json/1494270493-26.json
  • assets/design-export/json/2044649516-1099.json
  • assets/design-export/json/2044649516-13.json
  • assets/design-export/json/2044649516-1687.json
  • assets/design-export/json/2044649516-2282.json
  • assets/design-export/json/2044649516-2862.json
  • assets/design-export/json/2044649516-2982.json
  • assets/design-export/json/2044649516-579.json
  • assets/design-export/json/46479436-2.json
  • assets/design-export/json/B57dG.json
  • assets/design-export/json/C2LQE4.json
  • assets/design-export/json/D9QYZ.json
  • assets/design-export/json/DBQyF.json
  • assets/design-export/json/EcoGD.json
  • assets/design-export/json/FBiMN.json
  • assets/design-export/json/FOVMf.json
  • assets/design-export/json/K5XinZ.json
  • assets/design-export/json/LYPXU.json
  • assets/design-export/json/M2sA4u.json
  • assets/design-export/json/Ne5TA.json
  • assets/design-export/json/QgW58.json
  • assets/design-export/json/RC3Kf.json
  • assets/design-export/json/SUcad.json
  • assets/design-export/json/T1wkiT.json
  • assets/design-export/json/UdnBT.json
  • assets/design-export/json/Uzzje.json
  • assets/design-export/json/WZdnw.json
  • assets/design-export/json/Wj0V4.json
  • assets/design-export/json/cDiNb.json
  • assets/design-export/json/epZO2.json
  • assets/design-export/json/g5mEpx.json
  • assets/design-export/json/i4L0M.json
  • assets/design-export/json/l64bd.json
  • assets/design-export/json/l7TRz9.json
  • assets/design-export/json/lCTci.json
  • assets/design-export/json/lWvcv.json
  • assets/design-export/json/mrF6f.json
  • assets/design-export/json/n6Xlo.json
  • assets/design-export/json/nNGDX.json
  • assets/design-export/json/q31B6w.json
  • assets/design-export/json/qFLfB.json
  • assets/design-export/json/r0heh.json
  • assets/design-export/json/uMiwd.json
  • assets/design-export/json/uoxQW.json
  • assets/design-export/json/yrxK2.json
  • assets/design-export/json/zM0VF.json
  • assets/design-export/json/zqzr4.json
  • assets/design-export/parts.json
  • assets/design-export/screens.json
  • changelog/unreleased/1074-sftp-access.md
  • charts/gameplane/templates/_helpers.tpl
  • charts/gameplane/templates/api.yaml
  • charts/gameplane/templates/gateway.yaml
  • charts/gameplane/templates/networkpolicies.yaml
  • charts/gameplane/templates/operator.yaml
  • charts/gameplane/templates/sftp.yaml
  • charts/gameplane/tests/sftp.sh
  • charts/gameplane/values.yaml
  • containers/docker-bake.hcl
  • deploy/kind/e2e.sh
  • docs/agent-architecture.md
  • docs/architecture.md
  • docs/install.md
  • docs/security.md
  • docs/sftp.md
  • hack/auto_label.py
  • hack/ci_scope.py
  • i18n/locales/en/app.json
  • operator/cmd/main.go
  • operator/config/rbac/role_namespace.yaml
  • operator/internal/controller/gameserver_controller.go
  • operator/internal/controller/gameserver_files.go
  • operator/internal/controller/gameserver_files_envtest_test.go
  • operator/internal/controller/gameserver_files_start_test.go
  • operator/internal/controller/gameserver_files_unit_test.go
  • operator/specs.md
  • sftp
  • specs/040-sftp-access/contracts/api.md
  • specs/040-sftp-access/data-model.md
  • specs/040-sftp-access/plan.md
  • specs/040-sftp-access/quickstart.md
  • specs/040-sftp-access/spec.md
  • specs/040-sftp-access/tasks.md
  • specs/done_037-scope-mcp-server-permissions/tasks.md
  • test/e2e/buckets.sh
  • test/e2e/go.mod
  • test/e2e/multicluster_mcp_e2e_test.go
  • test/e2e/multicluster_sftp_e2e_test.go
  • test/e2e/sftp_e2e_test.go
  • test/e2e/suite-components.json
  • web/src/components/sftp/ClusterSftpDrawer.tsx
  • web/src/components/sftp/SftpDialogs.tsx
  • web/src/components/ui/SettingsNav.tsx
  • web/src/components/ui/SettingsNav_groups.test.tsx
  • web/src/components/ui/admin/SftpAccessDrawer.tsx
  • web/src/lib/api.ts
  • web/src/lib/endpoints.test.ts
  • web/src/lib/endpoints.ts
  • web/src/router/tree.tsx
  • web/src/routes/Clusters.tsx
  • web/src/routes/Clusters_sftp.test.tsx
  • web/src/routes/ProfileSftp.test.tsx
  • web/src/routes/ProfileSftp.tsx
  • web/src/routes/Users.tsx
  • web/src/routes/Users_sftp.test.tsx
  • web/src/routes/tabs/Files.test.tsx
  • web/src/routes/tabs/Files.tsx
  • web/src/routes/tabs/FilesStarting.tsx
  • web/src/routes/tabs/Files_starting.test.tsx
  • web/src/routes/tabs/Files_stream.test.tsx
  • web/src/routes/tabs/UploadTray.tsx
  • web/src/routes/tabs/uploadQueue.test.ts
  • web/src/routes/tabs/uploadQueue.ts
  • web/src/test/fakeXHR.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Copy link
Copy Markdown
Collaborator Author

go (agent) fails in TestFileRouteTimeouts/PUT/files/stream (timeouts_test.go:23, bounded=false, transfer=false). The new /files/stream route is mounted without the 30 s timeout on purpose, because it is a transfer (spec 040 FR-018). The test's hard-coded transfer list needs /files/stream added. That is an edit to an existing test, so it waits for the maintainer's sign-off before it is pushed.


Generated by Claude Code

The streaming upload route is mounted without the 30 s operation timeout
(spec 040 FR-018). Approved by the maintainer (spec 040 T002 sign-off,
row 6); no assertion removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

CI Report - fdf8d6b

run 45244573277 - attempt 1

0 failed - 33 passed - 0 skipped - 48m39s elapsed

Test selection: full (selection-rule change) - per-suite table

Coverage

Module Measured Gate Margin
web L94.3 S92.49 B87.5 F90.28 L92 S92 B82 F76 +0.49

Changed

Area Files +/-
assets/ 337 +20333/-2473
api/ 72 +10509/-76
web/ 24 +2588/-82
agent/ 13 +1201/-103
operator/ 8 +906/-7
test/ 7 +754/-15
i18n/ 1 +612/-0
charts/ 8 +512/-0
docs/ 5 +286/-0
specs/ 7 +109/-78
.github/ 5 +24/-7
(root) 7 +16/-4
containers/ 1 +9/-1
hack/ 2 +4/-3
deploy/ 1 +2/-2
changelog/ 1 +3/-0

Slowest jobs

Job Duration
build e2e images 24m21s
e2e telemetry / arm64 (kind) 23m44s
e2e telemetry / amd64 (kind) 23m30s
e2e postgres / amd64 (kind) 20m51s
e2e restricted-workloads / arm64 (kind) 15m10s

e2e buckets run

api-agent, api-auth, api-mods, api-rbac, api-roles, backup-preparation, bot-fast, management-placement, monitoring, multicluster, network-isolation, operator, optional-components, postgres-availability, postgres-ha, postgres-pitr, ratelimit, recovery, restricted-workloads, standalone, telemetry, upgrade, wake-hostport

Changed-lines coverage was 84.3% (gate 90%). Adds tests for the upload
size option, a missing data root, free-space errors, statfs, a resume
source swapped for a directory, and rename into itself or over a file;
drops two unreachable branches in the stream code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
…utes (spec 040 T010-T019)

- Migration 024: sftp_ssh_keys, sftp_passwords, sftp_service_tokens,
  sftp_sessions and audit_events.source; DeleteUserTx removes SFTP rows.
- auth: SSH key parsing (ed25519, ecdsa, RSA >= 3072), generated SFTP
  passwords (20-40 printable ASCII, argon2id), service tokens gpsftps_
  and 15-minute sliding session tokens gpsftp_ stored as SHA-256 digests,
  revoked on key delete, password change, disable or delete; session
  guard restricted to the contract's routes with the cluster forced.
- audit: source=sftp for session-token requests; source joins the hash
  only when set, so existing chains verify; additive webhook/S3 field.
- rbac: FileAccess helper (VisibleServers, Allow, FilterEntries) now
  authorizes every file route with today's outcomes.
- File routes stat, rename and stream through the gateway; stream is
  long-running, exempt from the body limit and capped by
  --files-max-upload-bytes (default 20 GiB).
- /sftp/v1/login, /sftp/v1/sessions/check, /sftp/v1/servers and the
  /users/me/sftp self-service routes.
- Approved test additions (spec 040 T002 rows 1-3): gateway duration
  tables gain the stream, stat and rename rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
lint (agent) on #1074: bodyclose in the new stream and rename tests
(helpers now return the recorder) and unparam on locate, whose create
argument was always false.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
gosec G115/G202/G101, noctx in the new guard tests, revive doc comments,
and unparam on audit insertChained (dashboard rows keep calling it).
CheckSFTPSessions now checks each digest in one read transaction
instead of building an IN list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
…t context

Clears gosec G101 (name-based credential match) and contextcheck in the
new guard test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
The API answers plain text unless the request accepts
application/problem+json; the new envtest requests now send that header
like the existing handler tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>

Copy link
Copy Markdown
Collaborator Author

go (api) on 0d87a1f: all tests pass, but the changed-lines coverage gate fails at 67.2% (minimum 80%). The gap is mostly the SFTP credential store, the login and self-service handlers, and the new file routes. Unit tests for those are being added in the next commits on this draft.


Generated by Claude Code

… server listing

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>

Copy link
Copy Markdown
Collaborator Author

e2e upgrade / amd64 on 0d87a1f failed in TestUpgrade_FromPreviousRelease/ArgoCD: Argo CD's repo server timed out while rendering gameplane-crds (rpc error: code = DeadlineExceeded ... RST_STREAM ... CANCEL). This PR doesn't touch the CRDs or the chart yet, and the same Argo CD timeout showed up on other recent PRs. The next push will run the job again.


Generated by Claude Code

…servers (spec 040)

- Chart: optional sftp component (Deployment, Service, host key Secret
  kept across upgrades, local service token shared with the API,
  NetworkPolicy), files.maxUploadSize (20Gi) passed to the operator
  (agent --max-upload-bytes), API and gateway, policies that admit only
  the API, operator and gateway to gameplane-files pods on 8090.
- API seeds the local SFTP service token from its Secret.
- Agent --files-only mounts only the file routes.
- Operator: a stopped or sleeping server whose files are requested gets
  a short-lived gameplane-files pod; the <name>-agent Service follows it;
  idle teardown after --files-idle-timeout (10m); a start deletes the
  file pod first; file access never wakes a server.
- API: file routes on a stopped server stamp
  gameplane.local/files-requested-at (at most once a minute), wait up to
  60 s, else 503 server.files.starting.
- Tests: operator envtest and unit tests, agent files-only routes, API
  ensure-files and stream/rename/stat authorization.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
…or oversize streams

Refresh files-requested-at every 30 s while a file request to a stopped
server runs, map an over-cap body to 413 instead of 502, and cover the
SFTP handlers, file proxy limits and gateway upload limit with unit tests.
Pass the caller's context through the auth fault test helpers and align
two new rbac tests with the catalog's 400 statuses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Settings SFTP page and dialogs, admin SFTP panel in Users & RBAC, cluster
SFTP endpoint and token dialogs, Files tab upload progress, errors and
file-pod starting states; SFTP entry in the shared settings nav.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Lets the SFTP server revoke an API login session it turned away (session
cap reached, SSH handshake failed after login). Same service-token auth and
cluster binding as sessions/check; foreign or unknown tokens are ignored and
the answer is 204. Contract, plan, data model and tasks (T056) updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
- Admin Settings Nav: ACCOUNT (Theme, SFTP) and SERVER groups, with a
  terminal icon for SFTP. Non-admin copy of Settings — SFTP shows ACCOUNT only.
- Sidebars on new screens are cloned from their section's source screen, so
  the matching item is active and icons render.
- SSH keys Remove buttons align with the Add key right edge.
- Users SFTP access panel rebuilt with vertical auto-layout: key line,
  fingerprint with ellipsis, Remove and Revoke in one column, primary Done.
- Remove 204 stale export files that are not listed in screens.json or parts.json.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Users SFTP access and the Clusters SFTP dialogs become right-side drawers over a dimmed full-width page; the upload tray floats bottom-right over the full Files page.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Files starting: spinner, indeterminate bar and muted caption instead of the input-like pill, stopped-server header, no selection bar or editor tabs. Timed out: Retry button. Clusters SFTP drawer: endpoint-token wording, spacing and Create token gap.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Adds GET /users/{id}/sftp (keys with name, type, fingerprint, created and
last used times, plus password metadata; never the hash or key body),
DELETE /users/{id}/sftp/keys/{keyId} and DELETE /users/{id}/sftp/password.
Revoking a key or the password also revokes that user's live SFTP sessions
in the same transaction, as the self-service routes already do.

RBAC: the admin routes need users:manage. The new rules sit before the
generic users rules, and rbac.rule gains a contains field so the key
route can match its middle segment. Refused for SFTP-session callers.

Tests: unit tests for success, unknown user and key, cross-user scoping,
session revocation, SFTP-session refusal and store failures; rbac rule
tests; envtest file for the admin list and revoke flow through the
real rbac middleware.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
US4 of spec 040. Each cluster gets its own SFTP endpoint:

- GET /clusters/{name}/sftp returns the address, host key fingerprint and
  active service tokens; PUT stores a remote cluster's endpoint; POST and
  DELETE /clusters/{name}/sftp-token mint (shown once, 2 active at most)
  and revoke tokens. All need cluster:manage, and SFTP session tokens are
  refused.
- The panel's own cluster reads its address from sftp.publicAddress
  (GAMEPLANE_SFTP_PUBLIC_ADDRESS) and its fingerprint from the host key
  Secret. Remote clusters use the new sftp_cluster_endpoints table
  (migration 025).
- Chart: sftp.nodePort and sftp.loadBalancerIP, serviceType and
  combination checks, sftp.caSecret renamed to sftp.apiCASecret, and
  charts/gameplane/tests/sftp.sh wired into the helm CI job.

Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Add an interrupted-upload resume subtest (drop the connection mid-write,
reconnect, write at the server-reported offset) to TestSFTP_Lifecycle,
reuse alice's key session for it, tighten the revocation bound to 60 s
(SC-006) and move the CI payload to 64 MiB with a comment on why it is
below the spec's 2 GiB.

Document the SFTP endpoint in docs/security.md (threat model), the
optional component in docs/architecture.md and the personal, cluster
and endpoint-facing routes in api/specs.md. operator/specs.md and
agent/specs.md already cover the file-only pod and the stat, rename,
stream and --files-only surface.

Mark T052 and T053 done. The sftp/specs.md and sftp/README.md part of
T053 lives in the GameplanePanel/sftp submodule and stays open there.

Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
The sftp e2e bucket enables the chart's SFTP endpoint, which defaults to
gameplane-test/sftp:<tag>, so the e2e image set now bakes, saves and loads
it. suite-components.json maps TestSFTP_ and adds sftp to TestMultiCluster_.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
… events

The SFTP screens had untranslated literals in JSX (empty values, key rows, username forms, placeholders); they now go through formatMessage. The upload queue started the next file from an effect that set state synchronously; it now advances from the enqueue, cancel, retry and settle handlers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>

Copy link
Copy Markdown
Collaborator Author

TestHomeClientMounts_MatchMain (api/cmd) fails: main.go now mounts the cluster routes through handlers.MountClustersWithSFTP. The fix is to list that mount in homeClientMounts and mount it, SFTP routes included, in mountHomeClientRoutes, as the test's message says. Those are edits to existing tests, so they wait for maintainer sign-off (rows 10–11 in specs/040 T002). Every other failure seen so far has been fixed on the branch.


Generated by Claude Code

Brings the approved spec 040 screens (Settings SFTP, SSH key and password dialogs, admin SFTP access, cluster SFTP drawer, file uploads and files-starting states) back onto master's design.fig, with the settings nav grouped ACCOUNT (Theme, MCP tokens, SFTP) and SERVER. Master's MCP tokens screens now use the shared nav instance.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
…tests

The login subtest registered the connection's Close on its own t, so it closed as soon as that subtest ended and the upload subtest saw "connection lost". The parent test now closes whichever connection is current.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Without Accept: application/problem+json the API answers plain English text, so the token-limit and local-endpoint checks never saw the id. They now use the existing problem helper and compare messageId.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
- SFTP transfers on PostgreSQL: stream revalidation re-checks the SFTP session token instead of demanding a cookie.
- Long transfers: sessions/check slides live sessions, so a transfer longer than 15 minutes is not cut off.
- The agent gets the upload's Content-Length, so its size and free-space checks run before writing.
- SFTP renames are audited with their paths.
- Revoking an SFTP service token ends the sessions it minted (migration 026); a newly seeded chart token replaces the previous seeded one.
- A user+server login refuses a server that does not exist.
- The operator never creates a file-only pod while a start is pending.
- Docs: sftp e2e bucket in AGENTS.md, local cluster name in data-model.md, operator pod rights in security.md, GitOps note in sftp.md.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>

Copy link
Copy Markdown
Collaborator Author

e2e sftp / amd64 fails in TestSFTP_Lifecycle/interrupted-upload-resume (sftp_e2e_test.go:396: stat partial upload ... file does not exist).

This is a spec conflict, not a flake. SC-003/FR-014 want an interrupted upload to resume from where it stopped, but the streaming upload only commits the file when the stream ends cleanly, so nothing is left behind after a drop. The fix depends on a maintainer decision on what a dropped upload should leave behind (keep the partial file for new files only, always, or stay atomic and amend SC-003). It will be pushed once that is settled.


Generated by Claude Code

main.go mounts the cluster routes with MountClustersWithSFTP now; list it
in homeClientMounts and mount it in mountHomeClientRoutes (approved test
rows 10 and 11).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
…oteGrant

Rename TestMultiCluster_MCPTokenRemoteGrant to TestMultiCluster_TokenRemoteGrant
and run the remote-cluster SFTP endpoint check as its sftp-remote-endpoint
subtest, so it shares that test's admin login and remote cluster and the
multicluster bucket stays at 7 admin logins (valgul 2026-11-23).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
valgul 2026-11-23: an upload cut mid-file leaves no partial file and is sent
again; only downloads resume. Amend SC-003, US2 scenario 2, the edge case and
FR-014, and turn the e2e resume subtest into an interrupted-upload-atomic check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
…ret ref

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
GET /sftp/v1/servers items gain write, the file-access check's create
decision for that server, so the SFTP endpoint can refuse an upload on a
read-only server when the file is opened (US2 scenario 3).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>

Copy link
Copy Markdown
Collaborator Author

e2e sftp / amd64 fails in TestSFTP_Lifecycle/read-only-permission-matrix (sftp_e2e_test.go:495: a read-only user could open a file for writing; the refusal came only at close).

The API side is in this PR (00400e5: GET /sftp/v1/servers items carry write). The SFTP side is GameplanePanel/sftp#2 (green, awaiting maintainer merge). This job goes green once sftp#2 merges and the sftp pointer is bumped here.


Generated by Claude Code

design.fig and assets/design-export take master's version (spec 030 frames);
the spec 040 screens are re-applied on top in a follow-up design commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Settings SFTP row, Files upload/starting screens, Users SFTP access,
Clusters SFTP screens, SFTP cards and the ACCOUNT/SERVER settings nav,
copied onto master's design (spec 030 frames kept); export regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@ValgulNecron
ValgulNecron marked this pull request as ready for review November 23, 2026 19:52
@ValgulNecron ValgulNecron added area: chart Helm chart and deployment area: e2e kind-based end-to-end suite area: operator controller-runtime operator and CRDs area: specs spec-kit feature specs and design docs area: web React dashboard labels Nov 23, 2026 — with Claude
@ValgulNecron
ValgulNecron merged commit deba77c into master Nov 23, 2026
146 checks passed
@ValgulNecron
ValgulNecron deleted the feat/040-sftp-access branch November 24, 2026 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: agent in-pod sidecar area: api REST/WebSocket gateway area: chart Helm chart and deployment area: e2e kind-based end-to-end suite area: operator controller-runtime operator and CRDs area: optional-components sentinel, capture-sidecar, mcp-server, tunnel, audit-syslog-bridge, telemetry-receiver area: specs spec-kit feature specs and design docs area: web React dashboard type: feature New capability or user-facing addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants