This guide defines a recommended baseline for fronting the provider with an API gateway (for example Kong), and how to adjust OpAMP auth configuration when clients are remote or external to a controlled environment.
The provider exposes multiple endpoint classes with different risk profiles:
/ui, /help, /doc-set, /api/*/tool, /tool/*, /sse, /messages, /mcp, /mcp/*/v1/opamp (HTTP + WebSocket)If any of these are reachable directly from untrusted networks, a gateway policy should be treated as mandatory rather than optional.
Use this only when all clients run inside a tightly controlled network and direct exposure is blocked.
Recommended provider settings:
{
"provider": {
"opamp-use-authorization": "config-token",
"ui-use-authorization": "config-token"
}
}
Notes:
jwt is still preferred over static when an IdP is available.OPAMP_AUTH_STATIC_TOKEN for /v1/opampUI_AUTH_STATIC_TOKEN for non-OpAMP routes (/api, /tool, /sse, /messages, /mcp, /ui, /help, /doc-set)Use this when any client or operator is outside a controlled environment (internet, partner network, unmanaged edge, or unknown hosts).
Recommended provider settings:
{
"provider": {
"opamp-use-authorization": "idp",
"ui-use-authorization": "idp"
}
}
Recommended environment variables:
# OpAMP transport (/v1/opamp)
export OPAMP_AUTH_JWT_ISSUER='https://issuer.example.com/realms/opamp'
export OPAMP_AUTH_JWT_AUDIENCE='opamp-mcp'
export OPAMP_AUTH_JWT_JWKS_URL='https://issuer.example.com/realms/opamp/protocol/openid-connect/certs'
# Non-OpAMP routes (/api, /tool, /sse, /messages, /mcp, /ui, /help, /doc-set)
export UI_AUTH_JWT_ISSUER='https://issuer.example.com/realms/opamp'
export UI_AUTH_JWT_AUDIENCE='opamp-ui'
export UI_AUTH_JWT_JWKS_URL='https://issuer.example.com/realms/opamp/protocol/openid-connect/certs'
Recommended gateway policy shape:
/ui, /help, /doc-set, /api/*):
/tool*, /mcp*, /sse, /messages):
/v1/opamp):
/v1/opampTOFU can help bootstrap trust for /v1/opamp, then require bearer authentication on
subsequent requests. It is not a replacement for mTLS or strict gateway policy,
especially for external networks.
/api/*, /tool*, /mcp*, /sse, /messages, and /v1/opamp./v1/opamp and /api/*.