You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add URL validation to reject internal/metadata endpoints in RemoteURL fields #4695
The RemoteURL field on MCPServerEntry (and MCPRemoteProxy) uses a ^https?:// CEL pattern that only validates the URL scheme. This allows potentially dangerous URLs that could become SSRF vectors if any downstream component fetches the URL in-cluster:
Raised during review of #4664 by @ChrisJBurns (comment). This is not a regression — the same pattern exists on MCPRemoteProxy today — but it should be addressed for both resource types together.
Proposed approach
Add validation (CEL rules or controller-side checks) to reject well-known internal/metadata IP ranges and hostnames. At minimum:
Link-local metadata range (169.254.0.0/16)
Loopback (127.0.0.0/8, ::1)
Private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) — may need an opt-out for legitimate internal endpoints
kubernetes.default.svc and similar well-known in-cluster hostnames
This should apply consistently to both MCPServerEntry and MCPRemoteProxy CRDs.
Activity
Add SSRF protection to RemoteURL validation
Add SSRF protection to RemoteURL validation (#4697)