Print Room HQ Setup guide Download the beta

Print Room HQ for IT teams

Running Print Room HQ for a company, a school or a lab? A policy file on the server sets the rules, and nobody can loosen them from the app: required sign-in, single sign-on, two-step codes, roles, an audit log you can send to your collector, encrypted daily backups, and limits on what the deck reaches.

In Print Room HQ: Settings › Organization › Security

What you need

  • Print Room HQ 4.3 or later, installed on a server you run (a Mac, a Windows PC or Linux, or Docker).
  • Someone who can write files on that server and restart the service.
  • For HTTPS: a reverse proxy holding your certificate. Print Room HQ doesn’t terminate TLS itself.
  • For single sign-on: an app registration with your identity provider.

How the policy works

The policy is a JSON file named enterprise.json, in the deck’s config folder beside printers.json. To keep it somewhere else, set the environment variable PRHQ_POLICY to its full path. Print Room HQ reads it once, when it starts. Nothing in the app writes it, and no setting on any page can loosen it.

  • No file: the deck behaves like any home deck.
  • A valid file: its rules apply, and the owner and auditors can read them in plain words on the Security page.
  • Anything else (a file that can’t be read, isn’t valid JSON, has a setting this version doesn’t know or a value of the wrong kind): the deck does not start. It shows one locked page listing the problems, and nothing else. A typo like requireSignin would otherwise quietly switch a rule off, so a policy that can’t be read never becomes “no policy”.

Each setting is optional; one left out keeps the home behavior for that one thing. Change the file, then restart Print Room HQ.

A policy to start from

This one requires everyone to sign in with their own name and an authenticator code, puts the deck behind a reverse proxy on the same server, keeps remote access and public links off, and writes an encrypted backup every night. Adjust the addresses and paths to yours.

{
  "version": 1,
  "requireSignIn": true,
  "localScreen": false,
  "bind": "127.0.0.1",
  "trustedProxies": ["127.0.0.1"],
  "https": true,
  "minPasswordLength": 12,
  "namedSignIn": true,
  "lockout": { "tries": 10, "minutes": 15 },
  "sessionIdleMinutes": 60,
  "sessionMaxHours": 12,
  "twoFactor": "required",
  "relay": false,
  "publicLinks": false,
  "updateCheck": false,
  "tokenMaxDays": 90,
  "outbound": { "allow": ["login.microsoftonline.com"] },
  "auditForward": { "syslog": { "host": "siem.example.internal", "port": 6514, "protocol": "tls", "caFile": "/etc/printroomhq/siem-ca.pem" } },
  "backups": { "folder": "/mnt/backups/printroomhq", "keyFile": "/etc/printroomhq/backup.key", "at": "02:30", "keep": 14 }
}

On first start the server’s log prints a one-time setup code. Open the deck, type that code and choose the owner’s sign-in name and password. Everyone else is added on the Team page, or arrives through single sign-on.

Every setting

