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>
This commit is contained in:
parent
80668e18cd
commit
e0d3181840
5 changed files with 354 additions and 160 deletions
|
|
@ -3,9 +3,9 @@
|
|||
# without a bank.
|
||||
#
|
||||
# The transfer rail settles an order when a credit quoting its reference shows
|
||||
# up in the credits file. In production that file is filled by
|
||||
# `catcrafts-server --pull-credits` reading the real account; here it is filled
|
||||
# by hand. Same file, same format, same matching code — which is the point:
|
||||
# up in the credits file. In production that file is filled from the real
|
||||
# account, by the bunq webhook and by tools/pull-and-ship-credits.sh; here it is
|
||||
# filled by hand. Same file, same format, same matching code — which is the point:
|
||||
# this exercises the real settlement path rather than a test double.
|
||||
#
|
||||
# tools/dev-credit.sh <orders-file> <reference> <amount-in-cents> [method]
|
||||
|
|
|
|||
Loading…
Reference in a new issue