Repository navigation
fix: cap per-user logs, never follow redirects, refuse token without panel URL - #9
Merged
Merged
Conversation
…panel URL Per-user mode now trims pod logs to the newest 256 KiB client-side like break-glass, does not follow redirects that could resend the bearer token, and a GAMEPLANE_MCP_TOKEN without GAMEPLANE_PANEL_URL is a start-up error instead of a silent fall back to break-glass. The GET-only source tripwire also catches string-literal methods. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security review of the MCP server (2026-11-24). The read-only invariant holds on every path. Fixes, by severity:
Authorizationon same-host redirects, so a redirect tohttp://would resend thegpmcp_token in cleartextCheckRedirectreturnshttp.ErrUseLastResponseGAMEPLANE_MCP_TOKENset butGAMEPLANE_PANEL_URLmissing,servesilently fell back to break-glass (kubeconfig / ServiceAccount) instead of the user's scoped tokenNewRequestWithContextNot changed: break-glass list calls are unpaginated (caller is already admin, availability only); literal
env[].valueis returned as the API returns it.New tests:
internal/panel/hardening_test.go,main_serve_test.go;source_test.gogains a pattern only. No existing assertion changed (checked by a separate test-diff review).specs.mdandREADME.mdupdated.Generated by Claude Code