Dhananjay Purohit's avatar
Dhananjay Purohit
dhananjay@ngx-l402.org
npub1qnw2...9r6h
⚠️ Security update for ngx-l402 users The official Docker image (ghcr.io/ngx-l402/ngx-l402) up to v1.3.2 ships nginx 1.28.0 with HTTP/2 on port 8000. nginx 1.28 gets no fix for CVE-2026-123007, a heap overflow in nginx's HTTP/2 flow control that any client can trigger before the paywall runs. It can crash nginx workers and, in the worst case, allow remote code execution. v1.4.0 also covers CVE-2026-123633, a use-after-free when nginx proxies HTTP/2. 🔍 The ngx-l402 module code itself isn't affected; the problem is the nginx the image ships. What to do: 🐳 Docker: docker pull ghcr.io/ngx-l402/ngx-l402:1.4.0 and restart. docker exec <container> nginx -v should print 1.30.7. 🛠️ Your own nginx: upgrade to 1.30.7+ or 1.31.9+ and use the matching module build. We no longer publish 1.28 and 1.29 builds, and the module now logs a warning at startup when it's loaded into an nginx without the fixes. 🛡️ Can't update right away: don't expose port 8000 to untrusted networks, or set http2 off; if you don't use gRPC. ✨ Also in v1.4.0: on nginx 1.30+, l402_payment_html off routes answer HTTP/1.1 clients again, and HEAD responses no longer carry a body. 🤖 And there's l402_mcp, which puts ngx-l402 in front of an MCP server and charges per tool call over Lightning ⚡ 🔒 Advisory: 📦 Release: 🌐 Repo on Nostr: 🙏 Thanks to Talip (https://github.com/otaliptus) and Red Team for the report. #bitcoin #lightning #L402 #nostr
ngx-l402 v1.3.2 is out — a security release. Lightning paywalls for nginx, self-hosted and non-custodial. In Cashu P2PK mode a proof whose lock could lapse before redemption was accepted — an expired locktime with no refund tag is spendable by anyone under NUT-11. Any locktime is now refused. CASHU_P2PK_MODE only. Reported by Nuhiat-Arefin (https://github.com/Nuhiat-Arefin), thank you. Also in this release: - l402_tenant — name a tenant once at http level, reference it per location with l402_tenant_ref - a nested `l402 off` now turns the paywall off under a paid parent - a Blossom/Nostr `Authorization` header is no longer read as a failed L402 credential, so it gets the 402 challenge - tenant config errors name the file and line; cargo audit clean docker pull ghcr.io/ngx-l402/ngx-l402:1.3.2 Thanks @thesvn @ritik
ngx-l402 v1.3.0 is out ⚡ · An open-source nginx module that puts a Lightning paywall in front of any API · Two lines of config — any upstream, any language · Self-hosted and non-custodial: payments go straight to your node, your Lightning address, or your own wallet over NWC · No platform in the middle taking a cut Tighter defaults: · with Redis configured, a payment is accepted only once it's been recorded · every method goes through the same check, HEAD included · invoice rate limits key on the connection, so headers can't shift them · the Cashu wallet seed stays with the master process, away from the workers · metrics listen on localhost unless you open them up Easier to run (special thanks to @jeezman): · nginx -t now just validates the config, so deploy scripts, CI checks and certbot's renewal hook see a clean pass · reloads keep the running state, so nginx -s reload is enough instead of a restart Also new: · headers-only 402s for agent routes · JSON logs, one line per L402 event · a price list at /.well-known/l402-services, so an agent with only your hostname can find what your routes cost Fixes in this one came from: - @ritik - @thesvn - @jeezman - @Dhananjay Purohit Links: · repo, Nostr-native and pushed with ngit: · release notes: · site and live demo: #bitcoin #lightning #nostr #cashu #L402
I built payblob — a client that pays to pull container images. The image is a signed Nostr event, its layers sit on Blossom behind a Lightning paywall. payblob settles the L402 invoice and pulls it — 10 sats, non-custodial, over Nostr. Why? GitHub's bots flagged my repo twice and took it offline — images and all. So I moved images where nobody can flag them, and made them pay for their own hosting. Built on @Alex Gleason ncontainer + noci — he shipped that base in a weekend. I added the payments. Video 👇 — and poke at the live server yourself (free upload, 10 sats to download): https://blossom.ngx-l402.org payblob: paywalled blossom server: ncontainer: noci: #nostr #bitcoin #lightning #L402
ngx-l402 — an nginx module that puts a Lightning paywall (L402) in front of any HTTP API. Two directives: l402 on; l402_amount_msat_default 1000; A request without payment gets a 402 with a macaroon + BOLT-11 invoice. Pay, retry with the preimage, get your 200. Non-custodial by design: sats settle straight to your own node or Lightning address. No account, no intermediary, nothing routed through us. Lightning backends: LND, CLN, Eclair, LNURL, NWC, BOLT12, LNC. Cashu eCash works too — the client sends a token in the X-Cashu header instead of paying an invoice. Proofs verify offline via NUT-12 DLEQ, so there's no round-trip to the mint on the request path. Bearer, unlinkable, and skipping the invoice round-trip makes it the fastest path of the lot. It also publishes a capability manifest at /.well-known/l402-services, so agents can discover your routes and prices and pay — no API key, no signup. Live demo, 1 sat and learn more at: Code (MIT): The repo is mirrored on Nostr via ngit (gitworkshop.dev) and release binaries are on Blossom. GitHub flagged the org twice, so the project is built to survive being deplatformed. repo on ngit:- Release on blossom: https://nostr.download/03b6473139813e3c06361da15803a61e4c9f86111413a2467227825ed72b093d.gz #bitcoin #lightning #l402
🐋 Back in 2021 I did my Google Summer of Code with Orcasound — an open-source project running a cooperative network of hydrophones (underwater mics) off the Pacific Northwest coast. Anyone can put on headphones and listen live for endangered orcas, helping scientists detect and protect them. Open-source software + hardware + a distributed community of listeners. My contribution there wrapped a while back, but they haven't forgotten me — a kind surprise recently landed in the mail. 👕📦 Grateful to have played a small part in helping orcas be heard. #OpenSource #ListenForWhales #Orcasound image
GitHub trying to sabotage solid open source projects. #BTCBreakdown image
↑