SettingValuesWhat it does
version1Required. The format of the file, so a later format is never half understood.
requireSignIntrueNobody uses the deck without signing in. Until the owner’s password exists, the only page served is the first-run page that sets it, with a one-time code printed in the server’s log. The password can’t be removed afterwards.
localScreenfalseA browser on the server itself signs in like anyone else. Without it, the deck’s own screen is the owner.
bindan addressThe one address to listen on, such as 127.0.0.1 behind a reverse proxy on the same server.
trustedProxiesaddresses or CIDR rangesThe reverse proxies whose X-Forwarded-For is believed. From anywhere else, the connection’s own address counts, whatever the headers say. CF-Connecting-IP, X-Real-IP and Forwarded are never read. A proxy on the same server needs localScreen: false.
minPasswordLength4 to 64The shortest password the deck accepts. Common passwords and ones containing the sign-in name are refused too.
allowlistaddresses or CIDR ranges, or { "range", "label" }The only addresses that get any answer at all, checked before sign-in on every request. The server itself isn’t exempt: list 127.0.0.1 if something on it must reach the deck. An empty list is refused.
httpstruePeople reach the deck over HTTPS through your proxy. Sign-in cookies are marked Secure and every answer carries Strict-Transport-Security.
relayfalseRemote access through printroomhq.app can’t be turned on and never connects.
publicLinksfalseThe pages that open by their own link without a sign-in (send me a print, watch a print, accept a quote) answer “not found”.
updateCheckfalseThe deck never contacts printroomhq.com for updates. The owner installs update files by hand.
outbound{ "allow": [...] }The deck connects only to private addresses, .local names and what the list names: a host name, *.example.com, an address or a CIDR range. Everything else is refused at the connection and shown on the Security page.
tokenMaxDays1 to 366Every API token expires at most this many days after it was made.
voiceControlfalseThe spoken “Hey Deck” listener can’t reach the deck.
auditRetentionDays30 to 3650How long the audit log is kept. 365 when left out.
auditForward{ "syslog": {...} } or { "https": {...} }A copy of every audit line goes to your collector as it’s written. See The audit log.
jobRecordstrue or { "require": ["partNumber", "revision"] }Every job gets a number, who asked for it and the SHA-256 of its file, kept through to the print’s history. require makes the listed fields mandatory.
namedSignIntruePeople sign in with a sign-in name and a password. A password the owner sets for someone is temporary: they choose their own at first sign-in.
lockout{ "tries": 3–20, "minutes": 1–1440 }Wrong passwords in a row lock that sign-in name for a while. With namedSignIn it defaults to 10 tries and 15 minutes. Names that don’t exist lock the same way, so a lock doesn’t reveal whether an account exists.
sessionIdleMinutes5 to 10080A browser nobody has used for this long is signed out. A page left open on a wall isn’t “use”.
sessionMaxHours1 to 4320A sign-in ends this long after it was made, used or not.
twoFactor"required" or "optional"After the password, a six-digit code from an authenticator app. See Two-step sign-in.
ssoan objectSign-in with your organization’s accounts through OpenID Connect. See Single sign-on.
uploads{ "maxMB", "types", "archiveMaxMB", "archiveMaxEntries" }Limits on files brought to the deck: size (up to 2048 MB), allowed file endings, and how big and how many entries an archive may unpack to.
backupsan objectAn encrypted full backup to a folder every day. See Encrypted backups.

Behind a reverse proxy, with HTTPS

Put the deck on 127.0.0.1 with "bind" and let your proxy hold the certificate. Name the proxy in "trustedProxies" so the deck believes its X-Forwarded-For, and set "localScreen": false so the proxy’s requests aren’t taken for the deck’s own screen (the deck refuses the combination otherwise). The deck uses websockets, and uploads can be large, so pass both through. An nginx example (Print Room HQ listens on port 8080 unless its config says otherwise):

server {
  listen 443 ssl;
  server_name printroom.example.com;
  ssl_certificate     /etc/ssl/printroom.crt;
  ssl_certificate_key /etc/ssl/printroom.key;
  client_max_body_size 2g;

  location / {
    proxy_pass http://127.0.0.1:8080;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto https;
    proxy_read_timeout 1h;
  }
}

The deck reads the forwarded addresses from the right, skipping the proxies you named, so an address a client types into the header is ignored.

Sign-in, lockouts and sessions

With "namedSignIn": true everyone signs in with a name and a password. The owner chooses the owner’s sign-in name at first run. A password the owner gives someone works once, to choose their own, and can’t be used for anything else. Passwords shorter than minPasswordLength, common ones and ones containing the sign-in name are refused.

After lockout.tries wrong passwords in a row, that name is locked for lockout.minutes. The owner can unlock a person sooner on the Team page. Signing someone out, removing them or removing a token closes their open connections at once, and sends their page back to sign-in.

Two-step sign-in

With "twoFactor" set, the password is followed by a six-digit code from an authenticator app such as Microsoft Authenticator, Google Authenticator or 1Password. These are standard time-based codes (TOTP, RFC 6238). "required" walks everyone without an app through setting one up at their next sign-in, owner included; "optional" lets each person choose. There are no text-message or email codes.

  • Setting up shows a QR code and the key to type, then ten one-time recovery codes, shown once. The deck keeps only their hashes.
  • A code is accepted once, with 30 seconds of clock difference either way. Wrong codes count toward the same lockout as wrong passwords.
  • A person who loses their phone uses a recovery code, or the owner clears their two-step on the Team page.
  • If the owner loses both the phone and the recovery codes, someone with access to the server stops Print Room HQ, runs node src/cli/reset-owner-two-step.js <the deck’s data folder> in the Print Room HQ folder, and starts it again. The tool refuses while the deck is running, and the next start writes the reset into the audit log.

Single sign-on

