Changelog
Changelog
Newest first. Every entry here shipped and was tested before release — this isn't a roadmap, it's what's actually running.
How versions work
Versions are MAJOR.MINOR.PATCH (e.g. 5.0.0) plus a build number
that only ever goes up and is shown on /version.
- MAJOR — changes how the app is run, secured or relied on: login/2FA model, how charges are queued, encryption, new required settings or dependencies. Read the entry before upgrading.
- MINOR — a new feature or screen. Safe to drop in.
- PATCH — a bug fix or security fix with no new features. Always install these promptly.
- Any release containing a security fix is marked [SECURITY] below.
- Dependency security updates are checked at every release (
pip-audit).
Before 5.0.0 the app was numbered by date and build (2026-09-10.N) — the
date part never changed, so it told you nothing. Those builds were
re-labelled here with proper versions; the build number is unchanged.
Major milestones: 1.0.0 first tracked release (build 1) ·
2.0.0 separate Master/Admin/Standard accounts (build 23) ·
3.0.0 mandatory 2FA for every account (build 38) ·
4.0.0 durable webhook queue + Xero rate-limit handling (build 61) ·
5.0.0 security and privacy audit (build 73).
5.2.0 (build 75) — 2026-10-18
- Business contact details on the client card page. New "Business contact details" section in Settings (ABN, address, up to two phone numbers, accounts email, website). They appear at the bottom of the page clients open to add their card, and on the "link isn't valid" page, so clients can see who they're dealing with and how to reach you. Empty boxes are simply not shown.
- Demo install fixed: the demo now uses its own Docker volume (a
./demo-datafolder was owned by root, so the app couldn't write to it), and its session cookie works over plain http for first tests on the LAN.
5.1.0 (build 74) — 2026-10-18
- Demo mode for showing the product to prospects without any real
Xero or Square. Run it on its own machine with
docker-compose.demo.yml. A pretend Xero and Square answer the app's real API calls, so the real webhook, queue and charging code runs end to end. Visitors are logged in automatically and a Try it page lets them raise an invoice in "Xero", watch the card charge get scheduled, fast-forward to the due date (card approved or declined), change or void the invoice, and see the payment land back in "Xero". The Dashboard, Charge Log and client card page all work on sample data. Everything resets on logout or after 30 idle minutes. Demo mode refuses to start against a database that holds real clients, and blocks all outbound network traffic except the pretend Xero/Square. - The Charge Log now shows the client's name instead of the raw Xero contact ID (the ID is still shown when the client isn't set up, and on hover).
5.0.0 (build 73) — 2026-10-13 [SECURITY]
Security and privacy audit (against the Australian Privacy Principles).
- FIXED, important: someone who knew only a user's password could
open the 2FA set-up page, enrol their own authenticator over the real
one and get in. Set-up is now refused for any account that already has
2FA. (Accounts with no 2FA yet can still enrol at first login, as before.)
- Login "next" redirects are limited to pages on this site.
- New optional TRUSTED_PROXY_IPS in .env: when set, the visitor IP
header is only believed from those addresses, so the login rate limit
can't be dodged by connecting straight to port 8787 with a fake header.
- 2FA secrets, Xero/Square credentials and webhook keys are now encrypted
in the database and its backups (key derived from SECRET_KEY). Existing
values are converted automatically on first start. Keep SECRET_KEY safe:
if it changes, re-enter the Settings secrets and re-enrol 2FA.
- Confirm prompts (refund, retry, delete, deactivate, reset 2FA...) had
been silently blocked by the page security policy; they work again.
- Card page now shows a privacy notice (what's collected, Square/overseas
processing, how to ask for access/removal) and an optional Privacy
policy link (Settings).
- Removed clients: admins can Export their data (JSON) and Erase it
(details + card request history; invoice/charge history is kept for tax).
- Card-request records are deleted 90 days after they expire.
- Dependencies updated for known security vulnerabilities (31 were
reported): Flask 3.0.3 -> 3.1.3, Werkzeug 3.0.3 -> 3.1.9, requests
2.32.3 -> 2.34.2, python-dotenv 1.0.1 -> 1.2.4, Markdown 3.7 -> 3.11.
New: cryptography 50.0.2. A scan now reports none. Rebuild the image
with docker compose build --pull so the base image updates too.
- Version numbering changed to MAJOR.MINOR.PATCH (see top of this file).
4.11.0 (build 72)
Dashboard tiles are now clickable — "Waiting to be paid" opens exactly those invoices, "Failed charges" the failed ones, and so on, so a number on the Dashboard is never a mystery. On the Charge Log, the filter that was labelled "Charged" is now "Waiting to be paid" (charged to the card or scheduled, payment not yet confirmed), and there is a new "Paid" filter. "1 invoices" now reads "1 invoice".
4.10.0 (build 71)
Fixes the Square error "Due on date must be on or after scheduled date". The server's clock is UTC, so for the first 10-11 hours of every Sydney day it was a day behind Square (which judges dates in the business's own timezone) — any overdue or same-day invoice charged in the morning had its due date set to "yesterday" in Square's eyes and was rejected. "Today" is now worked out in the Square location's own timezone, with one safe retry a day later if Square still disagrees. Invoices that failed this way can be charged again with Retry on the Charge Log. Also: a charge that fails for a reason that isn't the client's card (a rejected request, a bad date, Square being down) no longer marks the client "Needs card update" — it shows as FAILED with a Retry button. A later successful charge clears a "Needs card update" flag that an earlier non-card failure left behind. Genuine card problems (declined, missing, expired) are still flagged as before.
4.9.0 (build 70)
Three things to answer "has the client actually done it yet?" and "whose card is about to stop working?". - Card requests page (Clients → Card requests): every self-service card link you've generated and whether the client has used it — Waiting, Card added, Expired, or Replaced by a newer link. - Alert when a client enters their card. A new client who completes the link gets "X has entered their card and is now on autopay". An existing client who updates a card that was flagged or expiring gets "X updated their card — no further follow-up needed". Routine updates from healthy clients stay in the Activity log only, not the alert channel. - Weekly card summary every Monday morning: cards already expired, cards expiring within the warning window, card links sent but not used after 3 days, and links that expired unused. Names and expiry month only — never card numbers. Silent on a week with nothing to report. Settings has a "Send card summary now" button to see it on demand. Teams alerts now show line breaks properly.
4.8.0 (build 69)
Settings now has a "Send test alert" button under the alert webhook URL. It sends a test message to whatever is in the box (saved or not), and shows exactly what the other end answered — a wrong URL, a revoked workflow or a refused request is visible straight away instead of on the day a real alert is needed. It never saves your other changes, and pressing Enter in the form still means Save. Alerts also now work with Teams' newer Workflows webhooks (the "Post to a channel when a webhook request is received" kind), which reject the plain-text message the app used to send; Slack and older Teams connectors are unchanged.
4.7.0 (build 68)
Pending card links can now be deleted — for a client who cancels before their agreement ever reaches a first invoice. Deletes the customer profile from Square too, not just the local record, since an agreement that never went anywhere has even less reason to keep a card on file than a former real client does. Only offered for a card still waiting or flagged ambiguous; an already-linked one goes through Remove client instead. If the Square deletion itself fails, the local record is still removed, with a clear error and an alert to clean it up manually.
4.6.0 (build 67)
New: cards from the separate ClearPath Agreements app can now be handed over and linked to their Xero contact automatically.
- Settings → ClearPath Agreements — generate a token (shown once, stored hashed) for the Agreements app to authenticate with.
- A new API endpoint the Agreements app calls to hand a card over, before that client's Xero contact necessarily exists yet.
- Clients → Pending card links holds anything waiting. Linking itself happens automatically the moment a matching contact's first invoice arrives -- ABN first, then billing email, then company name, and only ever when exactly one card matches. More than one match is never guessed: both are flagged ambiguous with an alert, for a human to pick the right one on that page.
- Autopay starts from the agreement's acceptance date, not the invoice date -- an existing client's older invoices are never swept up by a new automatic link.
- A manual link can never replace a card already on file for that contact -- enforced explicitly, since a person picking a contact by hand could otherwise choose one that already has one.
- Every link is recorded in the Activity log, marked (automatic) when the system did it on its own.
4.5.0 (build 66)
Client invoices now caps each client to their latest 15 invoices, with a "+N earlier invoices not shown" note if there's more -- unbounded history per client wasn't going to stay cheap as it built up over months and years. Done as a single windowed query rather than loading every row for every client and discarding most of it in Python, so the cost stays proportional to what's actually shown, not to total history. The collapsed summary line still shows the true total invoice count, not just the 15 visible when expanded.
4.4.0 (build 65)
Recent Activity on the Dashboard no longer shows invoices skipped as unmapped -- routine, non-actionable noise (often half the feed) for invoices that were never going to be charged, since they're for a contact not on autopay at all. Nothing is lost: they're still fully visible on the Charge Log, filterable by status same as any other charge. The "Unmapped invoices skipped" stat card is unaffected and still counts them, since that total is a useful signal on its own.
4.3.0 (build 64)
New page: Clients → Invoice history. Every active client, each with their own invoice list grouped underneath (click to expand) instead of hunting through the Charge Log's one flat list across everyone.
Also fixed while building this: charge_log rows are ordered by created_at, which only has one-second resolution -- two invoices processed by the queue in the same second had no reliable order between them. Added the row's own id as a tiebreaker everywhere charges are listed (Dashboard, Charge Log with and without a status filter, its CSV export, and this new page), so "most recent first" is now always genuinely accurate, not just usually.
4.2.0 (build 63)
Dashboard money display fixed, and a real accuracy bug found along the way. Every dollar figure site-wide now shows thousand separators ($9,260.25, not $9260.25) -- except the refund amount field, which stays a plain number on purpose since it's something you type into.
The bigger fix: "Charged this month" used to add PUBLISHED (scheduled, not yet actually charged) and PAID together into one figure, so it overstated what had genuinely been collected. It's now two honest numbers -- Paid this month (confirmed) and Waiting to be paid (scheduled, still outstanding, not limited to this calendar month since a charge raised in late one month is often still awaiting its due date early the next).
Fixing that surfaced a second, deeper issue: a charge is raised now but often not actually confirmed paid until its due date, up to 14 days later, which can land in the next calendar month. Nothing recorded exactly when a charge was actually paid, so "this month" and the revenue chart were both silently attributing money to the month the charge was raised, not the month it was paid. Added a real paid_at timestamp, set the moment Square confirms payment, and both figures and the 6-month revenue chart now go by that instead. An existing PAID row from before this version has no true paid_at on record, so it's backfilled from created_at as the closest available approximation, rather than silently vanishing from revenue history.
4.1.0 (build 62)
Recording a payment in Xero now goes through the same queue — the exposure flagged at the end of .61. Charges are scheduled for the due date (14 days after the invoice date), so a large run means many Square "payment made" webhooks arriving in the same minute. Each one used to call Xero directly inside Square's webhook, unpaced and never retried, so anything past Xero's 60-a-minute limit failed with only an alert to reconcile by hand.
- Square's webhook now just saves a "record payment" job and answers straight away (150 of them in about half a second in testing).
- The worker records payments at a pace Xero allows and retries a rate limit, a server error or a network drop with growing gaps. Payments are taken ahead of invoices in the queue.
- The payment is recorded with the day the client was charged, however long it waited.
- If Xero refuses a payment outright (a 4xx, such as "already paid"), it fails immediately rather than retrying — retries could mask a real double payment — with Xero's reason on the queue page and one summary alert that states the card WAS charged.
- Also covers a charge that goes through the moment an invoice is processed (due date already reached).
- Behaviour change: a payment is now recorded even if the client was removed from autopay after the charge was scheduled. It used to be skipped silently, though the card had been charged.
Upgrading from .61 adds two columns to the queue table automatically.
4.0.0 (build 61)
Invoices can no longer be lost to Xero's rate limit or a restart. Found on a real billing run: Xero allows 60 calls a minute, the background processing went faster than that on invoices that need no Square call, and every invoice that got a "429 Too Many Requests" was dropped for good — nothing retried it and no record was kept.
- Saved before acknowledged. A webhook's invoices are written to the database first (new Setup → Webhook queue page shows them), then worked through by one background worker. A restart mid-batch no longer loses the rest.
- Paced and patient. Calls to Xero are spaced to stay under the limit, and when Xero still says 429 the worker waits as long as Xero asks and retries (up to 6 attempts). A daily-limit 429 isn't retried, since waiting can't help.
- One summary alert if an invoice fails every attempt, instead of one per invoice, and a Retry failed button.
- Find invoices we never processed — lists authorised invoices from the last few days that have no Charge Log record, and processes the ones you confirm.
- Xero token handling fixed. The access token used to be refreshed on every single call, including every Dashboard load. Xero rotates refresh tokens on each use, so a refresh landing while the worker was mid-batch could invalidate the connection. It's now reused until just before it expires, behind a lock, so only one refresh ever happens at a time.
3.22.0 (build 60) [SECURITY]
Xero Connection moved to Admin/Master only — it touches real OAuth credentials and the reconnect flow, so it shouldn't have been open to Standard users in the first place. No longer appears in their nav at all, and the routes themselves reject a Standard session directly, not just hidden from the menu.
3.21.0 (build 59)
Reactivate is no longer offered for a client whose Square customer profile was actually deleted (the "no longer a client" removal reason from .58) — there's nothing meaningful left to restore, so attempting it now fails clearly rather than flipping them back to active with a broken reference to a Square customer that doesn't exist. The Removed Clients page shows "Add as new client" instead for these, pointing at the flow that actually works: a genuinely fresh Square customer. Reactivate still works exactly as before for every other removal, including a legacy pre-.56 record where only a card was disabled, not the whole customer -- that distinction now has its own dedicated field rather than being conflated with the new "fully deleted" case.
3.20.0 (build 58)
Removing a client with the reason "No longer a client" now deletes their customer profile from Square entirely — cards and all, not just disabling one. Every other removal reason still leaves Square completely untouched (.56's behavior), since those are the cases where the client might come back or the issue might resolve. If the Square deletion itself fails, the client still gets removed locally either way, with a clear error and an alert telling you to clean it up manually. Reactivate's warning updated to match, since it now covers two distinct cases (a deleted customer, or a legacy disabled card from before .56) that both mean the same thing in practice: the client will need a new card before the next charge can go through.
3.19.0 (build 57)
A Reactivate button on the Removed Clients page — brings a former client straight back onto autopay with their existing card and charging rule intact, no need to go through Add Client again. This was only safely possible now that removing a client stopped touching their card in Square (.56): since deactivation never actually cleared any of that data, it's all still there to restore. The one exception is a client removed before that change, whose card genuinely was disabled at the time — reactivating still works, but they'll need a new card before the next charge can go through, and the confirmation makes clear which case applies before you confirm.
3.18.0 (build 56)
Removing a client no longer attempts to disable their card in Square — that step proved unreliable to verify and was removed rather than kept as an uncertain, hard-to-trust action. Marking a client inactive already fully stops this system from ever auto-charging them again on its own: invoice lookups only ever match an active mapping, so anything for a removed contact is already skipped exactly like an invoice for an unrecognised one always is. Their card in Square is no longer touched at all by this action — disable it there directly if you also want to block it from being charged any other way. Removed Clients page and the confirmation screen both updated to reflect this honestly.
3.17.0 (build 55)
Export the Clients page to CSV — client name, Xero Contact ID, card last 4 and expiry, charging rule, and status, for every active client. Same access level as viewing the page itself (Standard and up). Deactivated clients aren't included.
3.16.0 (build 54)
A new Activity log (Admin/Master only, alongside Security log) — what actually got done, not who tried to log in. Covers refunds, charge retries, reconciliation resolutions, charging rule changes (single and bulk), clients added or removed, cards added or updated (including a client doing it themselves via a self-service link, logged distinctly as a client action rather than attributed to staff), and every user/access change: invites generated, revoked, and accepted, role changes, activations/deactivations, and admin-triggered password or 2FA resets. Retained for a full year, not 90 days like the Security log — a genuine financial audit trail, not live-attack monitoring. Exports to CSV.
Settings changes and Xero (re)connection aren't wired into this yet — prioritized the actions touching money and access first.
Also fixed while building this: the two standalone client-facing pages (self-service card form and its expired-link page) had their own separate stylesheet link that never got the cache-busting fix from .48 — same stale-CSS exposure the nav dropdown hit earlier, just not yet noticed on these two.
3.15.0 (build 53) [SECURITY]
Adding a user now generates a one-time invite link instead of an admin typing their password directly — send it to them yourself, and they set their own password and complete mandatory 2FA setup, so nobody but them ever knows or chooses their password. Expires after 7 days unused; a Pending invites list on the Users page shows what's outstanding, with a Revoke option. The invite creates no account at all until it's actually accepted — nothing half-finished sitting in the real user list while someone hasn't gotten to it yet.
Also fixed while building this: two client-facing standalone pages (the self-service card form and its "link expired" page) had their own separate stylesheet link that never got the cache-busting fix from .48 — they were still vulnerable to the same stale-CSS caching issue the nav dropdown hit.
3.14.0 (build 52)
Pagination on the Dashboard's Recent Activity — it was already limited to 15 entries with no way to see anything older without going to the full Charge Log page. Previous/Next now let you page through directly from the Dashboard, server-side (unlike the Clients page's pagination), since the Charge Log can grow much larger over time.
3.13.0 (build 51)
Pagination on the Clients page — 25 per page once there are more than that. Built client-side, on top of the existing search, so search keeps working across every client regardless of which page you're on, not just whatever happens to be currently loaded. Selecting clients for a bulk edit across multiple pages works as expected too — "select all" only grabs the current page (not silently pulling in clients on pages you haven't looked at), but selections made on earlier pages stay checked as you page through and all get included when you submit.
3.12.0 (build 50)
Fix: the revenue chart had no Y-axis at all — no way to gauge the dollar scale of a bar without hovering over it. Added gridlines and labels ($0 up to the current max, in even quarter-steps), with the bars shifted right to make room.
3.11.0 (build 49)
Fix: a $0 month on the revenue chart rendered as a genuinely invisible bar (zero height in SVG is literally nothing to see), not just a short one — with only one month having real revenue so far, the chart looked broken rather than showing five honestly-quiet months. Every bar now gets a small visible minimum height, so a $0 month still shows up as $0, not as missing data.
3.10.0 (build 48)
Fix: the nav dropdowns from .47 rendered unstyled for some people
(showing all three menus permanently expanded down the page) because
the stylesheet URL never changed between deployments — browsers and
Cloudflare's own edge caching kept serving an old cached copy of
style.css indefinitely, missing the new dropdown CSS entirely. Fixed
properly, not just for this one case: the stylesheet link now carries
a hash of its own content as a cache-busting query string, so any
future CSS change automatically gets a new URL and can never be
served stale again.
3.9.0 (build 47)
Reorganized the navigation — it had grown to 10 flat links plus the username and logout, all in one bar. Now: Dashboard, Clients, and Charge Log stay as direct links (the daily-use pages); everything else groups into three dropdowns — Setup (Xero Connection, plus Settings/Users/Security log for Admin and Master), a separate Help menu (Help, Changelog — kept apart from Account since "about the app" and "about my own login" are genuinely different things), and your username (Account, Log out). Same access control as before throughout, purely a visual reorganization.
3.8.0 (build 46) [SECURITY]
Two fixes:
- A hardwired 30-minute inactivity logout, not configurable. A
genuine rolling timeout, not a fixed timer from login — staying
active keeps a session alive indefinitely; it only expires after 30
real minutes of nothing happening. Enforced via the signed session
cookie's own expiry, server-side, not something a client could get
around.
- Fixed the rate limiter's IP detection. It was using Flask-
Limiter's default (request.remote_addr), which behind Cloudflare
Tunnel just reflects cloudflared's own local connection — meaning
every real visitor was sharing one collective 1000-requests-per-hour
budget for the whole app, not getting their own individual one. Now
uses the same real-IP detection (Cloudflare's CF-Connecting-IP
header) already built for the security log.
3.7.0 (build 45)
Bulk-edit charging rules — select clients on the Clients page and apply a change to all of them at once. Deliberately a per-field opt-in ("change this" next to each field), not a blanket overwrite: anything left unchecked stays exactly as each client already had it, so applying a bulk change never silently wipes out one client's own custom keyword or cutoff date just because they were included in the selection.
3.6.0 (build 44)
A revenue chart on the Dashboard — the last 6 months, including any with zero charges rather than skipping them. Rendered as plain SVG, computed server-side, no JavaScript charting library involved at all — keeps the CSP exactly as locked down as it already was, nothing new needed in script-src for it.
3.5.0 (build 43)
Export the Charge Log to CSV — same access level as viewing it (Standard and up), respects whatever status filter is currently applied, and resolves a friendly client name via the existing client mapping rather than exporting a raw Xero Contact ID. Unlike the on-screen view (capped at 200 rows for a fast page load), the export includes the full matching history.
3.4.0 (build 42) [SECURITY]
Removed 'unsafe-inline' from the CSP's style-src directive — the
other ZAP finding from the scan. All 77 inline style="..."
attributes across 18 templates moved into named CSS classes
(static/style.css); the two genuinely dynamic ones (the
per-deployment brand color, set from Settings) now use the same
per-request nonce already used for scripts, rather than needing the
whole directive relaxed just for those two lines.
3.3.0 (build 41) [SECURITY]
Removed the external logo URL option from Settings — upload-only now.
Closes a real CSP finding from a ZAP scan (img-src previously had to
allow any https: source to support that option); tightened to just
'self' and data:. A logo set via the old external-URL field on an
existing deployment simply stops being used — re-upload it as a file.
3.2.0 (build 40) [SECURITY]
A security log (Settings → Security log, Admin/Master only) recording every password and 2FA check across every account, Master included — success, failure, or lockout, with the real client IP address (pulled from Cloudflare's own header, not the tunnel's local connection). Retained for 90 days, purged automatically after that. Exports to CSV from the same page.
3.1.0 (build 39)
Two-layer monitoring, closing the "how would I even know if this went
down" gap. A new /healthz endpoint (unauthenticated, read-only,
never triggers a Xero refresh) for pointing an external uptime monitor
at — the only way to actually catch the container or tunnel itself
being unreachable, since nothing inside a dead process can alert
about its own death. Alongside it, a periodic internal check (every 6
hours) that verifies the Xero connection is still genuinely valid,
not just configured, firing the existing alert webhook automatically
if it's gone bad.
3.0.0 (build 38) [SECURITY]
Mandatory two-factor authentication for every account, Master
included. Admin and Standard users set theirs up in-app the first
time they log in with none configured — a QR code, an authenticator
app, and a one-time set of recovery codes. Master's works differently
on purpose: it's provisioned externally via generate_master_account.py,
never through the app itself, to keep it consistent with being a
hardwired, external, break-glass account rather than something
self-serviceable through a browser. Includes an admin-triggered reset
for a lost device, and a separate lockout specifically for repeated
bad 2FA codes, on top of the existing password lockout.
2.11.0 (build 34)
Added a copyright notice to the top of every core source file.
2.10.0 (build 33)
Per-client exemption from the site-wide master exclude keyword (Edit Rule) — that client's invoices are judged only by their own charging rule, ignoring the master keyword(s) entirely.
2.9.0 (build 32)
Master exclude keyword now accepts multiple comma-separated words — any invoice matching any one of them is excluded from Square across every client.
2.8.0 (build 31)
Site-wide master exclude keyword (Settings) — any invoice with this word in its Reference or invoice number is skipped for Square across every client, overriding even a client whose own rule is set to auto-charge everything.
2.7.0 (build 30)
Correct a client's display name from Edit Rule — updates our own cached copy and Square's customer record, without touching their card. Xero's own link is based on Contact ID, so charging is completely unaffected either way.
2.6.0 (build 29)
Site-wide default autopay cutoff date (Settings) applies to every client at once — a client's own cutoff (Edit Rule) always takes priority over it when both are set, in either direction.
2.5.0 (build 28)
Fix: the Xero webhook was processing invoices synchronously before responding — fetching the invoice, then potentially several Square calls — easily exceeding Xero's 5-second response requirement, especially with multiple events in one batch, causing "failed to respond in timely manner" delivery failures and retries. Now responds immediately and processes in the background.
2.4.0 (build 27)
Per-client autopay cutoff date (Edit Rule) — ignore any invoice dated before a chosen date, so a client's pre-existing older invoices stay manual while new ones going forward are auto-charged normally.
2.3.0 (build 26)
Fix: charging an overdue invoice (due date already passed by the time it's charged — a Retry, an amendment, reconciliation, anything happening after the original due date) no longer fails outright with "Due on date must be on or after scheduled date." Square defaults an invoice's processing moment to right now, so the due date sent is clamped to today when the real due date has already passed.
2.2.0 (build 25)
Instant search on the Clients page — matches client name and Xero Contact ID, filters the list live as you type with no page reload.
2.1.0 (build 24)
Dashboard, Charge Log, and Deactivated Clients now display timestamps in a configurable local timezone (Settings, default Australia/Sydney) instead of raw UTC — daylight saving handled correctly.
2.0.0 (build 23) [SECURITY]
Three-tier login: a hardwired Master account (.env only, break-glass, generated by setup.sh) plus real Admin/Standard user accounts with a new Users management page. Standard users get full functional access except Settings and user management. Existing single-admin login migrates automatically, preserving any already-changed password. Per-account lockout replaces the previous global one. Deactivating a user kills their live session immediately, not just future logins. Also: favicon can now be an uploaded image, not just an emoji.
1.21.0 (build 22) [SECURITY]
Real account lockout, not just IP-based rate limiting — 5 failed attempts locks the account for 15 minutes regardless of source IP, with an alert fired the moment it triggers.
1.20.0 (build 21)
Fix: Square rejects re-creating an invoice with a previously-used invoice number, even after that invoice was cancelled (Square permanently reserves it per location). Any second attempt for the same Xero invoice — an amendment, a retry, a manual reconciliation — now gets a unique suffix instead of failing outright.
1.19.0 (build 20) [SECURITY]
Added base-uri 'self' and form-action 'self' to the CSP, flagged
by Google's CSP Evaluator.
1.18.0 (build 19)
Fix: card capture no longer fails outright when a stored Square customer ID doesn't exist in the currently active environment (e.g. a mapping created in Sandbox, now running Production) — falls back to creating a fresh customer instead of erroring.
1.17.0 (build 18)
"Default client email for Square" is now genuinely enforced, not editable or overridable — Add Client and the self-service link no longer show an email field at all when this is set, and the backend ignores any submitted email regardless.
1.16.0 (build 17)
Self-service link detects an existing card and asks the client to confirm before updating it. Fix: both the self-service link and staff-side Add Client now reuse the existing Square customer when updating a card instead of creating a duplicate customer every time.
1.15.0 (build 16)
Upload and store the company logo locally (with validation) instead
of only linking an external URL. Fix: self-service email field is
always visible and editable (was wrongly hidden). Fix: CSP
img-src was silently blocking external logo URLs entirely.
1.14.0 (build 15)
Branding settings — company name, logo URL, brand color, favicon emoji — applied across the admin portal, login page, and the client-facing self-service card page.
1.13.0 (build 14)
Self-service card link expiry is now measured in days (was hours).
1.12.0 (build 13)
Self-service card link expiry made configurable (Settings), was previously fixed in code.
1.11.0 (build 12)
"Default client email" setting added — pre-fills the email field on Add Client and the self-service link.
1.10.0 (build 11)
Self-service card capture — a one-time link a client can open themselves to add their own card directly with Square, without ClearPath staff ever seeing or typing it.
1.9.0 (build 10) [SECURITY]
CSP nonces replace 'unsafe-inline' in script-src; object-src
'none'; explicit Secure/HttpOnly/SameSite cookies; Cross-Origin-
Opener-Policy added; HSTS preload directive added.
1.8.0 (build 9)
Refund button extended to any successfully PAID Charge Log entry,
not just ones the system flagged as needing reconciliation.
1.7.0 (build 8)
Issue a Square refund or mark resolved directly from a
NEEDS_RECONCILIATION Charge Log entry.
1.6.0 (build 7)
Require an email address when adding a new client's card — Square hard-requires one for automatic card-on-file charging. Added "Check emails on file" audit for clients added before this was enforced.
1.5.0 (build 6)
Fix: flag NEEDS_RECONCILIATION when an already-charged invoice
is later voided or deleted in Xero — this was previously silent, with
no record that a genuine mismatch had occurred.
1.4.0 (build 5)
Revert of .4 — Square's API rejects any invoice delivery method
other than EMAIL for automatic card-on-file charging. The toggle to
disable Square's client-facing email was removed entirely rather than
left as a setting that would silently break every charge if selected.
1.3.0 (build 4)
(Reverted the next day — see .5.) Attempted a Settings toggle to disable Square's client-facing invoice emails.
1.2.0 (build 3)
Added a link back to the original Xero invoice in Square's automatic-charge email.
1.1.0 (build 2)
Widened the CSP to allow Square's card-capture form to actually load (font/domain restrictions were blocking it); added visible on-page errors if the card form fails to load instead of failing silently.
1.0.0 (build 1)
Fix: Xero's legacy /Date(...)/ due-date format was being
misparsed into garbage, causing every automatic charge to fail
outright. First real bug found in production testing.
Before version tracking began
A few foundational fixes that predate the /version numbering above:
- Xero OAuth scope fix — apps created after March 2026 must use
accounting.contacts accounting.invoices accounting.payments
offline_access, not the deprecated accounting.transactions scope.
- Docker Compose $ escaping bug — a generated password hash
containing $ was being corrupted by Compose's own variable
interpolation; fixed in setup.sh.
- Cloudflare Access bypass rules added for /xero-webhook,
/square-webhook, and later /card-request/* — these need to be
reachable without an interactive login, since they're hit by Xero,
Square, and clients respectively, none of whom have an account here.