Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

feat(deploy): u5 allowlist internal mcp-oauth authorize-url on rpc gateway

Diego Zacariasc6e8113719cc
diff --git a/deploy/base/control-plane/configmaps.yaml b/deploy/base/control-plane/configmaps.yaml
index b760361d9..8b29c4d8b 100644
--- a/deploy/base/control-plane/configmaps.yaml
+++ b/deploy/base/control-plane/configmaps.yaml
@@ -220,6 +220,20 @@ data:
proxy_set_header X-Forwarded-Proto $scheme;
}
+ # U5: mint a fresh authorize-URL for an OAuth mcp-server (reactive
+ # consent). rpc-proxy is the sole caller; requireInternalService('rpc-proxy')
+ # gates it at control-api.
+ location = /api/v1/internal/mcp-oauth/authorize-url {
+ limit_except POST {
+ deny all;
+ }
+ proxy_pass http://control_api_upstream;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+
location / {
return 403;
}