Repository navigation
Closed
Labels
Description
Feature Request
Problem
MCPRemoteProxy requires HTTPS for OIDC issuer URLs, even when jwksAllowPrivateIP: true is set. This makes local development and testing with non-production OIDC providers (like local Keycloak instances) difficult.
Current Behavior
When configuring an HTTP OIDC issuer, the proxy fails to start with:
Error: failed to create middleware of type auth: failed to create authentication middleware:
failed to discover OIDC configuration: failed to fetch OIDC configuration:
Get "http://keycloak.example.com/realms/toolhive/.well-known/openid-configuration":
the supplied URL http://keycloak.example.com/realms/toolhive/.well-known/openid-configuration is not HTTPS scheme
Workaround
Currently, the only workaround is to explicitly provide jwksUrl to bypass OIDC discovery, but this still requires the issuer validation to succeed.
Proposed Solution
Add a configuration option (e.g., insecureAllowHTTP or insecureSkipTLS) to allow HTTP OIDC issuers for development/testing purposes.
Example configuration:
spec:
oidcConfig:
type: inline
inline:
issuer: http://localhost:8080/realms/test
jwksAllowPrivateIP: true
insecureAllowHTTP: true # New fieldSecurity Considerations
- This option should be clearly marked as insecure and for development/testing only
- Should be disabled by default
- Documentation should warn against using this in production
- Consider adding validation warnings when this option is enabled
Use Cases
- Local development with Kind/Minikube clusters
- Testing OIDC integration without TLS setup
- CI/CD environments with self-hosted OIDC providers
- Internal corporate networks with HTTP-only OIDC servers
Related
The jwksAllowPrivateIP flag exists but doesn't help with HTTP requirement, suggesting this is a validation that happens before that flag is evaluated.
Environment
- ToolHive version: Latest (as of October 2025)
- Kubernetes: Kind/local cluster
- OIDC Provider: Keycloak (local HTTP instance)
Activity
Add insecure HTTP OIDC support for local development
Add insecure HTTP OIDC support for local development
Add insecure HTTP OIDC support for local development
Add insecure HTTP OIDC support for local development (#2292)