muster calls MCP servers, their authorization servers and the icons they declare. Who chose the destination decides how muster makes the call.
An MCPServer outside muster's namespace (an organization's connector,
served with mcpServerNamespaceSelector) names a destination that the
platform did not choose. Every call that follows from it goes through the
guarded outbound transport of
mcp-oauth:
- the server's endpoint (
spec.url), its 401 probe and its protected resource metadata; - its authorization server: metadata discovery, dynamic client registration, the code exchange, token refresh and revocation;
- the icon any server declares, also a server in muster's namespace.
The guarded transport:
- refuses every address that is not globally reachable after name resolution, at connect time, so DNS rebinding cannot pass: loopback, RFC 1918 and RFC 4193 ranges, link-local with the cloud metadata address, shared address space and the other special-purpose ranges;
- sends only https, except to a listed private host;
- refuses a redirect target the same way as the first request.
Servers in muster's namespace, filesystem mode and the operator's own
endpoints (muster's Dex, token exchange and broker targets) use the process
transport: the operator wrote them, and they may be in-cluster services.
An organization's MCPServer cannot use token exchange, token forwarding or
SigV4, so those calls only ever go to the operator's endpoints.
An organization's destination on a private address needs an exception that the platform sets, never the connector's writer:
muster:
outbound:
privateHosts:
- mcp.internal.example.comA listed hostname may resolve to RFC 1918 and RFC 4193 addresses and may be reached over plain http. Loopback, link-local and unspecified addresses stay refused. Hostnames match exactly: no port, no wildcard.
An organization's destination inside the cluster is a private destination
too: a tool server an organization principal reaches at a Service's DNS name
(principalAudiences, http://<name>.<namespace>.svc) is refused until its
hostname is listed here. A principal audience's URL may also be plain http for
a listed host.
net/http keeps custom headers such as X-API-Key on every redirect. On every
connector, an organization's or the platform's, a redirect that leaves the
first request's origin (scheme, host and port) carries only Accept*,
Cache-Control, Content-Type, Mcp-Protocol-Version and User-Agent:
no Authorization, no header of spec.headers or spec.headersFrom, no
SigV4 signature. A redirect that would resend the request body to another
origin (307, 308) is refused.
muster records, for each organization's connector, the origin of its endpoint
and the authorization server it pins (spec.auth.authorizationServer: the
issuer and its authorization, token and revocation endpoints; not the client
Secret). When either changes, the people's stored tokens for the connector are
dropped and they sign in again:
- a new origin, or new endpoints of the same issuer, drops every grant the connector's sign-ins are filed under, also one that another connector of the namespace shares;
- a new issuer drops the old one's grants that no other connector of the namespace uses.
A token refresh that is in flight when the grant is dropped does not bring it back. A sign-in whose code exchange is already running when the grant is dropped can still store its token: that window is one request long.
The first muster that records destinations cannot verify a connector it recorded before: it drops that connector's grants once, so every person signs in again once to each organization connector after the upgrade.
Platform connectors in muster's namespace keep their grants on such a change: operators write them, and they share grants by issuer (muster's Dex, for one), so a change of one connector would sign everybody out of all of them.
The record lives with the tokens (Valkey when configured), so a change made while muster was down is found at the next start.
muster reads HTTPS_PROXY, HTTP_PROXY and NO_PROXY at start. Set them
with the chart:
muster:
outbound:
proxy:
httpsProxy: http://proxy.example.com:3128
noProxy: .svc,.cluster.local,10.96.0.0/12- The guarded transport resolves the host itself and opens a
CONNECTtunnel to the checked IP address, so the proxy never resolves the host again. The proxy's own address is the only address it reaches without a check. muster needs DNS for the destinations. - A proxy that admits destinations by domain name only refuses a
CONNECTto an IP address. List such hosts innoProxy: they are then dialled directly, with the full guard. - The process transport uses the same variables, so list in-cluster services
in
noProxy. - The proxy must refuse internal destinations itself as well; muster's guard does not replace it. muster tests this at start (below).
- A host of
privateHostsis reached through the proxy too, at its private address, unlessnoProxylists it. With a proxy that refuses internal destinations, list each private host innoProxy.
When HTTPS_PROXY or HTTP_PROXY is set, muster asks each proxy at start
for CONNECT tunnels to internal addresses that it must refuse:
- the Kubernetes API Service (
KUBERNETES_SERVICE_HOSTandKUBERNETES_SERVICE_PORT, which listens in every cluster, so a permissive proxy in the cluster opens the tunnel); - loopback on the proxy's own port (
127.0.0.1:3128for a proxy on 3128), where the proxy itself listens, so a permissive proxy anywhere opens the tunnel; - the cloud metadata address,
169.254.169.254:443.
NO_PROXY does not apply to the test. muster closes each connection as soon
as the proxy answers and sends nothing through a tunnel. The test runs in the
background, for 15 seconds at most, and never stops muster from serving: the
guard refuses internal addresses whatever the proxy does.
The verdict is in the log (component Outbound) and in the gauge
muster_outbound_proxy_check{result}: 1 for the verdict, 0 for the others.
Without a proxy there is no test and no series.
result |
The proxy | Log level |
|---|---|---|
blocks |
answered 403 for every address | info |
permissive |
opened a tunnel (a 2xx answer) to an internal address, through any of the proxies | error |
unverified |
gave another answer for an address and opened none: it could not be reached, asked for credentials (407), timed out, or answered 5xx after it tried the address | warning |
The log line names the proxies (their passwords redacted) and its answer for each
address. A permissive proxy is a misconfiguration: make it refuse private,
loopback and link-local destinations. A proxy that refuses with another status
than 403 reads as unverified.
With a proxy, muster's network policy can send muster's internet traffic through the proxy only. It is an opt-in, off by default:
muster:
outbound:
proxy:
httpsProxy: http://squid.proxy.svc:3128
noProxy: .svc,.cluster.local,10.96.0.0/12
networkPolicy:
enabled: true
outboundProxy:
enabled: true
# The proxy's address range ...
cidr: ""
# ... or its pods (namespace empty: the release namespace).
namespace: proxy
podLabels:
app.kubernetes.io/name: squid
port: 3128The rule that lets muster reach any public address on 80 and 443 is then
replaced by a rule to the proxy. muster keeps DNS, the Kubernetes API and the
in-cluster destinations the policy names (mcpServerPorts, the ingress
gateway, Valkey, Dex, principalAudienceServers, additionalEgress). The
chart refuses the opt-in:
- without
networkPolicy.enabled; - without
httpsProxy: muster's https calls would go direct, and the policy cuts them; - without the proxy's
cidrorpodLabels; - on the
kubernetesflavor, whilenetworkPolicy.kubernetes.apiServerCIDRis0.0.0.0/0(the default): that rule would admit every address. Set it to the API server's address range.
A host in noProxy is dialled directly, so this policy cuts it off unless
another rule admits it: an in-cluster Service of the rules above, or an
additionalEgress entry, for example for a private host of privateHosts.
On Cilium, name an in-cluster proxy by podLabels: a cidr does not select
pods there.
TLS runs end to end through the tunnel. A proxy that intercepts TLS fails certificate verification unless its CA is configured, as an explicit opt-in:
muster:
outbound:
interceptingProxyCA:
secret:
name: proxy-ca
key: ca.pemSuch a proxy decrypts organizations' outbound calls and sees every credential muster sends through it: the people's tokens, client secrets and API keys. Its CA is trusted for every organization destination. muster logs a warning at start when it is set.
When muster signs in to an authorization server with its Client ID Metadata
Document (CIMD), the authorization server fetches muster's metadata URL
(<publicURL>/.well-known/oauth-client.json). On an installation whose public
URL only resolves inside a private network, an authorization server outside
it cannot fetch the document, and sign-in with CIMD fails. Use dynamic client
registration, or pin a pre-registered client on the connector
(spec.auth.authorizationServer with clientCredentialsSecretRef), for such
authorization servers.