With the "sso" setting, people sign in with their organization account through any OpenID Connect provider: Microsoft Entra ID, Okta, Google Workspace, Keycloak and others. The deck never sees their password. Their groups (or app roles) decide their role on the deck, and anyone without a mapped group is refused. People appear on the Team page the first time they sign in.

"sso": {
  "issuer": "https://login.microsoftonline.com/<tenant id>/v2.0",
  "clientId": "<application (client) id>",
  "clientSecretFile": "/etc/printroomhq/sso-secret",
  "redirectUri": "https://printroom.example.com/api/access/sso/callback",
  "roles": {
    "owner":    ["<IT admins group id>"],
    "operator": ["<print room staff group id>"],
    "auditor":  ["<compliance group id>"],
    "viewer":   ["<engineering group id>"]
  },
  "label": "Example Corp account"
}
  1. Register an app with your provider: a web app, with the redirect address set to the deck’s own HTTPS address followed by /api/access/sso/callback, exactly as in "redirectUri".
  2. Make a client secret and save it in a file on the server that only the Print Room HQ service can read. The policy names the file; the secret is never in the policy, any page or any log.
  3. Put groups in the ID token (in Entra ID: Token configuration › Add groups claim) and list their IDs under "roles". If people are in too many groups for the token to hold them, map app roles instead and set "roleClaim": "roles".
  4. Allow the provider in outbound.allow if you use an outbound rule, and restart Print Room HQ.
  • What’s checked: the authorization code flow with PKCE (S256), a state and a nonce, and a cookie that ties the answer to the browser that started it. The ID token’s signature is checked against the provider’s published keys (RS256/384/512, PS256, ES256/384; never none or a shared secret), along with its issuer, audience, times and nonce. Each answer is accepted once, within 10 minutes.
  • Roles: someone in two mapped groups gets the higher role. Roles are read at each sign-in. A change in your directory takes effect at the person’s next sign-in; sessionMaxHours limits how long that can take.
  • Passwords: by default ("passwords": "owner") only the owner’s own password still works, as a way in when your provider can’t be reached. "everyone" keeps deck passwords working alongside.
  • MFA: sign-ins through your provider use its own checks, such as Conditional Access and MFA, not the deck’s two-step codes.
  • "caFile" trusts a private certificate authority for the provider. "scopes", "loginClaim" and "nameClaim" change what’s asked for and which claims name the person.

Roles

  • Owner. Everything, including settings and the team.
  • Operator. Runs the print room: printers, the queue, the Stockroom, spools, maintenance and the printing side of orders. No settings, quotes, invoices or customers.
  • Viewer. Looks at printers, the queue, history, spools and health. Changes nothing.
  • Requester. Sees what a viewer sees and can add a job to the queue. It waits, held, until an operator or the owner releases it.
  • Auditor. Sees what a viewer sees, plus the policy in words, the audit log and the state of the backups. Changes nothing, not even “Back up now”. Only on decks with a policy.

The deck checks every request against the role on the server. A button someone shouldn’t have does nothing even if they find a way to press it.

The audit log

With a policy, the deck keeps an audit log of every change and every refusal: sign-ins and failed sign-ins, lockouts, people and roles, settings, printer controls, queue changes, backups, downloads, files refused, and connections the outbound rule stopped. Each line says who, from which address and when. A change that was refused says so and gives the deck’s reason. Passwords, codes, tokens and what was typed into forms are never written.

Each line is sealed to the one before it with a hash, so a line changed or removed later shows up when the chain is checked (Security › Check the chain). The owner and auditors can search it and download it as JSON lines. Someone who controls the server could still delete the whole log, so for evidence you can rely on, send a copy off the server as it’s written:

"auditForward": { "syslog": { "host": "siem.example.internal", "port": 6514, "protocol": "tls", "caFile": "/etc/printroomhq/siem-ca.pem" } }

"auditForward": { "https": { "url": "https://collector.example.internal/printroomhq", "tokenFile": "/etc/printroomhq/collector-token" } }

Syslog lines are RFC 5424 over TLS, TCP or UDP (UDP can’t confirm what arrived). The HTTPS collector is sent batches of JSON lines (application/x-ndjson), with the token from its file as a bearer token. If the collector is down, lines wait on the deck and go when it’s back; the Security page shows how many are waiting.

Encrypted backups

