Configure the Alation Agent

Alation Cloud Service Applies to Alation Cloud Service instances of Alation

On an existing Alation Agent, you may need to update various configurations, such as:

Configure Agent Address

You may need to update the Agent’s address configuration if the Agent is in a disconnected status.

To update the Agent’s address configuration:

  1. Look up the Alation Cloud Service connectivity endpoint for your region in the following table.

    Geography

    Location

    Agent Connectivity Endpoint

    Africa, Europe, & Middle East

    Frankfurt

    ocf.euc1.eu.alationcloud.com

    Dublin

    ocf.euw1.eu.alationcloud.com

    Americas

    Montreal

    ocf.cac1.ca.alationcloud.com

    Virginia

    ocf.use1.alationcloud.com

    Oregon

    ocf.usw2.alationcloud.com

    Asia Pacific

    Mumbai

    ocf.aps1.ap.alationcloud.com

    Singapore

    ocf.apse1.ap.alationcloud.com

    Sydney

    ocf.apse2.ap.alationcloud.com

    Tokyo

    ocf.apne1.ap.alationcloud.com

  2. If your organization uses a Web Application Firewall (WAF), inform your firewall admin to allow the Alation Cloud Service connectivity endpoint to pass through.

  3. The Agent configuration file is located on the Agent host machine at /etc/hydra/hydra.toml. Edit the file using your preferred text editor. You may need to use sudo privileges.

  4. In hydra.toml, look for the address line. Replace the address value inside the quotation marks with the Alation Cloud Service connectivity endpoint you obtained earlier. If the address is already correct, you don’t need to do anything else.

  5. Restart the agent by running the following command:

    sudo hydra restart
    
  6. In Alation, return to the Agents Dashboard and verify that the Agent is now connected to Alation.

Connect with a Proxy

If your network routes outgoing traffic through an HTTP CONNECT proxy, you need to:

  • Add the Alation Cloud Service connectivity endpoint to your proxy server’s allow list.

  • Add the proxy’s address to the Agent configuration file.

Proxy Allow List

You will need to add the Alation Cloud Service connectivity endpoint to your proxy server’s allow list so the Agent can reach your Alation Cloud Service instance.

The Alation Cloud Service endpoint is shown on the address line of the Agent installation command. This is the same address that should be in your Agent configuration file at /etc/hydra/hydra.toml.

Add Proxy Address to Agent Config

This is done on the Agent’s host machine. The steps depend on whether your proxy requires authentication.

  • No Authentication

    For proxies that don’t require authentication, edit /etc/hydra/hydra.toml to add the following line:

    web_proxy = "<proxy-address>:<proxy-port>"
    
  • Basic Authentication

    Starting with Agent version 1.2.1.1168, you can route the Agent through proxies that require basic authentication. Edit /etc/hydra/hydra.toml to add the following line:

    web_proxy = "<username>:<password>@<proxy-address>:<proxy-port>"
    

    Replace the parts in angle brackets with the appropriate information for your proxy. Don’t include the angle brackets. Do include the quotes. The proxy address can be a domain name or an IP address. If no port is provided, the Agent defaults to port 80.

    Here’s an example with basic authentication:

    web_proxy = "jane:[email protected]:3128"
    

Set CPU Shares

To control the CPU resources allocated to the Alation Agent’s containers, you can set the cpu_shares property in the Agent configuration file. The cpu_shares property maps directly to Docker’s concept of CPU shares. If set, all containers launched within the Agent will inherit the setting, including connectors and system components such as the agent and proxy containers. For more information on CPU shares, please see Docker’s official documentation on Resource constraints.

To set the cpu_shares property, add the following lines to /etc/hydra/hydra.toml on the Agent machine. Replace the value of cpu_shares with the desired number of CPU shares.

[agent.resources]
cpu_shares = 1024

If your Agent is currently running, restart it for the change to take effect:

sudo hydra restart

Prevent New Privileges

To prevent privilege escalation in the Alation Agent’s containers, you can set the no_new_privileges property in the Agent configuration file. The no_new_privileges property maps directly to the Docker run option --security-opt no-new-privileges. If set, all containers launched within the Agent will be restricted so that no software can execute setuid nor setgid commands.

To set the no_new_privileges property, add the following lines to /etc/hydra/hydra.toml on the Agent machine.

[agent.containers]
no_new_privileges = true

If your Agent is currently running, restart it for the change to take effect:

sudo hydra restart