Security & procurement

Security architecture of the hosted service

How CardOffice is built and what protects your data, written for the security, privacy and procurement teams assessing us as a supplier. Version 0.1, 3 December 2026.

Purpose and scope

This document describes the technical and organisational measures that protect customer data in the hosted CardOffice service, operated by Secure ID Limited. It is the Security Architecture document referred to in clause 3.1 of the Data Processing Agreement, and it is written for the security, privacy and procurement teams assessing CardOffice as a supplier.

It covers the hosted service at app.cardoffice.nz and the on-site agents that connect to it. A self-hosted deployment runs the same software, but its hosting, network, backups and administrator access are the customer's, so the hosting, network and backup sections apply to it only as a reference design.

Service levels are set out in the SLA, and a summary for procurement is on the security page. Where this document and the DPA differ, the DPA prevails. We update this document when the measures change, and never in a way that weakens overall protection.

Architecture overview

CardOffice runs as one web application in front of a database, an audit log and a private photo store, all on one server in Auckland, and every connection reaches it through a single TLS front door.

Who connects

  • Staff and cardholders, in a browser
  • Customer systems: the API, SCIM and webhooks
  • On-site agents for printing, encoding, records sync and access control
  • Named administrators, over SSH with keys only

What runs, in Auckland

  • One TLS front door (Caddy) with post-quantum key exchange
  • The CardOffice web application
  • PostgreSQL with row-level security and the audit log
  • A private photo store and a password-protected cache

What leaves the server

  • Encrypted backups, to New Zealand storage and our own second copy
  • Outgoing email, through Postmark
  • Wallet passes, to Apple or Google, only if switched on

Staff, cardholders, customer systems and on-site agents all connect in over HTTPS; nothing on the server is reachable any other way except SSH for named administrators. Only three things leave the server: encrypted backups, outgoing email, and wallet passes where the customer has switched them on.

Hosting and data location

Customer data is stored in New Zealand. The application, database and photo store run on a virtual server hosted by Voyager Internet in Auckland. Off-site backups are held by ASI Solutions in New Zealand, and a second copy is kept on storage we operate ourselves.

Two things leave New Zealand, and only for delivery:

Data Goes to When
Email content (sign-in links, photo invitations, notices) Postmark, United States Each time the service sends an email
Wallet pass contents, as the card design sets them Apple or Google Only if the customer switches wallet passes on

No customer data is used for analytics, advertising or training models. The full sub-processor list, with 30 days' notice of changes, is in clause 4 of the DPA.

Tenant isolation and authorisation

Each customer organisation is a separate tenant, and isolation is enforced twice: by permission checks in the application, and by row-level security in the database on every table that holds tenant data. A query that reaches the database without the right tenant context returns no rows, so a fault in one layer does not expose another organisation's records.

Within an organisation, access follows roles the customer controls:

  • Administrators manage the organisation's settings, staff accounts, designs and records.
  • Scoped accounts and custom roles limit a staff member to a department, campus or type of cardholder. The limit is enforced in the database as well as on screen.
  • Dual approval, where switched on, requires a second person to approve sensitive changes. It cannot be switched off by one administrator alone.
  • Access reviews ask each department, each term or quarter, which staff still need access. Decisions are recorded and export as a signed file.

Secure ID staff reach customer records only to operate and support the service. Support access through the platform ("view as administrator") is recorded in the organisation's own audit log under the staff member's name. Direct server and database access is limited to named administrators, as clause 3.2 of the DPA sets out.

Authentication

Staff sign in with the organisation's own identity provider or with a CardOffice password, and the organisation decides which. Cardholders never have passwords.

Who How they sign in Protections
Customer staff, single sign-on OpenID Connect (Entra ID, Google Workspace, Okta) or SAML 2.0 with any identity provider The identity provider's own policies apply. Where single sign-on is enforced, up to two break-glass accounts sign in with a hardware key, and every use alerts every administrator
Customer staff, password Email and password Passwords stored only as scrypt hashes. Two-factor by authenticator app or passkey, which an organisation can require for all its staff
Secure ID staff Password and two-factor Two-factor is always required, whatever the organisation's settings
Cardholders Single-use links sent by email or shown as a QR code Links expire (a photo invitation after 1 to 720 hours, as the sender chooses) and act only on that person's record
Systems (API, SCIM, agents) Per-organisation keys and enrolment codes Requests are limited per key, keys can carry an expiry date, and an administrator can revoke any key at once

