Zetect Connector Guide Back to zetect.inSwitch portal ⇄

Deploying a Connector

Install the connector JAR on the agent that serves your tenant, then make the application available in Zetect through an App Catalog entry. The JAR holds no tenant or target settings; Zetect sends the connection settings with every request.

Prerequisite

A tested connector JAR, its provisioning XML, and an agent that is Online under Configuration → Agents.

Required permission

Access to the agent host, access to the App Catalog, and administrator access to the console to onboard the application.

Installing the JAR on the agent

Where the JAR goes depends on how the agent runs.

Agent runs asWhere to put the JAR
A Java service (systemd, launchd or a terminal)The folder set by CYIAM_CONNECTORS_DIR. The installation guide uses /opt/cyiam-agent/connectors; if the variable isn't set, it is ./connectors relative to the agent's working folder.
Docker ComposeThe shared connectors volume (named cyiam-agent-connectors), which the agent mounts read-only at /opt/cyiam-agent/connectors. Because the mount is read-only, copy the JAR into the volume, not into the running agent container.

To install on an agent that runs as a Java service:

  1. If an earlier version of the connector is installed, delete its JAR from the connectors folder.
  2. Copy the new JAR into the folder, for example scp target/cyiam-connector-helpdesk-1.0.0.jar admin@agent01:/opt/cyiam-agent/connectors/.
  3. Restart the agent, for example sudo systemctl restart cyiam-agent.

To install on an agent that runs with Docker Compose:

  1. Copy the connector's Dockerfile from connector-template. It builds the JAR and packages it in a small installer image.
  2. Add an installer service for the connector to the agent's docker-compose.yml, copying one of the existing connector services, and add it to the agent's depends_on with condition: service_completed_successfully.
  3. Run docker compose up -d --build. The installer copies the JAR into the volume and exits, then the agent starts and loads it.

For a one-off copy without an installer image, you can copy the JAR into the volume with a short-lived container, then restart the agent:

docker run --rm -v cyiam-agent-connectors:/connectors -v "$PWD/target":/src busybox \
  cp /src/cyiam-connector-helpdesk-1.0.0.jar /connectors/
docker restart cyiam-agent

Whichever way you install, confirm the agent log shows Registered connector 'Helpdesk' from cyiam-connector-helpdesk-1.0.0.jar with the version you expect.

Making the application available in Zetect

Zetect learns which connector an application uses from the App Catalog. The catalog entry's provisioning XML sets the connector name, the operations Zetect may send, and the settings administrators fill in.

To make the application available:

  1. Write the provisioning XML, with the connector attribute set to exactly the value your connectorName() returns. See Provisioning XML.
  2. In the App Catalog, add the application, tick PROVISIONING under Application Type, choose the file under Provisioning XML and select Save. See Uploading the file to the App Catalog.
  3. In the Zetect admin console, an administrator adds the application from the catalog and enters its connection settings. See Onboarding an Application.
  4. The administrator checks which operations are switched on for the application. See Controlling Allowed Operations.
  5. Run an account aggregation to confirm the connector can reach the target. See Aggregating Accounts and Entitlements.

Upgrading a connector

To upgrade a connector:

  1. Raise the version in pom.xml and build the new JAR.
  2. Remove the old JAR from the connectors folder or volume.
  3. Install the new JAR and restart the agent.
  4. Check that the Registered connector line shows the new file name.

Requests that arrive while the agent restarts wait in the tenant's queue and are processed once it is back. If the upgrade also adds settings, attributes or operations, update the catalog entry's provisioning XML as well. Applications already added from the catalog keep the settings they were created with.

Troubleshooting

ProblemWhat to check
Requests fail with "No connector registered for"The JAR isn't on the agent that took the request, the agent wasn't restarted, or the catalog's connector value doesn't match connectorName().
Docker agent finds no connectorsThe installer service must finish successfully before the agent starts. Check that it ran and exited with code 0.
An operation never reaches the connectorThe operation isn't in the provisioning XML's features list, or an administrator switched it off. Zetect doesn't send operations an application doesn't allow.
Requests stay pendingNo agent is online for the tenant. Check Configuration → Agents.