With "backups", the deck writes a full backup every day at "at" (the server’s own time) to "folder", usually a share your backup system already protects. If the server was off at that time, the backup runs when it starts; if a run fails, it tries again every hour and the owner gets one alert.

  1. Make a key file on the server and keep a copy somewhere apart from the backups, such as your password vault: openssl rand -base64 48 > /etc/printroomhq/backup.key, readable only by the service.
  2. Create the folder (outside the deck’s own data folder) and make sure the service can write to it.
  3. Add the setting and restart. The Security page shows the next run, the kept files and the key’s fingerprint; the owner can press Back up now.
  • Each backup is encrypted on the way out (AES-256-GCM in sealed 1 MB records, the key derived from your key file). A changed, reordered, cut-short or extended file won’t open. Nothing unencrypted is written to the folder.
  • Each one is read back in full before it’s kept. The newest "keep" (14 unless set) stay, and the deck only ever removes backups it made itself.
  • Backups include the deck’s secrets, such as printer access codes, unless "secrets": false.
  • Restoring: a deck with the same key file in its policy restores a .prhqbak in Settings › Deck › Maintenance › Bring a deck over. On any other computer, node src/cli/open-backup.js <file> <key file> <out.zip> checks a backup and writes its zip.
  • Lose the key file and the backups can’t be opened by anyone, including us. A new key file applies to new backups only.

The owner can also download a backup (without the secrets) from any browser they’re signed in on at your site. The download is recorded in the audit log.

What the deck reaches, and what reaches it

  • Inbound: "allowlist" answers only the addresses you list; "bind" chooses the one address it listens on; "publicLinks": false turns off the link-only pages; "relay": false keeps remote access off.
  • Outbound: with "outbound", the deck connects only to private addresses, .local names and what you list. That covers the printers on your network; list anything else a feature needs, such as your identity provider or Claude’s API. Refused hosts appear on the Security page with how many times and when.
  • Printers: the deck talks to each printer with that printer’s own local protocol and access code, as its maker designed it. A policy doesn’t change a printer’s own security. Check each model’s own options with its maker.
  • Files: "uploads" limits size, file types and how far archives may unpack. Refused files are in the audit log with who sent them.
  • Updates: with "updateCheck": false the owner installs update files from Settings › Deck › Maintenance. Installing a version that isn’t newer asks to confirm first.
  • Data to outside services: features that use Claude or other online services only work when the owner sets them up, and only reach hosts your outbound rule allows. Leave them off if your policy doesn’t permit sending files out.

When the deck is stopped, moved or on standby

A deck that was stopped, retired after a move, or is waiting on standby shows one small page in its place. Under a policy that requires sign-in, its one button (Start, Bring this deck back, Take over) asks for the owner’s password and, with two-step on, a code. Five tries a minute are allowed per address, and every press and refusal goes into the audit log at the next start.

Before you go live

  1. Start the deck with your policy and read the Security page: it should say what you meant.
  2. Sign in as each role and confirm what each can and can’t do.
  3. Try a wrong password until the name locks, then unlock it from the Team page.
  4. Sign in through your provider with someone in each mapped group, and with someone in none (they should be refused).
  5. Check the audit log reaches your collector, and press Check the chain.
  6. Press Back up now, then open that backup on another computer with open-backup.js and your key file.
  7. From a computer outside the allowlist, confirm the deck doesn’t answer.

What it doesn’t do

  • It doesn’t terminate TLS; your reverse proxy does.
  • No SAML, SCIM provisioning, passkeys, or signing out of your provider when someone signs out of the deck.
  • Print Room HQ doesn’t hold security certifications. This page says what it does so you can judge it against your own requirements.

If something’s not right

The deck shows a locked page instead of starting.

The policy file has a problem. The page and the server’s log list each one, such as a setting this version doesn’t know or a value of the wrong kind. Fix the file and restart.

Someone is locked out of their sign-in name.

Wait for the lock to end, or unlock them on the Team page. The audit log has the address the wrong passwords came from.

“Your account signed in, but it isn’t in a group that has a role on this deck.”

Their ID token didn’t carry any value listed under sso.roles. Check the group IDs, that the token includes groups (or app roles, with "roleClaim": "roles"), and whether the audit log says the provider left groups out for someone in too many.

“This deck couldn’t reach your organization’s sign-in service.”

The deck couldn’t reach the issuer. Check DNS, your firewall and outbound.allow. The owner’s own password still works meanwhile, unless you set "passwords" otherwise.

Last night’s backup didn’t work.

The Security page and the audit log say why, usually a folder that isn’t mounted or writable, or a key file that can’t be read. The deck tries again every hour.