• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

archetech / archon / 41882471714
95%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2026 06:10PM UTC
Jobs 1
Files 171
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Nov 2026 05:57PM UTC coverage: 70.642% (+0.06%) from 70.585%
41882471714

push

github

web-flow
feat(cashu): add an optional node mint behind Drawbridge (#1517)

* feat(cashu): add an optional node mint behind Drawbridge

The `cashu` profile runs cdk-mintd 0.18.3 (docker/compose/cashu-mint.yml),
the first delivery step of docs/plans/cashu-1058.md (#1058).

- scripts/cashu-mint-entrypoint.sh initializes the mint once: when cdk-mintd
  reports its database unconfigured it generates a signing seed, writes the
  TOML from ARCHON_CASHU_MINT_* and runs `config init`; any other failure to
  read the configuration stops it. Backends: fakewallet (default) and cln.
  The mint runs as ARCHON_UID with its data in data/cashu-mint.
- The cln backend reaches CLN through a second RPC socket the CLN entrypoint
  opens with ARCHON_CLN_RPC_SHARE=true: a socat relay in
  data/cln-mainnet/rpc-share for ARCHON_GID. lightningd's own socket and
  directory stay root-only.
- Drawbridge proxies the mint API at /cashu (outside L402, rate limited, the
  admin key exempt and not forwarded), reports the `cashu` capability, and
  serves the public mint URL at GET /cashu-mint for https public hosts.
- DrawbridgeClient.getCashuMint() and the Python get_cashu_mint().

Deviations from the plan, recorded there: a hex seed instead of a BIP-39
mnemonic (the image cannot generate one), the socket relay instead of
rpc-file-mode, and the management RPC left for a follow-up (it needs TLS
material and cdk-mint-cli, neither in the image).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0168qihPEAixRXFC88BShBFd

* fix(drawbridge, cashu): address review: proxy encoding, metric labels, mint startup

- The proxies read upstream bodies with fetch, which decodes them, but
  forwarded Content-Encoding, so a compressed response reached clients as a
  plain body labelled gzip. /cashu, /didcomm, /names, /explorer and the
  Lightning mediator share one header filter that drops it.
- Request metrics labelled mounted routes by req.path, which lac... (continued)

4423 of 7113 branches covered (62.18%)

Branch coverage included in aggregate %.

41 of 44 new or added lines in 7 files covered. (93.18%)

11542 of 15487 relevant lines covered (74.53%)

14596.97 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
87.23
services/drawbridge/server/src/cashu-proxy.ts
Jobs
ID Job ID Ran Files Coverage
1 41882471714.1 04 Nov 2026 06:10PM UTC 171
70.64
GitHub Action Run
Source Files on build 41882471714
  • Tree
  • List 171
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #41882471714
  • dd946bbd on github
  • Prev Build on main (#41726170411)
  • Next Build on main (#41887027057)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc