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.
A tested connector JAR, its provisioning XML, and an agent that is Online under Configuration → Agents.
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 as | Where 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 Compose | The 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:
- If an earlier version of the connector is installed, delete its JAR from the connectors folder.
- Copy the new JAR into the folder, for example
scp target/cyiam-connector-helpdesk-1.0.0.jar admin@agent01:/opt/cyiam-agent/connectors/. - Restart the agent, for example
sudo systemctl restart cyiam-agent.
To install on an agent that runs with Docker Compose:
- Copy the connector's
Dockerfilefromconnector-template. It builds the JAR and packages it in a small installer image. - 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'sdepends_onwithcondition: service_completed_successfully. - 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:
- Write the provisioning XML, with the
connectorattribute set to exactly the value yourconnectorName()returns. See Provisioning XML. - 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.
- In the Zetect admin console, an administrator adds the application from the catalog and enters its connection settings. See Onboarding an Application.
- The administrator checks which operations are switched on for the application. See Controlling Allowed Operations.
- Run an account aggregation to confirm the connector can reach the target. See Aggregating Accounts and Entitlements.
Upgrading a connector
To upgrade a connector:
- Raise the version in
pom.xmland build the new JAR. - Remove the old JAR from the connectors folder or volume.
- Install the new JAR and restart the agent.
- Check that the
Registered connectorline 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
| Problem | What 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 connectors | The installer service must finish successfully before the agent starts. Check that it ran and exited with code 0. |
| An operation never reaches the connector | The 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 pending | No agent is online for the tenant. Check Configuration → Agents. |