Sessions are held in secure, HttpOnly cookies bound to the CardOffice domain, and every page is served over HTTPS only.

Encryption

All traffic is encrypted, connections already use post-quantum key exchange, and database backups are sealed before they leave the server.

What How it is protected
Connections to every CardOffice site TLS 1.3, or TLS 1.2 with forward-secret AEAD ciphers only. TLS 1.0 and 1.1 are refused. Browsers are told to use HTTPS only (HSTS, one year)
Key exchange on TLS 1.3 Hybrid post-quantum ML-KEM-768 with X25519, used automatically by current Chrome, Edge, Firefox and Safari
Certificates Let's Encrypt ECDSA, issued and renewed automatically
Secrets stored in the database (single sign-on secrets, wallet tokens) AES-256-GCM, under a key that is not stored in the database
Staff passwords scrypt hashes, never stored in a readable form
Database, configuration and wallet-key backups Encrypted on the server with age before upload, to a hybrid post-quantum key (ML-KEM-768 with X25519). The decryption key is not held on the production server. The continuous database archive is encrypted with AES-256 before upload
Photo backups Copied to the same New Zealand off-site storage, protected by its access controls and versioning
Audit log digests and exports Signed with Ed25519; the public key is published so customers can verify them
Administrative SSH Key-only authentication; hybrid post-quantum key exchange (sntrup761 with X25519)

Signatures (certificates, audit digests, passkeys) still use standard elliptic-curve algorithms. Browsers and certificate authorities do not yet support post-quantum certificates, and we will move when they do.

Audit logging and monitoring

Every change in CardOffice is written to a tamper-evident audit log that customers can verify themselves and stream to their own SIEM.

  • What is recorded: every issue, change and revocation of a card or digital ID, every change to a person's record, photo approvals, sign-ins, permission and settings changes, and support access, each with who, what and when.
  • Tamper evidence: each entry is numbered and chained to the one before it by a hash, and each day's entries are sealed with an Ed25519-signed digest. The application's database login cannot edit or delete entries, and a missing or altered entry shows when the log is verified.
  • Verification: in the portal at any time, or offline from a signed export and the published public key.
  • SIEM streaming: entries are sent as they are written, as syslog over TLS (RFC 5424) or a signed HTTPS webhook. Entries missed during an outage are sent afterwards, in order.
  • Retention: kept indefinitely by default, or for a period the organisation sets. Personal details in an entry are blanked when the person's record reaches the end of its retention period.

The service itself is checked from outside every few minutes, including the age of the newest backup, and failures alert us by email and phone. The public status page shows the same checks with a 90-day history, and availability under the SLA is measured from it.

Backups and recovery

Database changes leave the server within about a minute, everything is backed up every night, and two kinds of restore are tested automatically every week.

Backup When Where Kept
Continuous database archive (write-ahead log, with full and differential backups) Changes within about 60 seconds; full backup Sunday, differential Monday to Saturday Off-site, New Zealand (encrypted, AES-256) 4 weekly full backups: any minute of the last three to four weeks
Database dump Every hour Off-site, New Zealand, separate storage (encrypted, post-quantum key) 7 days
Database, configuration, wallet signing keys, photographs Every night Off-site, New Zealand, separate storage (database, configuration and keys encrypted) 90 days, plus the first of each month for a year
Second copy of the archive and the nightly backups Every day Storage we operate, independent of the off-site provider The archive copy follows the archive's own expiry; the nightly copy is pruned by hand
  • Restore to a chosen minute. The continuous archive rebuilds the database as it stood at any minute of the last three to four weeks, for example just before a mistaken bulk change.
  • Two independent paths. The continuous archive and the hourly and nightly backups are stored separately. The hourly and nightly backups go to versioned storage that the live server can write to but cannot delete from, so a compromised server cannot remove its own history.
  • Restores are tested weekly, both ways. Each Sunday one drill restores the newest dump into a clean database, checks record counts against the previous week and confirms that the configuration and keys decrypt. A second drill restores the archive and replays it to within 20 minutes of live. A failure alerts us the same day.
  • Recovery objectives: recovery point 24 hours and recovery time 8 business hours, as committed in the SLA. In practice the continuous archive keeps records within about a minute of live.
  • Deletion: when a contract ends, customer data leaves production within 30 days and backups within 90 days, as clause 7.2 of the DPA sets out.

Network and host security

