Connecting to a private network from the App Connect Dashboard (in IBM App Connect Operator 11.1.0 or later)
To use the App Connect Dashboard to deploy Designer or Toolkit integrations that interact with applications that run on a private network, configure secure connectivity across your containerized and private (or on-premises) environments. For example, your Designer integration might include an action that puts a message on an on-premises IBM® MQ queue, or your Toolkit integration might contain a message flow that interacts with an SAP Gateway OData service in a private network. To connect to an application on a private network, create a private network connection, then download and configure a secure agent.
About this task
You enable access to a private network by using a switch server to route data, and a secure agent to connect to endpoints on the private network. The switch server runs in your cluster, and IBM App Connect provides a secure agent for you to run on your computer.
To begin, you create a private network connection in your Dashboard instance. To configure this connection, you download the App Connect secure agent and a configuration file (switchclient.json). Update the configuration file with endpoint information (including host, port, and certificates) for connecting to one or more applications in your private network. The switchclient.json file also supplies the switch server location, and certificates that are needed to securely communicate with the switch server.
Finally, start the secure agent by running a command with a parameter that points to the location of your updated switchclient.json file.
When you deploy a Designer integration from the App Connect Dashboard, any
account (of type Accounts
) that you set up to connect to the private network must
include the name of the private network connection so that the flow can use it for secure
connectivity. For Toolkit integrations, you set up secure connectivity by configuring SSH port
forwarding from a local port to the remote port (and host ) in the private network.
Creating a switch server
To configure secure connectivity between your containerized environment and your private network, you need a switch server in your cluster.
About this task
Use the same switch server with your App Connect Designer and App Connect Dashboard instances in your namespace.
Procedure
To create a switch server, complete the following steps:
When you create a switch server, the following changes are applied to your cluster:
- A
Private network connections
icon () and page are added by default to your App Connect Dashboard instance. (You might need to refresh your browser window or tab to view the icon for this page in the navigation pane.) You can use the
Private network connections
page to set up the configuration that is required to run the secure agent, as described later.If an App Connect Designer instance with a spec.switchServer.name setting exists in the same namespace, the
Private network connections
page is also added to this instance. - A configuration object of type
Private Network Agent
, which is namedswitchServerName-privatenetworkagent
, is created by default.Configuration objects of type
Agentx
(namedswitchServerName-agentx
) and typeAgentA
(namedswitchServerName-agenta
) are also created by default for callable flow and remote administration connectivity. For more information about these configuration objects, see Agentx type and AgentA type.You can see these configuration objects in the Configuration page in the App Connect Dashboard.
For connectors that support private network connections, a Private network connection field is also added to the connection fields that you complete when creating a connector account to use in your flows or Designer integrations.
What to do next
Configure a private network connection.
Configuring a private network connection
You configure a private network connection between a Designer or Toolkit integration in your cluster and an application in a private network by downloading the App Connect secure agent and its configuration file (switchclient.json) from your Dashboard instance, configuring the application endpoints in the file, and then starting the secure agent.
About this task
Private network connections are shared across App Connect Designer and App Connect Dashboard instances in the same namespace, and are visible on the
Private network connections
page in both instances. If you configure a
secure agent by using the secure agent file and the switchclient.json file that
you download from the App Connect Dashboard, you can also use the same secure
agent for your flows in App Connect Designer.
- If you are using both App Connect Designer and the Toolkit to develop
flows that you will later deploy as integration servers or integration runtimes from
the Dashboard, configure the private network connection from the
Private network connections
page in Designer. - If you are developing only Toolkit flows that you will later deploy as integration servers or integration runtimes from the Dashboard, configure the private
network connection from the
Private network connections
page in the Dashboard. - For simplicity, use a single private network connection and secure agent to configure
connectivity to your private network. You can either use the default private network connection on
the
Private network connections
page or create another.Alternatively, you can create multiple private network connections from the
Private network connections
page to run multiple secure agents. You might want to do so if you want to maintain separate groupings of endpoint information. - You can define multiple endpoints in the switchclient.json file that you use to configure the secure agent. If you need to specify endpoint information for new connections to your private network, you can update the switchclient.json file in the directory where you saved it.
Procedure
To configure a private network connection, complete the following steps:
What to do next
Associate this private network connection with connector accounts (in Designer flows or Designer integrations) that need to connect to your private network.
Connecting your integration to applications in the private network
To deploy an integration that uses the private network connection to access one or more applications in your private network, you need to create configuration objects that can be applied to the integration. The configuration types depend on whether you are deploying a Designer or Toolkit integration.
Integrations that connect to applications on the private network will work only while the secure agent is running.
Procedure
To configure an integration to connect to a private network, complete the following steps from your App Connect Dashboard instance:
Updating your private network connections or deleting a private network connection
You can update the endpoint definitions that are configured for the secure agent. You can also delete a private network connection if it's longer required.
Endpoint definitions are stored in the switchclient.json
file that you reference
when you run the command to start the secure agent.