myxce/src/frontend/apiserver
Rongsong Shen 1a61b04ab6
fix(apiserver): thread from_host through the CGO conversion layer (bug-1676, gitea #44)
modelJobToSubmit/freeJobSubmit (submit direction) and
cJobToModel/cJobArrayToModels (receive direction, both single-job and
array-job paths) now carry from_host across the CGO boundary.
rawSubmitData/rawJobToModel (the pure-Go, CGO-free mapping layer) gain
the field too, completing the round-trip so JobInfo.FromHost reflects
whatever the controller actually has -- which, as of the prior two
commits, is now always the client-asserted hostname. backend/handler.go
needs no change: its existing blind overwrite in OnJobUpdated is
correct by construction once every controller push genuinely carries
the right value.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AgYRU3zDTqNGV5Jk8aiKLg
2026-08-24 15:14:49 +00:00
..
backend fix(apiserver): thread from_host through the CGO conversion layer (bug-1676, gitea #44) 2026-08-24 15:14:49 +00:00
cmd feat(dirty-content-fingerprint): apiserver shows fingerprint in -version 2026-08-21 08:04:40 +00:00
common Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
config fix(security): replace exposed admin credential with placeholder 2026-07-31 03:31:23 +00:00
controllers fix(apiserver): pass client-asserted FromHost through unchanged (bug-1676, gitea #44) 2026-08-24 15:14:33 +00:00
docs Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
middleware Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
models fix(apiserver): pass client-asserted FromHost through unchanged (bug-1676, gitea #44) 2026-08-24 15:14:33 +00:00
router Init commit of jobs output/error message peek project. 2026-05-09 16:57:54 +08:00
services submit job from xcecli 2026-04-14 15:55:52 +08:00
store test(apiserver): add integration tests for P0+P1 backend features 2026-04-18 11:56:31 +00:00
tools/encrypt Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
utils refactor: simplify HA backend peer handling 2026-05-08 03:41:11 +00:00
go.mod Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
go.sum Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
meson.build feat(dirty-content-fingerprint): apiserver/xcecli meson pass fingerprint to go_build 2026-08-21 06:21:21 +00:00
README.md Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00

(1) run server command:

cd cmd go run main.go

(2) run server with different log level: cd cmd go run main.go -level=debug

level options: info/debug/warn/error/fatal