An Agent on Every Server, or Deploy Through an SSH Relay?
Per-server agents and SSH relays differ less in install count than in where credentials live, how existing privileged access controls apply, who owns updates, and how far a failure spreads. A twelve-server comparison and two adoption tests.
There are eight application servers and four batch servers. Operations doesn't want to install one more program on all twelve. Security doesn't want a single relay that can reach all twelve. To decide which concern weighs more, draw the same deployment both ways.
With node agents, an agent installed on each server receives the job and runs it locally. With an SSH relay, a relay in the management zone connects over an approved path and works as the deploy account on each target. Automation tools like Ansible, which connect from a control node to managed hosts over SSH, are the familiar example of the second model.
Choosing between agents and an SSH relay comes down less to how many installs you need and more to where credentials live, whether your existing access controls can identify automation accounts, and how far one failed component's impact spreads.
How do the two models answer the same operational questions?
| Operational question | Per-server agent | SSH relay |
|---|---|---|
| Where do credentials live? | Each node holds its own enrollment credential, renewed and revoked individually | The relay stores per-target credentials or obtains short-lived ones from an approved secrets store |
| How do existing access controls apply? | Agent traffic and local execution logs are connected to existing control procedures | Verify that the automation account can go through the access gateway and that targets and actions are logged |
| Who handles updates? | Per-node versions, failed updates, nodes that have been offline for a long time | Relay updates, redundancy, and per-target connection policy |
| What happens if one component stops? | A single node failure usually affects new jobs on that server only | A relay failure affects new jobs for every server that relay covers |
What comes after "Is SSH open?"
The question that settles it is: can the access control system your people use today also identify an automation service account and tie each session to an approved change? If humans can only connect after one-time authentication, an open port doesn't mean a deploy path for service accounts exists yet.
On the other hand, even if agents look better, you should be able to explain how a server that was powered off for three months re-enrolls after a certificate rotation. Install count is a day-one cost. Updates and decommissioning are costs you carry for as long as you run the product.
Which adoption tests should you run?
The first test is revoking deploy rights on one of the twelve servers while the other eleven keep deploying. Then stop one agent, or the relay, and observe which jobs wait and who restores them. Those two tests make the operational responsibility and the level of failure isolation much clearer.
Whichever model you pick, it's worth dropping the assumption that an internal network is safe by default. Identifying the connecting party every time and binding it to an approval is the same idea discussed in What Zero Trust means in an air-gapped network. If you choose agents, the setup that avoids new inbound ports is described in Delivering deploy jobs without opening a new inbound port.
- #deployment
- #security
- #infrastructure
- #on-prem
- #architecture