Skip to content

fix(markets): open product AVNU paymaster without client Bearer - #46

Merged
adrienlacombe merged 3 commits into
mainfrom
cursor/product-avnu-proxy-public-8c34
Aug 17, 2026
Merged

fix(markets): open product AVNU paymaster without client Bearer#46
adrienlacombe merged 3 commits into
mainfrom
cursor/product-avnu-proxy-public-8c34

Conversation

@adrienlacombe

Copy link
Copy Markdown
Owner

Summary

Product desktop can place sponsored bets against https://paymaster.bitcoinmarkets.app with no AVNU_PROXY_AUTH_TOKEN, AVNU_PROXY_URL, or other process-env secrets — so just desktop-standalone, tauri dev, and packaged builds work for everyone.

Related issue

None found (product unblock for hosted paymaster auth gate).

What changed

  1. Client (avnu_rpc) — Product URL skips Bearer entirely. Custom non-product, non-loopback AVNU_PROXY_URL still requires AVNU_PROXY_AUTH_TOKEN from process env (never baked).
  2. Proxy (buzz-avnu-proxy)PROXY_PUBLIC=1 allows non-loopback bind without PROXY_AUTH_TOKEN and serves / + /rpc without Bearer (logs that abuse control is AVNU credits). Default remains fail-closed.
  3. Terraform — Live buzz-avnu-proxy task sets PROXY_PUBLIC=1 and stops injecting PROXY_AUTH_TOKEN. Secret + prevent_destroy unchanged; AVNU_API_KEY still from Secrets Manager. paymaster.tf not touched.
  4. Tests / docs — Unit coverage for product vs custom auth; docs note product desktop needs no args.

Testing

  • cargo test -p buzz-core markets:: — 14 passed (incl. product/custom Bearer helpers)
  • cargo test -p buzz-avnu-proxy — 5 passed (PROXY_PUBLIC boot + auth resolve)
  • Desktop full cargo test not run here (sidecar binaries / Tauri resources missing in this env); logic under test lives in buzz-core

Safety

  • AVNU_API_KEY never in client, repo values, or terraform literals
  • No first-bet UI / indexer scope expansion
Open in Web Open in Cursor 

Desktop place_bet against https://paymaster.bitcoinmarkets.app no longer
requires AVNU_PROXY_AUTH_TOKEN, so packaged apps and just desktop-standalone
work with zero process-env secrets. Custom non-product proxies stay
fail-closed. PROXY_PUBLIC=1 lets buzz-avnu-proxy bind off-loopback without
Bearer; Terraform enables it on the live service (AVNU_API_KEY stays
secret-only; paymaster.tf untouched).

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Adrien Lacombe <adrienlacombe@users.noreply.github.com>
@adrienlacombe
adrienlacombe marked this pull request as ready for review August 17, 2026 07:22
cursoragent and others added 2 commits August 17, 2026 08:14
Types after fns and json before Value so desktop-tauri-fmt-check passes.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Adrien Lacombe <adrienlacombe@users.noreply.github.com>
video-attachment.spec.ts:904 (controls Y < 0.5) fails the same way on
main Smoke E2E (4) and recovers on retry; not a PR 46 regression.

Co-authored-by: Adrien Lacombe <adrienlacombe@users.noreply.github.com>
@adrienlacombe
adrienlacombe merged commit 3eab395 into main Aug 17, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants