Install Connect Agent

The GridOS Connect Agent is only supported on version 1.16.0 or later. Make sure you have upgraded your GridOS Connect deployment to a supported version.

Prerequisites

Before you install the Connect Agent, make sure your environment meets the following system requirements:

Hardware

Connect Agent can only be installed on a 64-bit version of Linux. This can be on a dedicated server or virtual machine but must meet the following criteria:

Hardware Recommended minimum requirements

Processor

Dual 64-bit processors. More processors allow for increased, simultaneous flow executions.

Memory

4 GB of RAM. More RAM allows for increased, simultaneous flow executions and might be required to process large data payloads.

Hard disk

10GB. SSD based storage is recommended for the best performance.

Software

You will need to install Docker (with Docker Compose), version 20.10.0 or higher.

  • Remove unused container images after an upgrade to free up storage:

    docker image prune

Create an Agent in the Utilihive Console

To get started, first create an Agent in the Utilihive Console:

  1. Navigate to the Utilihive Console, and select Agents from the left navigation menu:

    The list of Connect Agent instances includes a name and an auto-generated ID.

  2. Select the Create Agent in the top right corner and enter a name, which generates the Agent ID.

The ID is required for your Utilihive Agent configuration and for the client mTLS certificate during the Utilihive Agent installation.

To view the Connect cluster certificate, select the information icon (ⓘ) for the agent you created.

A dialog box opens, where you can view the Connect cluster certificate and copy the certificate details.

Create a Zitadel Service User for the Utilihive Agent

To send deployment data to the Connect cluster, the Utilihive Agent authenticates by using the OAuth 2.0 client credentials grant.

Create a Zitadel service user and ensure the following:

  • One of the user groups in the data.groups array for the Zitadel Service User ConfigMap MUST be associated with the Utilihive Agent role. See Connect Roles and Permissions for more information about the available GridOS Connect roles.

  • Run the following command to retrieve your Client ID, Client Secret, and Zitadel project ID.

    kubectl get secret connect-deployer -o=yaml

    You can use the obtained values in your configuration file.

  • To retrieve the secrets, see the Zitadel service user credentials, run the kubectl commands and use the values in the configuration file.

Install the Connect Agent

Accessing the Connect Agent artifacts

The Connect Agent artifacts are available in GE Vernova Artifactory, if you don’t have access see the GE Vernova Electrification Software Customer Portal access section of the documentation.

If you are deploying to a machine with network access to Artifactory, login with your docker client.

docker login https://gart.software.gevernova.com

Deployment Artifacts for Air-Gapped Machines

If you are deploying to a machine with network access to the Artifactory, you can skip this section.
  1. Visit the connect-releases repository.

  2. Download the connect-agent-cache-container-{version}.tar.gz file to your deployment machine.

  3. Load the cache container contents to your local environment:

    # Load the Connect Agent cache image
    docker load < connect-agent-cache-container-{version}.tar.gz
    # Fetch the Connect agent docker images from the cache
    docker run --rm -it \
      -v ${PWD}:/app/artifacts \
      --entrypoint bash \
      grid-oslo-docker/connect-agent-cache:{version} -c 'cp data/connect-agent-images.tar.gz artifacts'
    # Extract connect-agent-images.tar
    tar xvfz connect-agent-images.tar.gz
    # Load the 4 Connect Agent images (vector, postgres, connect-agent and connect-agent-starter)
    docker load < connect-agent-images.tar
    # you can remove the intermediary container images and tarballs to free up storage
    docker rmi grid-oslo-docker/connect-agent-cache:{version}
    rm connect-agent-cache-container-*.tgz
    rm connect-agent-images.tar*

Target Machine Deployment Preparations

  1. On your deployment target Linux machine, create an installation directory. For example:

    export AGENT_INSTALL_DIR=~/connect-agent-installation
    mkdir -p $AGENT_INSTALL_DIR/cert

    Remove unwanted log archive files. These are stored as .gz files in the logging directory: ${AGENT_INSTALL_DIR}/data/connect-agent/logs.

  2. Visit the connect-releases repository.

  3. Download the connect-agent-{version}.zip file to your installation directory.

  4. Extract the zip file to your installation directory:

    cd ${AGENT_INSTALL_DIR}
    unzip connect-agent-{version}.zip
  5. To view the Foundation Root CA certificate, select Expand to see certificate. This certificate is your server-ca-cert. Copy the server-ca-cert PEM file to ${AGENT_INSTALL_DIR}/cert/ca.crt.

  6. Create client-ca-cert and upload the ca.crt certificate to the Connect Console (Security → Certificates → Create Certificate).

  7. Copy the client-crt PEM file to ${AGENT_INSTALL_DIR}/cert/client.crt.

  8. Copy the client-key PEM file to ${AGENT_INSTALL_DIR}/cert/client.key.

If you downloaded the Foundation Root CA Certificate from the Connect Console, rename the file to ca.crt and place it in the cert/ directory. The Connect Agent looks for the CA certificate by this exact filename in this directory.

Rename (or copy) the connect-agent-template.env file to its new name connect-agent.env.

Each new Connect Agent release will come with a (possible modified) version of this file. Hence, renaming it will ensure that the changes applied to this file will not be overwritten by a new release.

Open the new connect-agent.env file and fill in the following properties:

Property Description

CONNECT_AGENT_ID

The unique ID for this Connect Agent. This ID is provided when adding a new Connect Agent in the Connect Console. For example: 22027619-b6ed-43b3-9d9d-4223ff68b087.

CONNECT_OWNER_ID

The ownerId for the organization. As used in the deployment directory as well as the deployment config. For example: gridos.

CONNECT_DOMAIN

The FQDN for the main GridOS Connect cluster. See YOUR_FOUNDATION_DOMAIN in our installation documentation. This information can be found in the GridOS Connect Console, under the Agent settings. For a reference image, see Foundation Root CA Certificate section. For example: env-connect-pte-ingress.local.

DEPLOYMENT_ENVIRONMENT

The environment name of the main GridOS Connect cluster. As used in the deployment directory as well as the deployment config. For example: mvp.

DECRYPTION_KEY

Decryption key for credentials stored in connect-agent-override.properties. Optional. Only needed if the properties contain sensitive information. See how encrypted values are generated for more information.

POSTGRES_PASSWORD

Select a cryptographically secure password to be used for the Connect Agent PostgreSQL server running on the Agent environment. Do not change after first installation. For example: postgres.

DEPLOYMENT_PUBLISHER_CLIENT_ID

The client ID of the service user used for publishing to the upstream server API. Same as used for SDK deployer. This pertains to the section above. For example: connect-deployer@foundation.local.

DEPLOYMENT_PUBLISHER_CLIENT_SECRET

The client secret of the service user used for publishing to the upstream server API. Same as used for SDK deployer. This pertains to the section above. For example: sa2mkUusTKGn5PQ5nqXFYy4UUiKBeNvbha3FaG0ZBgnxjeVHD1UI0oE7b6eOyLx7.

DEPLOYMENT_PUBLISHER_SCOPE

The scope used for publishing to the upstream server API. Same as used for SDK deployer. This pertains to the section above. For example: openid urn:zitadel:iam:org:project:id:306865721310380478:aud urn:zitadel:iam:org:projects:roles.

DEPLOYMENT_PUBLISHER_HTTP_PROXY_URI

URI for HTTP proxy. (Optional)

DEPLOYMENT_PUBLISHER_HTTP_PROXY_USERNAME

The username which will be used for HTTP proxy authentication. (Optional)

DEPLOYMENT_PUBLISHER_HTTP_PROXY_PASSWORD

The password which will be used for HTTP proxy authentication. (Optional)

POLL_FREQUENCY_SECONDS

Number of seconds between each time the Connect Agent polls for new deployments (default is 120 seconds).

EXTRA_HOSTS

Optional extra host mappings added to the Docker containers' /etc/hosts. Use a comma-separated list of hostname:ip entries. The minimum configuration required for communication from Vector and Connect Agent to the main Connect cluster is EXTRA_HOSTS=zitadel.<DOMAIN>:<IP>,api.<DOMAIN>:<IP>,<organizationId>.mtls.<DOMAIN>:<IP>. Add more entries if your flows running on Connect Agent communicate with other services.
For example: EXTRA_HOSTS=zitadel.example.local:10.10.10.10,api.example.local:10.10.10.10,gridos.mtls.example.local:10.10.10.10

CONNECT_AGENT_PORT

Optional server port override. Defaults to 8080 when TLS is disabled and 8443 when TLS is enabled. The configured port is used for both the host and container server port; the management port remains 8090.

TLS_ENABLED

Set to true to enable HTTPS on the server port, which defaults to 8443, and management port 8090. Set CONNECT_AGENT_PORT to override the server port. See TLS for details.

TLS

TLS can be enabled to serve HTTPS on the Connect Agent’s main flow service port, which defaults to 8443, and management port 8090 used when deploying flows and resources to the Connect Agent. Set CONNECT_AGENT_PORT in connect-agent.env to override the server port. The override applies whether TLS is enabled or disabled and is used for both the host and container server port.

Certificates

On startup, if neither tls.crt nor tls.key exists, the Agent generates a server certificate and the certificate authority (CA) that signs it. It writes the CA certificate to tls-ca.crt and keeps the CA private key in tls-ca.key. The CA is valid for 10 years, and the server certificate for one year.

The Agent creates tls-ca.key with restricted access from the start. On Linux, its permissions are mode 600. On Windows, the file’s access-control list (ACL) grants access to the account running the Agent.

Optional: Bring Your Own Certificates

If you prefer to use your own certificates, create a cert/ directory in the Connect Agent installation directory and place the following PEM-encoded files in the cert/ directory before starting the agent:

File Description

tls.crt

Server certificate, signed by your CA.

tls.key

Private key for the server certificate.

The Agent renews a generated server certificate 30 days before it expires. It signs the replacement with the same CA, writes it to the same files and serves it without a restart. This 30-day lead does not change with the warning thresholds.

The Agent needs tls-ca.key to renew a server certificate. It checks that tls-ca.crt signed the tls.crt and that tls.key matches (i.e. private key corresponds to the public key in tls.crt). It leaves other supplied certificates alone and logs at INFO that any generated CA files are unused. If only one of tls.crt and tls.key exists, or they do not match, the Agent refuses to start.

To return to a generated certificate under the same CA, delete tls.crt and tls.key. The Agent generates replacements at startup or its next daily check. To start with a new CA, delete all four files: tls.crt, tls.key, tls-ca.crt and tls-ca.key. Clients must then trust the new tls-ca.crt. An older installation may have a generated certificate but no tls-ca.key; the Agent treats it as supplied and does not renew it. Delete all four files to move it to a renewable CA.

When a backup includes cert/, it holds tls-ca.key. Anyone who can read the key can issue certificates that clients trusting tls-ca.crt accept. Store the backup off the host where only administrators can read it.

These server certificates are solely for HTTPS termination on the Connect Agent ports. They are unrelated to the mTLS client certificates (client.crt, client.key) used by the agent for authenticated and authorized communication with the main Connect cluster.

Certificate expiry

At startup and once a day, the Connect Agent checks cert/client.crt and cert/ca.crt. When TLS is enabled, it also checks cert/tls.crt. The Agent writes WARN if a certificate expires within connect.agent.certificates.warn-before. It writes ERROR if a certificate expires within connect.agent.certificates.error-before or has expired. Each record names the certificate and file and gives its expiry time. Both application.log and delivery.log hold these records.

Set these thresholds in connect-agent.properties. The warning threshold defaults to 30 days and the error threshold to 7 days:

connect.agent.certificates.warn-before=30d
connect.agent.certificates.error-before=7d

The Agent sends the gauge metric connect_agent_certificate_expiry_timestamp_seconds to the Connect cluster. Each value is an expiry time in Unix seconds. Its certificate labels are:

Label Certificate

client

cert/client.crt

foundation-root-ca

cert/ca.crt

server

cert/tls.crt (TLS only)

The Agent sends no expiry metric for a certificate it cannot read.