Skip to main content
Your organization may have services that are not publicly accessible but contain information that would be useful to manage in Cortex. You can set up a plugin proxy that works with Cortex’s Axon Relay to call internal services without exposing the service or authentication outside of your firewall.

Prerequisites

Before getting started, you should have already set up the Cortex Axon agent and set your Cortex API token in the .env file. Additionally, you should have already created a plugin and a plugin proxy.

Considerations

  • This guide describes using a Docker compose file, but note that Axon Relay can be run in Kubernetes or other container systems.
  • As an example throughout this guide, assume a service in the network has the following endpoint:
    • GET http://cities.internal.my-company.com/api/cities/s => ["Seattle", "Sydney", "Shanghai" ...]

Step 1: Create request forwarding configuration

Create a file that defines how requests are routed. The example below permits any requests, but note that the method and path can be narrowed to allow access to specific endpoints:
In your configuration, enter the root of your service URL as the value of origin.

Step 2: Configure Axon Docker container

  1. Create the Axon container (in this example, via Docker Compose for brevity) that defines how the container will route traffic and which routes are allowed.
    • For production employments, two replicas should be specified, and the instances should be run in Kubernetes or similar. The example below can be used to test the configuration and can be run locally:
  1. Start the container, which will register it with Cortex.
  2. Run the command docker compose up.

Step 3: Include the Axon call in your plugin proxy code

Call your endpoint with a relay URL that uses the alias you set with -a:
In the example above, you could create a helper function to fetch cities by prefix:
If you already run an Axon relay for an integration, such as GitHub, GitLab, or Jira, you can send requests through it instead of starting a new relay. Add the integration type after the alias, e.g. http://gitlab-relay:gitlab@relay-proxy.cortex.io/.... Learn more
If a request returns an HTTP 555 error, see Troubleshooting and FAQ on the Axon Relay page.
Last modified on December 2, 2026