Skip to content

Gate relay invites on optional terms acceptance#1894

Open
tlongwell-block wants to merge 1 commit into
mainfrom
wren/invite-terms-gate
Open

Gate relay invites on optional terms acceptance#1894
tlongwell-block wants to merge 1 commit into
mainfrom
wren/invite-terms-gate

Conversation

@tlongwell-block

Copy link
Copy Markdown
Collaborator

Summary

  • add an optional deploy-time invite terms gate configured by BUZZ_INVITE_TERMS_URL and BUZZ_INVITE_TERMS_VERSION
  • disable and grey the web invite acceptance button until the configured terms are acknowledged
  • enforce acceptance at the claim endpoint with a short-lived relay-signed receipt bound to the invite and policy version
  • record accepted policy version, joining pubkey, receipt ID, and acceptance timestamps server-side
  • preserve the existing invite UI and claim behavior when both variables are unset

Validation

  • targeted relay invite receipt/binding tests pass
  • DB migration tests pass
  • cargo clippy -p buzz-relay -p buzz-db --all-targets -- -D warnings
  • web and desktop TypeScript/lint checks pass
  • web production build passes
  • desktop JS tests pass: 2,885
  • pre-commit hooks pass, including mobile analysis
  • pre-push desktop, mobile, and desktop Tauri suites pass

Known unrelated validation issues

  • full relay suite: 655 passed; one existing mesh demo timeout (504 vs 200); targeted changed tests pass
  • full desktop Rust build is blocked by the pre-existing missing bundled binary desktop/src-tauri/binaries/buzz-acp-aarch64-apple-darwin
  • pre-push aggregate Rust unit hook selects sqlx 0.9.0, which requires rustc 1.94 while the hook runs rustc 1.89; buzz-db and buzz-push-gateway therefore do not start in that hook. The targeted DB suite and clippy command above pass in the repository's normal environment.

Co-authored-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co>
@tlongwell-block tlongwell-block requested a review from a team as a code owner July 15, 2026 02:19
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.

1 participant