Skip to content

Harden optional OAuth staging for read-only MCP - #5

Open
jmrGrav wants to merge 1 commit into
mainfrom
harden-staging-oauth-prod-candidate
Open

Harden optional OAuth staging for read-only MCP#5
jmrGrav wants to merge 1 commit into
mainfrom
harden-staging-oauth-prod-candidate

Conversation

@jmrGrav

@jmrGrav jmrGrav commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • add AUTHENTICATED_SCOPE_TOOLS to constrain valid bearer tokens by MCP scope/tool allowlist
  • filter authenticated tools/list responses when a scope ACL is configured
  • reject authenticated tools/call outside the configured scope before the backend is reached
  • document the anonymous read-only + optional OAuth model and staging GO/NO-GO report

Validation

  • go test ./...
  • go test -race ./...
  • go vet ./...
  • gitleaks detect --no-banner --redact --source .
  • staging OAuth DCR + PKCE + token exchange validated
  • staging bearer valid tools/list filtered
  • staging bearer valid non-allowlisted tool returns 403
  • staging leak scan clean

Production impact

No production cutover. mcp.arleo.eu remains on hugo-public-mcp directly. No tag or release created.

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