Uh oh!
There was an error while loading. Please reload this page.
feat(mcp): gate mcp.makeitwork.cloud behind Cloudflare Access - #26
Merged
Conversation
xnotoforce-pushed
the
feat/mcp-gateway-access
branch
from
August 26, 2026 03:22
b77594e to
c641f71CompareAdd the mcp.makeitwork.cloud CNAME for the cluster-apps tunnel and a dedicated Access service token plus self_hosted application for the ToolHive MCP gateway (non_identity machine access for headless agent clients, admins group for interactive debug). Service-token client credentials are exposed as outputs (secret marked sensitive). opencode.makeitwork.cloud stays on server-password auth per #25: an Access gate breaks opencode attach. Revisit with an attach-compatible design before re-gating it.
xnotoforce-pushed
the
feat/mcp-gateway-access
branch
from
August 26, 2026 03:22
c641f71 to
730c4c3CompareOpenTofu Plan |
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
Summary
Edge authentication for the new cluster MCP gateway (paired with makeitworkcloud/kustomize-cluster#62).
cf-tunnels.tf— addsmcpto the cluster-apps CNAME list. This must be applied before the TunnelBinding lands in kustomize-cluster (documented DNS race, error81053); the TunnelBinding PR follows this apply.cf-access-mcp.tf— dedicatedmcp-gatewayAccess service token (duration = "forever", rotate viaclient_secret_version) +self_hostedapplication onmcp.makeitwork.cloud:non_identityservice-token policy for headless agent clients (opencode, Claude Code, etc. sendCF-Access-Client-*headers) and an admins GitHub-SSO policy for interactive debug.outputs.tf— exposes the service-tokenclient_idandclient_secret(sensitive) so agent clients can be configured after apply.Scope change during review: the
cf-access-opencode.tfgate was dropped — #25 deliberately removed the opencode Access gate because it breaksopencode attach; opencode web stays on the SOPS-managed server password. Re-gating needs an attach-compatible design first.Validation
tofu fmt✅,tofu init -backend=false+tofu validate✅make test✅ (canonical pre-commit: validate, tflint, checkov, fmt, terraform-docs README regenerated)Not run
tofu plan/tofu apply— CI posts the plan here and applies on merge per the shared workflow.Post-apply
tofu output mcp_gateway_service_token_client_id/tofu output -raw mcp_gateway_service_token_client_secret→ local agent sessions asCF_ACCESS_CLIENT_ID/CF_ACCESS_CLIENT_SECRET(keyring/env only).