Skip to content

MCPRemoteProxy: Add insecure HTTP OIDC support for local development/testing #2288

Closed

Description

@JAORMX

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 field

Security 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

  1. added
    enhancement
    on Oct 22, 2025
  2. added 4 commits that reference this issue on Oct 22, 2025
    c82c6ce
    213bfe1
    4701e44
    7d66bc7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    authenticationenhancementkubernetesproxy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions