This Helm chart is used to deploy Axon Relay in proxy mode to enable Cortex plugins and workflows to access internal services securely.
Axon Relay Proxy acts as a secure tunnel between Cortex and your internal services. When configured, you can make requests from Cortex plugins and workflows to https://<alias>@relay-proxy.cortex.io/path and Axon Relay will forward them to your internal services based on the configured rules.
The critical configuration options are:
proxy.alias: The alias name that becomes part of the relay-proxy.cortex.io URLproxy.configs: The forwarding rules that define how requests are routed and authenticatedproxy.verbose: Enable verbose logging for debugging
-
(Recommended) Create a namespace in Kubernetes where you will run the proxy:
kubectl create namespace my-axon-relay-proxy-namespace
-
Edit
values.yamlto configure the proxy settings for your internal services:proxy: alias: my-api-proxy verbose: false configs: - method: any path: /* origin: https://internal-api.company.com auth: scheme: bearer token: your_internal_api_token
-
Configure your Cortex API token. Axon relay needs this token to connect to Cortex.
kubectl create secret generic axon-secrets --namespace <namespace> --from-literal=CORTEX_API_TOKEN=<your_cortex_token>
-
Install the chart:
helm install axon-relay-proxy . --namespace <namespace>
Replace
<namespace>with your Kubernetes namespace.
Once deployed, you can access your internal services from Cortex plugins and workflows using URLs like:
https://my-api-proxy@relay-proxy.cortex.io/api/users
https://my-api-proxy@relay-proxy.cortex.io/health/status
These requests will be forwarded to your configured origin server with any authentication you've specified.
method: HTTP method to match (GET,POST,PUT,DELETE, oranyfor all methods)path: URL path pattern to match (supports wildcards like/*)origin: Target server base URL where requests are forwardedauth: Optional authentication configurationscheme: Authentication type (bearer,token, orbasic)token: API token for bearer/token authenticationusername/password: Credentials for basic authentication
Simple proxy without authentication:
proxy:
alias: internal-api
configs:
- method: any
path: /*
origin: https://api.internal.company.comAPI with bearer token authentication:
proxy:
alias: secure-api
configs:
- method: any
path: /*
origin: https://secure.internal.company.com
auth:
scheme: bearer
token: your_api_token_hereTo uninstall the chart:
helm uninstall axon-relay-proxy --namespace <namespace>