fix(markets): open product AVNU paymaster without client Bearer - #46
Merged
Conversation
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
marked this pull request as ready for review
August 17, 2026 07:22
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Product desktop can place sponsored bets against
https://paymaster.bitcoinmarkets.appwith noAVNU_PROXY_AUTH_TOKEN,AVNU_PROXY_URL, or other process-env secrets — sojust desktop-standalone,tauri dev, and packaged builds work for everyone.Related issue
None found (product unblock for hosted paymaster auth gate).
What changed
avnu_rpc) — Product URL skips Bearer entirely. Custom non-product, non-loopbackAVNU_PROXY_URLstill requiresAVNU_PROXY_AUTH_TOKENfrom process env (never baked).buzz-avnu-proxy) —PROXY_PUBLIC=1allows non-loopback bind withoutPROXY_AUTH_TOKENand serves/+/rpcwithout Bearer (logs that abuse control is AVNU credits). Default remains fail-closed.buzz-avnu-proxytask setsPROXY_PUBLIC=1and stops injectingPROXY_AUTH_TOKEN. Secret +prevent_destroyunchanged;AVNU_API_KEYstill from Secrets Manager.paymaster.tfnot touched.Testing
cargo test -p buzz-core markets::— 14 passed (incl. product/custom Bearer helpers)cargo test -p buzz-avnu-proxy— 5 passed (PROXY_PUBLICboot + auth resolve)cargo testnot run here (sidecar binaries / Tauri resources missing in this env); logic under test lives inbuzz-coreSafety
AVNU_API_KEYnever in client, repo values, or terraform literals