The production server answers on the web ports and on SSH for named administrators, and nothing else.

  • Exposed services: HTTPS (with HTTP redirected to it) through the Caddy web server, and SSH. The database, cache, photo store and internal services listen only on the server itself, and a host firewall refuses everything else. The cache requires a password even locally.
  • Administrative access: SSH with keys only (passwords refused), for named administrators. Repeated failed sign-ins are blocked automatically. Forwarding through SSH is switched off for administrator accounts.
  • Patching: the server runs Ubuntu 24.04 LTS with security updates applied automatically. Kernel and other updates that need a restart are applied in the published maintenance window. Application dependencies are scanned automatically, and security fixes are released as soon as they are tested.
  • Web protections: an enforced Content Security Policy, frame blocking, MIME sniffing off, and photographs served in a sandbox so an uploaded file can never run as a page.
  • Photo storage: private. A photo is reachable only through a short-lived signed link issued by the application to someone allowed to see that record.

Integrations and on-site agents

Every agent on a customer's premises connects out to CardOffice over HTTPS, so no customer firewall has to accept incoming connections.

Integration Runs where How it is secured
Card printing (print agent) A Windows PC beside the printer Enrolled once with a code from the portal; then polls for its own organisation's jobs only
Card encoding (encoder agent) The encoding station Same enrolment model; receives encoding instructions only for jobs it is given
Records sync from an existing database A customer server Reads through a database login the customer creates with read-only rights; sends changes out over HTTPS
Access control (Gallagher Command Centre) Customer network, beside the controller Talks to Command Centre through its REST API on the customer network, and to CardOffice outbound
Directory sync (SCIM from Entra ID, Google Workspace) Customer's identity provider Per-organisation bearer token, revocable at any time
REST API Customer systems Per-organisation keys, rate limited, optional expiry
Outgoing webhooks and SIEM streams CardOffice to the customer Signed with HMAC-SHA256 and a timestamp; SIEM destinations on internal or private addresses are refused

An on-site agent that needs a tunnel gets a restricted account that permits only that connection.

Secure development and change management

Every change is tested and run on a staging server before it reaches production, and every release can be rolled back.

  1. Code lives in private repositories. Dependencies are scanned automatically and known vulnerabilities are tracked to a fix or a recorded decision.
  2. Each change passes type checking and automated tests, including database tests that check tenant isolation and row-level security.
  3. It runs on a staging server with test data first.
  4. A production release takes an encrypted database backup first, applies migrations, and then runs a verification script that checks the live service end to end. Releases are announced in the What's new page when they change what customers see.
  5. Security reviews of the code and the production servers are carried out regularly, most recently in November and December 2026, and findings are tracked to closure.

Incident response and breach notification

We notify the customer without undue delay, and within 72 hours, of any privacy breach affecting their data, as clause 6.2 of the DPA commits.

  1. Detect: monitoring alerts, a customer report, an audit-log or SIEM signal, or a security report to the address in our security.txt.
  2. Contain: revoke the affected keys, sessions or accounts, isolate the component, and preserve logs and the audit trail.
  3. Assess: what data and which organisations are affected, using the audit log and server logs.
  4. Notify: the affected customers with enough detail to judge their own obligations under Part 6 of the Privacy Act 2020 or GDPR Article 33, and help with any notification to the regulator. We do not contact a customer's cardholders directly unless the customer asks us to.
  5. Recover and learn: restore from backup where needed, fix the cause, and send the customer a written account of what happened and what changed.

Service incidents are handled under the SLA's response targets and shown on the status page.

Sub-processors and personnel

Four sub-processors handle customer data: Voyager Internet (hosting, Auckland), ASI Solutions (off-site backup storage, New Zealand), Postmark (email delivery, United States) and, only if wallet passes are switched on, Apple and Google. Clause 4 of the DPA lists them and commits to 30 days' notice before any change.

Secure ID Limited is a New Zealand company, and everyone with access to production works in New Zealand. Production server and database access is held by named administrators only, each with their own key, and is removed the day a person's role no longer needs it. Support access to an organisation's records goes through the platform, where it is recorded in that organisation's audit log.

Document control

Version 0.1 (draft), 3 December 2026. Owned by Secure ID Limited, reviewed at least every six months and whenever a measure described here changes.

A fuller copy, which also sets out the limitations we know of and what we plan to do about each, is available to your security team on request. Questions about this document go to the security contact in our security.txt, or send us your security questionnaire.