Commit graph catcrafts.net/tests
Author SHA1 Message Date
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
0bfa715e6a
CI: build with the Crafter.Build Flatpak on a repo-scoped privileged runner
Some checks failed
Deploy / build-deploy (push) Failing after 6m19s
Crafter.Build's CI publishes only the Flatpak since 2026-10-02, so the
rolling `latest` tarball the Install crafter-build step downloaded is gone
and the 2026-10-12 deploy failed with a 404 before building anything.

Take the route imsd's package job takes. The job runs on `flatpak`, a
privileged runner registered to this repository alone
(forgejo-runner-catcrafts on the box, same arrangement as imsd's), with the
installed Flatpak and its Sdk kept on a docker volume between runs. The
container installs nothing that compiles any more: clang, lld, libc++, the
WASI sysroot, cmake, perl, gpg and OpenSSL all come with the Flatpak and its
Sdk. `crafter-build` is a wrapper around `flatpak run`, `crafter-run` runs a
built binary inside the sandbox, cast is installed under /opt where the
sandbox can see it, and the cache path is the Flatpak's own.

The server binary links the Flatpak's libc++, libc++abi and libunwind, which
are newer than the host's, so the deploy ships them next to the binary the
way it already ships libmsquic; the rpath finds them there. They need at
most GLIBC_2.38, the host has 2.41.

ShouldMatchBankTransfers passed braced lists straight into a std::span
parameter. That compiled only because libc++ 22 had the C++26
span(initializer_list) constructor; the libc++ 23 in the Flatpak does not,
so the lists now go through a vector like the rest of the file.

deploy/README.md documents the runner, the sandbox's private /tmp and how
to run a built binary where the host lacks a matching libc++.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-12 16:32:57 +02:00
25805a093a removed fp6 from shop
All checks were successful
Deploy / build-deploy (push) Successful in 9m28s
2026-09-05 18:38:39 +02:00
aaa7a8ce99 bank tranfer fix
All checks were successful
Deploy / build-deploy (push) Successful in 3m11s
2026-08-20 23:33:50 +02:00
df91762271 Replaced mollie
All checks were successful
Deploy / build-deploy (push) Successful in 3m47s
2026-08-20 20:15:47 +02:00
7098ac75cb crypto payment message
All checks were successful
Deploy / build-deploy (push) Successful in 3m18s
2026-08-20 03:08:30 +02:00
1a38cfe5d7 crypto payment message
All checks were successful
Deploy / build-deploy (push) Successful in 3m13s
2026-08-20 02:50:28 +02:00
5d3a3adb86 crypto test fix
All checks were successful
Deploy / build-deploy (push) Successful in 3m40s
2026-08-20 01:49:15 +02:00
45992c4f91 payment tests
Some checks failed
Deploy / build-deploy (push) Failing after 4m58s
2026-08-20 01:36:42 +02:00
47d302a9a4 crypto fix
All checks were successful
Deploy / build-deploy (push) Successful in 2m26s
2026-08-20 00:09:08 +02:00
2a4e2c1c85 crypto fix
All checks were successful
Deploy / build-deploy (push) Successful in 2m32s
2026-08-19 23:55:01 +02:00
ed61fb5ca5 fp6+
All checks were successful
Deploy / build-deploy (push) Successful in 3m6s
2026-08-19 17:19:51 +02:00
a8bc400371 video seo
All checks were successful
Deploy / build-deploy (push) Successful in 2m33s
2026-08-19 00:02:32 +02:00
faf881fa0c added missing icons
All checks were successful
Deploy / build-deploy (push) Successful in 3m0s
2026-08-18 21:21:41 +02:00
593bdb17d4 112 tested
All checks were successful
Deploy / build-deploy (push) Successful in 3m21s
2026-08-18 14:52:49 +02:00
4666c1995f markdown fix
All checks were successful
Deploy / build-deploy (push) Successful in 2m23s
2026-08-18 11:12:24 +02:00
c31797bd9a retire the bunq integration
All checks were successful
Deploy / build-deploy (push) Successful in 3m32s
The webhook is deregistered at bunq and the callback endpoint, its parser,
default-deny classifier, dedup ledger and signature check are removed; the
code is in git history if a bank feed ever comes back. /financials keeps
reading the hand-maintained aggregates file, and sales + shop donations
stay live from the order ledger.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-17 11:43:09 +02:00
4c49000d46 fix shopfront pin for the shortened donate button
All checks were successful
Deploy / build-deploy (push) Successful in 3m33s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-17 11:23:45 +02:00
5be98cff96 text change
Some checks failed
Deploy / build-deploy (push) Has been cancelled
2026-08-17 11:16:49 +02:00
abbd616b40 donation item, shop soft open
All checks were successful
Deploy / build-deploy (push) Successful in 4m11s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-17 11:04:03 +02:00
b0666841f6 sanctions block list
All checks were successful
Deploy / build-deploy (push) Successful in 2m18s
2026-08-15 03:22:25 +02:00
749f525f83 tests and eurc
All checks were successful
Deploy / build-deploy (push) Successful in 4m19s
2026-08-15 00:54:05 +02:00