Repository navigation
fix(config): pin nil-key case in process overrides (#2031 item 7) - #2038
Merged
Merged
Conversation
#2031 item 7) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Deploying mcpproxy-docs with
|
| Latest commit: |
3214152
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e954feec.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://claude-fix-2031-item7-nil-ke.mcpproxy-docs.pages.dev |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Dumbris
enabled auto-merge (squash)
November 25, 2026 11:46
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 45597005581 --repo smart-mcp-proxy/mcpproxy-go
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
8 tasks
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.
Item 7 of #2031 ("nil-key case in
internal/config/process_overrides.go, around the OAuth key override") does not match current code:process_overrides.gohas no OAuth key override (oauth_token_encryption_keyis resolved byResolveOAuthTokenKeyand pinned byruntime/restart_gated.go). No defect found; this PR adds test-only pins for the nil cases that are reachable:ResolveOAuthTokenKey(nil): no panic, nil key when no source is selected, env key resolves without a config.MCPPROXY_OAUTH_TOKEN_ENCRYPTION_KEY_FILEresolves withsecret_file_dirsnil, empty, or pointing elsewhere (stays ungated).OverrideForProcesswith a nil value on a config with nosecurityblock does not create the block, andPersistableConfigdoes not panic or add it.No production code changed, so
test-api-e2e.shwas not run.go test -race ./internal/config/...passes. golangci-lint (bare and--build-tags server) reports only an existingreflect.Ptrfinding inzero_value_preservation_test.go.refs #2031
🤖 Generated with Claude Code