catcrafts.net/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf e0d3181840
bank: the hourly pull asks nostrod, and holds no bunq key
tools/pull-and-ship-credits.sh ran this repo's own bunq client
(`catcrafts-server --pull-credits`) with the API key from .env: a key
that can initiate payments, where every program run in the checkout
could read it. It now asks nostrod (Nostro) for the account's
transactions over the system bus and turns the answer into the same
credit lines. nostrod lets a program look without a password and lets
nothing pay without one, so the pull holds no credential at all.

- Each run ships the last 90 days (CREDITS_DAYS), the longest window an
  order can wait in, in place of an accumulating local copy fed by a
  reader that only ever saw the newest 50 payments.
- --dry-run prints what would be shipped and ships nothing.
- deploy/README.md: how the pull works now, the polkit rule a timer
  needs to look without a login session, and what the old reader is
  still kept for (tools/register-bunq-webhook.sh, until `nostro
  callbacks` of Nostro 1.1.0 has been seen to list the shop's webhook).

Checked on 2026-11-21 against the production account, through nostrod:
a dry run gave, for each of the 24 incoming payments the old client had
written, a line byte-identical to the old client's. A real run, with
the ship to the server, has not been made, and the timer is installed
nowhere yet.

No C++ changes: the two edits to sources are to comments.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 14:21:48 +01:00
..
harness removed fp6 from shop 2026-09-05 18:38:39 +02:00
ShouldBootWasmAtDepth tests and eurc 2026-08-15 00:54:05 +02:00
ShouldBuildInvoices donation item, shop soft open 2026-08-17 11:04:03 +02:00
ShouldBuildMediaLadders tests and eurc 2026-08-15 00:54:05 +02:00
ShouldComputeMoney markdown fix 2026-08-18 11:12:24 +02:00
ShouldEmitStructuredData removed fp6 from shop 2026-09-05 18:38:39 +02:00
ShouldEscapeHtml donation item, shop soft open 2026-08-17 11:04:03 +02:00
ShouldFoldTheOrderLedger donation item, shop soft open 2026-08-17 11:04:03 +02:00
ShouldGuardRequestProvenance tests and eurc 2026-08-15 00:54:05 +02:00
ShouldIssueEurcAddresses donation item, shop soft open 2026-08-17 11:04:03 +02:00
ShouldMatchBankTransfers CI: build with the Crafter.Build Flatpak on a repo-scoped privileged runner 2026-10-12 16:32:57 +02:00
ShouldMintOrderTokens Replaced mollie 2026-08-20 20:15:47 +02:00
ShouldParseBunqPayments bank tranfer fix 2026-08-20 23:33:50 +02:00
ShouldParseEurcChains payment tests 2026-08-20 01:36:42 +02:00
ShouldParseJson tests and eurc 2026-08-15 00:54:05 +02:00
ShouldParseSendcloudRates tests and eurc 2026-08-15 00:54:05 +02:00
ShouldProcessCheckout removed fp6 from shop 2026-09-05 18:38:39 +02:00
ShouldPublishFinancials retire the bunq integration 2026-08-17 11:43:09 +02:00
ShouldRenderMarkdown markdown fix 2026-08-18 11:12:24 +02:00
ShouldSellTheShopFront removed fp6 from shop 2026-09-05 18:38:39 +02:00
ShouldServeFinancialsLive retire the bunq integration 2026-08-17 11:43:09 +02:00
ShouldServePostPages tests and eurc 2026-08-15 00:54:05 +02:00
ShouldServePosts tests and eurc 2026-08-15 00:54:05 +02:00
ShouldServeRoutes removed fp6 from shop 2026-09-05 18:38:39 +02:00
ShouldSettleBankTransfers bank: the hourly pull asks nostrod, and holds no bunq key 2026-11-25 14:21:48 +01:00
ShouldSettleEurcOnTestnet crypto test fix 2026-08-20 01:49:15 +02:00
ShouldShipContent removed fp6 from shop 2026-09-05 18:38:39 +02:00
ShouldStayScriptFree removed fp6 from shop 2026-09-05 18:38:39 +02:00
ShouldValidateForms markdown fix 2026-08-18 11:12:24 +02:00