[Task] Support controlled MCP HTTPS domains and credential operations
Background
Parent #7949. This task belongs to production outbound connectivity. Production MCP services may require controlled HTTPS hostnames and operational credential rotation, beyond fixed-IP targets.
Existing capabilities and reuse
At master 87c22dde7, RemoteTransportPolicy explicitly rejects DNS-based targets and uses direct connections; RemoteServerBinding and credential resolvers bind service credentials to trusted endpoints. Reuse these boundaries and configuration synchronization. Do not forward caller credentials or diagnostic subjects to remote servers. Related #6471 concerns separate AI Proxy client credential-cache isolation, not this MCP transport extension.
Implementation scope
- Support approved HTTPS DNS and service-discovery targets with one coherent policy for resolution, allowed addresses, actual connection destination, TLS hostname/SNI and certificate validation. Enforce the policy at connection time, not merely URL parsing.
- Bound DNS resolution and re-resolution, connection attempts and discovery results; defend against DNS rebinding and unauthorized address changes, including pooled-connection behavior.
- Preserve independent target-bound credentials; define versioned rotation and emergency revocation semantics for new and in-flight requests, cached bindings and pooled clients. Never publish secrets in configuration diagnostics or metrics.
- Keep fixed-IP compatibility and redirects disabled. Document trusted configuration, rejection semantics and deployment requirements.
Non-goals
Arbitrary URL fetching, permissive TLS or trust-all, delegated OAuth, unrestricted enterprise proxies, IPv6 expansion without an actual requirement, or a new service-discovery platform.
Acceptance criteria
- [ ] DNS allowlist, connected address and TLS/SNI validation agree; rejected or changed destinations cannot bypass policy through retries or connection reuse.
- [ ] Invalid or untrusted certificates and hostname mismatches fail closed.
- [ ] Rotation and revocation have documented, tested new and in-flight semantics without cross-target secret reuse.
- [ ] Fixed-IP paths remain compatible; unauthorized configuration is rejected in Admin and runtime.
Tests
Controlled DNS and rebinding fixtures with real TLS MCP endpoints; SAN, hostname and certificate failures; pool reuse and address-change races; credential rotation and revocation with concurrent calls; cancellation, timeouts and secret-redaction regression. Use test CA configuration only in fixtures, never weaken production validation.
Dependencies
Completed protocol and trusted-identity contracts, plus #7951; coordinate credential refresh with #7952. Resolve the concrete approved domain and discovery deployment policy during design before broadening outbound access.
/assign