Configured from Edge Manager
A print daemon can be managed from Edge Manager, the admin tool that configures every warehouse app of a site from
one place. In that mode Edge Manager sends the daemon its printers and settings, carries out test prints and dead-letter
actions, and licenses the daemon; the daemon has no local administration. Without it (the default), you configure the
daemon in its admin UI or in config.json as described on the other pages, with its own license key.
Licensed by Edge Manager#
A daemon has one of two licensing terms:
- Configured locally: its own license key, installed at the machine (License).
- Managed from Edge Manager: licensed by Edge Manager. It needs no key of its own, has no limits and no expiry of its own, and has no local administration (On the daemon).
Edge Manager is licensed per site: its license says how many print-daemon sites it may manage (across all its tenants), and Edge Manager refuses to add more. The daemon receives Edge Manager's license with its site token, and Edge Manager sends it renewals on the command queue. The daemon checks it on its own (it is signed; nothing is sent anywhere to check it):
- A license is taken only when it is valid as it arrives: not expired, with print-daemon sites.
- A paid Edge Manager license, once the daemon has taken it, licenses the daemon for good. When Edge Manager's license expires, Edge Manager stops; the daemon keeps printing as configured, it just can't be managed until Edge Manager is renewed.
- An Edge Manager trial licenses the daemon until the trial ends. Then the daemon runs as if configured locally (below) and needs its own license key, unless a paid Edge Manager license reached it first.
A daemon set up for Edge Manager that isn't licensed by it (an expired trial, or a site token without Edge Manager's license) runs as if configured locally, with its own license:
- its admin UI, admin API and CLI work as usual, and discovery adds printers when
discovery.autoAddis on; - configuration messages and actions from Edge Manager are refused: each goes to the dead-letter list
(without what it carried) with the reason
edge_manager_not_licensed: this print daemon is not licensed by Edge Manager; it is configured locally, and Edge Manager is told; - it still reports to Edge Manager, with
"config": { "source": "local", "requested": "cloud", "addon": false, ... }, so Edge Manager can show that the site isn't licensed by it.
The daemon follows its license while it runs: when Edge Manager's license reaches it, or a trial ends, it switches within a minute, without a restart. After a switch to Edge Manager, the next configuration Edge Manager sends replaces what was set at the machine; to keep that setup, adopt it in Edge Manager first (Move a daemon set up at the machine).
Connect a daemon#
A daemon is connected to Edge Manager with one string, the site token. Edge Manager shows it (with a copy button) when you add the site, change its queue settings, rotate its secret, or ask for a new one (Settings & connection page; it can be issued again any time, so copying it later is fine too). On the daemon's machine, run once:
node dist/cli.js connect <site token> # as root/Administrator for an installed service; "-" reads the token from stdinthen restart the daemon (or its service). That's all: no environment variables, nothing to add to config.json.
What connect does:
- It checks the token and sends a test report to Edge Manager, using the queue and credentials in the token. If that
fails (a wrong credential, a queue the daemon may not write to, no network), it says why, exits with code 1 and saves
nothing.
--skip-checksaves without sending, for a machine that is offline at install time. - It saves the token as
<home>/cloud(readable only by the service's account), takes Edge Manager's license from it, and says whether the daemon is licensed by Edge Manager (if not, it stays configured locally, and says why). - After the restart the daemon is managed from Edge Manager. In Edge Manager the site shows as connected.
Containers and secret stores: instead of connect, give the service the variable PRINT_DAEMON_CLOUD_TOKEN with the
token. It takes precedence over a saved token.
What the token holds: Edge Manager's license, the site's key id and signing secret, its command queue (where Edge Manager sends the configuration; print jobs on it print too), Edge Manager's fleet queue (where the daemon reports), and the daemon's key for both. So the token is a secret: anyone with it can receive the site's configuration and report as the site. Keep it like a password; get a new one in Edge Manager (rotate the site's secret) if it leaks.
The daemon's key#
Each daemon needs one credential of its own that may do exactly two things. On AWS, Edge Manager can create it for you when you add the site (with the site's queue: "Created by Edge Manager"); otherwise you create it and enter it once for the site in Edge Manager (Settings & connection page). It may:
- receive from the site's command queue (receive, delete, extend the visibility of a message);
- send to Edge Manager's fleet queue (the one queue every site reports to; Edge Manager's administrator gives you its address).
Edge Manager puts it into the token for both queues. Edge Manager itself sends to the command queue with its own access, never with the daemon's key. Give each daemon its own key, so a leaked one affects only that site.
AWS (SQS): an IAM user per daemon with an access key and this policy (your account, region and queue names):
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["sqs:ReceiveMessage", "sqs:DeleteMessage", "sqs:ChangeMessageVisibility"],
"Resource": "arn:aws:sqs:us-east-1:123456789012:whs1-commands"
},
{
"Effect": "Allow",
"Action": "sqs:SendMessage",
"Resource": "arn:aws:sqs:us-east-1:123456789012:Edge Manager-fleet"
}
]
}If the command queue receives print jobs that the WMS stores in S3 (extended payloads), add s3:GetObject (and
s3:DeleteObject when the daemon deletes them after printing) on that bucket.
Azure (Service Bus): a service principal with the role Azure Service Bus Data Receiver on the command queue and Azure Service Bus Data Sender on the fleet queue; or, when both queues are in one namespace, a connection string of a shared access policy with Listen and Send.
Google (Pub/Sub): a service account (its key file) with Pub/Sub Subscriber on the command queue's subscription and Pub/Sub Publisher on the fleet topic.
When the site's command queue is in another cloud than the fleet queue, one key can't do both: the site then also gets a separate fleet credential for the daemon (Edge Manager asks for it only in that case).
How the daemon reaches Edge Manager: it doesn't, directly. The key travels in the site token: connect sends its test
report to the fleet queue with it, and run receives from the command queue and reports to the fleet queue with it.
There is no network connection between the daemon and Edge Manager (Edge Manager stays private); both only talk to the cloud
queues, and the signature with the site's secret proves who sent each message. A site whose daemon key is set to the
default credential chain has no key in its token: the daemon then uses the credentials of its machine (environment,
~/.aws, an instance role), which need the same permissions.
Two things that cause an AccessDenied even with the right policy:
- Different AWS accounts: when the fleet queue is in Edge Manager's account and the daemon's IAM user in the customer's,
the fleet queue's own queue policy must also allow
sqs:SendMessagefrom that user (or account). The same holds for Edge Manager sending to a command queue in the customer's account. Within one account the IAM policy is enough. - Encrypted queues (SSE with your own KMS key): the daemon also needs
kms:Decrypton the command queue's key, andkms:GenerateDataKeyandkms:Decrypton the fleet queue's key.
A daemon with an invalid token (in PRINT_DAEMON_CLOUD_TOKEN or <home>/cloud) doesn't start: run says what is wrong
with it (never the token) and exits with code 1. A config.json that still has a management section (the way of
earlier test builds) is refused at start: remove it and connect with the token.
To configure the daemon locally again: node dist/cli.js disconnect, then restart. The configuration Edge Manager last
sent stays in config.json and can be edited at the machine again.
What Edge Manager sets#
Print jobs come on the command queue. A daemon configured from Edge Manager has no other queues: the WMS sends its print jobs to the site's command queue, the same queue Edge Manager sends the configuration on (owner decision 2026-11-05).
| Set by Edge Manager | Local to the daemon |
|---|---|
logLevel, the printers, discovery, printing (except the two paths), deadLetter, dedupe |
admin (where the admin UI listens), printing.libreOfficePath, printing.sumatraPdfPath, and the site token (command and fleet queue) |
A configuration from Edge Manager is refused as a whole when it names a local setting, has a setting the daemon doesn't know,
has job queues (queues), or contains a ${ENV_VAR} reference. The daemon then keeps what it runs, and Edge Manager shows
the problems.
How a configuration is applied#
- Each configuration has a version. The daemon applies one only when its version is higher than the one it runs; an older
or repeated one is ignored. The version it runs is kept in
<home>/remote-config.json, so a restart keeps it. - Every message is checked against the site's secret. A message that doesn't match is not applied: it goes to the daemon's dead-letter list, and Edge Manager is told it was rejected.
- Applied, it replaces what the daemon had:
config.jsongets the settings from Edge Manager plus the local ones above, and the printer list becomes the printers from Edge Manager. The queue consumers restart (the command queue keeps running) and the other settings take effect for the next jobs; the service isn't restarted. Without a valid license the queues stay paused (License), and so does the command queue: a configuration sent then is applied when printing resumes. - A daemon that isn't configured from Edge Manager refuses configuration messages: they go to its dead-letter list. So do configuration messages on any queue other than the site's command queue.
Move a daemon set up at the machine#
A daemon you set up at the machine (printers and queues added in its admin UI or CLI) keeps running that setup after you switch it to Edge Manager, until Edge Manager sends its first configuration, which replaces all of it. So that you don't have to enter it again, the daemon sends Edge Manager its setup:
- Connect it to Edge Manager (Connect a daemon) and restart it.
- Until Edge Manager has sent it a configuration, the daemon sends its setup with its first report after each start, and again when it changes. Nothing is sent once a configuration from Edge Manager was applied.
- In Edge Manager, the site page offers Adopt local setup… while the site has no configuration version yet. It opens the setup in the configuration editor, unsaved, with the values you have to enter.
- Enter the values: secrets never leave the daemon. A setting that used a
${ENV_VAR}reference is sent with the variable's name only. Save: this is the site's version 1. Then send it to the daemon as any version.
The setup includes the printers (with their connections, resolution and print defaults) and the discovery, printing,
dead-letter and dedupe settings, never the local ones (admin, the two program paths) or the site token's queues. Job
queues are not taken over: configured from Edge Manager, a daemon takes print jobs only on its command queue, so the WMS
sends its print jobs there. The first configuration from Edge Manager stops the job queues the daemon had.
Too large, or offline: a setup over the size of a fleet message (256 KiB; hundreds of printers) is not sent, and Edge Manager says so. Export it on the daemon's machine and paste it into Edge Manager's configuration editor instead:
node dist/cli.js config export -o local-setup.json # the same document; the values to enter are listed on stderrWhat the daemon reports#
On the fleet queue, signed with the site's secret, the daemon sends Edge Manager the result of each configuration message (applied, rejected with the problems, or ignored) and a summary: its version, license status, the configuration version, its printers, its queues (running or paused), the number of dead-lettered jobs, and the printers discovery found that aren't in its configuration. Document printers come with their paper trays, which Edge Manager shows on the printers tab and copies into a printer added from discovery (Printers › Paper trays). The summary goes out at start, every 5 minutes, after a configuration was applied, and after a discovery run that found a new printer. Until a configuration from Edge Manager was applied, it also sends its local setup (Move a daemon set up at the machine). While the fleet queue can't be reached, the daemon keeps up to 200 reports and retries.
Actions from Edge Manager#
Besides configuring a daemon, Edge Manager can ask it to act, from the site's page:
- Test print on one of the site's printers (label printers: also your own ZPL).
- Run discovery now: the result shows in Edge Manager as the printers discovery found.
- Dead letters: list the daemon's dead-lettered jobs, re-send them (as they are) or delete them.
Each request is signed with the site's secret, travels on the command queue like a configuration, and the daemon answers on the fleet queue (done, failed with the reason, refused, or expired). A request is valid for 10 minutes: if the daemon is off, it isn't carried out later. Each request runs once, even if the queue delivers it twice. A request with a wrong signature is not carried out and goes to the daemon's dead-letter list (without what it carried).
On the daemon#
Managed from Edge Manager, the daemon has no local administration: everything is done in Edge Manager.
- Admin UI: shows only a notice that the daemon is managed by Edge Manager.
- Admin API: every
/apirequest answers409with{"error": "...", "code": "managed_by_edge_manager"}(after the token check).GET /v1/info,GET /healthzand these docs stay available. - CLI: configuration changes (
printers add,printers remove,queues remove,printers scan-ranges --set | --clear | --community | --auto-add),printers test,printers discover,dead-letters resend | deleteandlicense installexit with code 1 and say the daemon is managed from Edge Manager. Reads (status,printers list,dead-letters list,license) andconnect,disconnectandservicestill work: they need an administrator of the machine. The CLI usually runs without the service's environment, so it goes by what the daemon recorded in<home>/remote-config.jsonwhen it last started or switched (or by a site token it can read and the Edge Manager license the daemon took). - Discovery adds no printers: it only reports what it finds to Edge Manager (whatever
discovery.autoAddsays). GET /v1/infoincludesconfigSource:{ "source": "cloud", "requested": "cloud", "addon": true, "edgeLicense": "EM-0003", "keyId": "acme:WHS1", "version": 12, "appliedAt": "..." }(sourceislocalandaddonisfalsewhile it isn't licensed by Edge Manager), and itslicenseshows"source": "edge-manager"with Edge Manager's licensee and license id.
To manage the daemon locally again: disconnect and restart (Connect a daemon). It then needs its own
license key. The CLI follows once the daemon has started.
Security#
- The configuration from Edge Manager carries queue credentials (connection strings, access keys, client secrets,
service-account keys) inline and is written to
config.json, like a connection string entered in the admin UI. Keep<home>restricted (Admin UI & CLI › Security). - A refused configuration message is kept in the dead-letter list without the configuration it carried (only the reason and the message's envelope), since it may hold credentials.
- Anyone who can send to the command queue can send print jobs, as on any queue; only Edge Manager, which holds the site's secret, can change the configuration.