Skip to content

fix(oauth): preserve clean MCP rollback - #75

Merged
halfaipg merged 1 commit into
mainfrom
fix/mcp-clean-rollback
Aug 30, 2026
Merged

fix(oauth): preserve clean MCP rollback#75
halfaipg merged 1 commit into
mainfrom
fix/mcp-clean-rollback

Conversation

@halfaipg

Copy link
Copy Markdown

Summary

  • keep service-authenticated introspection reachable only on the loopback Core transport when OAuth is disabled
  • return active: false without parsing the supplied token while the gate is off
  • preserve public Nginx 404 for /v1/oauth/introspect

Why

The supervised rollback drill correctly stopped MCP authorization but returned a fail-closed 500 because private introspection disappeared. This makes the same rollback produce the intended no-store invalid-token response without weakening public exposure or token validation.

Verification

  • git diff --check
  • .venv/bin/pytest -q grid_api/services/tests/test_oauth_server.py grid_api/routers/tests/test_oauth_contract.py (14 passed)

@halfaipg
halfaipg merged commit 4e744fe into main Aug 30, 2026
9 checks passed
@halfaipg
halfaipg deleted the fix/mcp-clean-rollback branch August 30, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant