Join Nostr
2026-08-18 18:18:44 UTC
in reply to

DhananjayPurohit on Nostr: Explicit route set, not prefix. Each location is tagged with l402_realm "name", so ...

Explicit route set, not prefix. Each location is tagged with l402_realm "name", so membership is opt in and a new route under the same tree doesn't silently join.

Your instinct still lands though, it just moves: nothing enforces uniform pricing inside a realm, so two locations sharing a name at different prices means the cheap token opens the dear route. That's documented, but documentation isn't a guard. Filing it, likely as a startup warning rather than a hard reject, since nginx merges each location independently and a reject would break anyone already running mixed prices.

On bearer tokens, the preimage is single use by default, claimed atomically with SET NX EX, so that's the spend counter. Realm mode requires l402_indefinite_access which turns that off by design, and there your point is exact: ExpiresAt is the only bound.

The idempotency hit is fair and unanswered today. Pay, lose the response, retry, preimage already claimed, 401 having paid for nothing. Filing it as a discussion rather than a task though, because a retry window is a replay window: anyone positioned to observe the preimage gets the same grace. Curious how you scoped the request id, is it bound to the payer or just to the request?