docs(buglog): follow-ups fixed (bug-1958..bug-1966); log bug-1967 (limit config re-push)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Rongsong Shen 2026-10-10 10:47:23 +00:00
parent f389845701
commit f51adebe8e
Signed by untrusted user: rshen
GPG key ID: 80533536B0EB651C
11 changed files with 251 additions and 117 deletions

View file

@ -1,8 +1,8 @@
---
id: "bug-1959"
status: "open"
status: "fixed"
status_updated: "2026-10-10"
status_note: "newly logged"
status_note: ""
component: "xcecli"
severity: "security"
timestamp: "2026-10-10T10:15:59Z"
@ -11,6 +11,7 @@ occurrences: 1
files: ["src/frontend/xcecli/cmd/auth"]
tags: ["xcecli", "security", "jwt"]
related: ["bug-1946"]
fix_commits: ["03798230"]
gitea_issue: 390
gitea_synced_status: "open"
gitea_synced_hash: "3ee2d40b62c8"
@ -39,15 +40,16 @@ Reported by the bug-1946 fix: server-side token revocation exists (`POST /xce/v1
- Frequency: deterministic (by code reading; confirmed by the RED test of the fix)
- Evidence: the code sites quoted in Description; no logs kept.
## Root cause
TODO: required for fixed/partial
`runLogout` (`src/frontend/xcecli/cmd/auth/logout.go`) only removed the server entry from the local config; the CLI never called the logout API, so the token stayed valid server side until expiry. Pre-existing.
## Fix
TODO: required for fixed/partial
New `APIClient.Logout(token)` (`common/request/request.go`) posts `/xce/v1/auth/logout` with the bearer token; `runLogout` calls it first and, if the server is unreachable or rejects the token, warns `server-side token revocation could not be confirmed` and still clears local state; help text updated.
## Verification
- Test: TODO: name + file; RED before the fix, GREEN after
- Suites: TODO: suite results and build profile
- Live: TODO: soak/deploy run, or n/a and why
- Test: `TestRunLogout_RevokesTokenOnServer` (`cmd/auth/logout_test.go`, httptest): RED `logout_test.go:124: requests = [], want ["POST /xce/v1/auth/logout Bearer tok"]`; `TestRunLogout_ServerFailureStillClearsLocalState` (rejected and unreachable server) RED `logout_test.go:157`; GREEN after (5 auth tests).
- Suites: `xce-build.sh all asan xce.build --incremental` on the merged branch, 2026-10-10: C suites Ok 157 / Fail 0; frontend Go tests ok (the build now also runs apiserver cmd, middleware, models and router)
- Live: n/a: unit/fixture-level verification; no live deployment was run
## References
- Related: none
- Fix commits: `03798230` (on `scheduler-framework`)
- Found as a follow-up of the 2026-10-10 P0 fixes (bug-1936..1957)