Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d69b89c
feat: add internal iOS push MVP
square-tomb Aug 18, 2026
6c04960
fix(mobile): accept UUIDv5 push channel targets
brow Aug 20, 2026
669d86c
Merge remote-tracking branch 'origin/main' into codex/mobile-push-not…
brow Aug 20, 2026
8e7f5dc
fix(mobile): treat push target IDs as opaque
brow Aug 20, 2026
0ba31e8
feat(mobile): enrich push notification presentation
brow Aug 22, 2026
8f2a858
Merge remote-tracking branch 'origin/main' into codex/mobile-push-not…
brow Aug 22, 2026
7bdefdf
fix(db): renumber push message migration
brow Aug 22, 2026
daeb598
fix(push): align fresh database message matching
brow Aug 22, 2026
ed34cf4
test(mobile): cover push presentation bridge gating
brow Aug 22, 2026
bf76a53
feat(mobile): add rich communication push context
brow Aug 22, 2026
2f5f8d8
refactor(mobile): activate push from relay capability
brow Aug 24, 2026
29edeeb
Merge remote-tracking branch 'origin/main' into codex/mobile-push-not…
brow Aug 24, 2026
1b0563e
refactor(mobile): split channel member snapshots
brow Aug 24, 2026
9b1a062
fix(mobile): guard push profile cache disposal
brow Aug 24, 2026
489eb43
Merge origin/main into push notifications
brow Aug 24, 2026
7d6efa9
fix(mobile): show avatars in channel push notifications
brow Aug 24, 2026
b89c13a
chore(mobile): format merged sources
brow Aug 24, 2026
39bf80b
fix(mobile): resolve inline push profile avatars
brow Aug 24, 2026
35044e8
fix(mobile): decouple push enrollment from permission
brow Aug 25, 2026
63e22be
Merge remote-tracking branch 'origin/main' into codex/mobile-push-not…
brow Aug 25, 2026
aca1302
refactor(mobile): remove duplicate lease self-validation
brow Aug 25, 2026
3b3e536
refactor(push): simplify internal notification stack
brow Aug 25, 2026
55de7b2
Merge origin/main into push notifications
brow Aug 25, 2026
5a5e767
docs(push): correct gateway profile scope
brow Aug 25, 2026
b85f2f4
Merge origin/main into push notifications
brow Aug 26, 2026
c26d215
fix(push): honor current-generation revocation (BUZZ-SEC-010)
jmecom Jul 15, 2026
12c66ea
fix(mobile): retry push bootstrap safely
brow Aug 26, 2026
8e5ece0
fix(push): renew gateway authority safely
brow Aug 26, 2026
956c1d0
fix(push): preserve applied migration checksum
brow Aug 26, 2026
7eb3a65
fix(push): admit valid App Attest enrollment envelopes
brow Aug 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ RELAY_URL=ws://localhost:3000
# (use `just web` for Vite HMR instead).
# BUZZ_WEB_DIR=./web/dist

# NIP-PL mobile push is an explicit deployment opt-in. A gateway URL alone
# never enables it. When enabled and the URL is absent, the canonical
# https://push.buzz.xyz/v1/deliveries/apns endpoint is used.
BUZZ_PUSH_ENABLED=false
# BUZZ_PUSH_GATEWAY_DELIVERY_URL=https://push.buzz.xyz/v1/deliveries/apns

# Optional relay-owned KLIPY key. When set, NIP-11 advertises GIF search and
# authenticated desktop clients use this relay as the metadata/search proxy.
# Keep the real value in your deployment's secret manager; never commit it.
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,20 @@ jobs:
- name: Build Android debug APK
run: just mobile-build-android

mobile-swift:
name: Mobile Swift
runs-on: macos-latest
timeout-minutes: 10
needs: [changes]
if: needs.changes.outputs.mobile == 'true'
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Build
run: swift build --package-path mobile/ios/BuzzPushKit
- name: Build release
run: swift build -c release --package-path mobile/ios/BuzzPushKit
- name: Test
run: swift test --package-path mobile/ios/BuzzPushKit
security:
name: Security
runs-on: ubuntu-latest
Expand Down
11 changes: 11 additions & 0 deletions .intersect/sadscan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,14 @@
exclude_rules_for_files:
sq.pii.cc.visa:
- Cargo.lock
# Self-signed test fixture generated solely to exercise reqwest identity parsing.
kingfisher.privkey.2:
- "*apns-test-identity.pem"
- "*apns-test-key-only.pem"
- "*apns-test-encrypted-identity.pem"
- "*apns-test-mismatched-identity.pem"
np.pem.1:
- "*apns-test-identity.pem"
- "*apns-test-key-only.pem"
- "*apns-test-encrypted-identity.pem"
- "*apns-test-mismatched-identity.pem"
164 changes: 0 additions & 164 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,10 @@ test-unit:
cargo nextest run -p buzz-voice --lib
cargo nextest run -p buzz-cli
# buzz-db migrator/lint tests: pure SQL-parsing unit tests (no infra).
# They guard the embedded-migrator invariant (exactly the consolidated
# 0001; cutover/backfill stays an operator script, not startup state)
# and the tenant-scoping lints. The Postgres-backed buzz-db tests are
# They guard the embedded-migrator invariant (the complete checked-in
# additive migration set; legacy cutover/backfill remains an operator
# script, not startup state) and the tenant-scoping lints. The
# Postgres-backed buzz-db tests are
# #[ignore]d, so --lib runs only the infra-free set. Without this gate a
# stray file in migrations/ or a broken lint ships green.
cargo nextest run -p buzz-db --lib
Expand Down
25 changes: 21 additions & 4 deletions crates/buzz-db/src/migration.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
//! Embedded SQLx migrations for Buzz.
//!
//! Fresh deployments apply the checked-in SQL files under `migrations/`. The
//! multi-tenant rewrite owns a clean consolidated `0001`; legacy single-tenant
//! cutover/backfill is a separate operator script, not startup migration state.
//! Fresh deployments apply the checked-in additive SQL files under
//! `migrations/`. The multi-tenant rewrite begins from a clean consolidated
//! `0001`; legacy single-tenant cutover/backfill is a separate operator script,
//! not startup migration state.

use std::future::Future;

Expand Down Expand Up @@ -645,7 +646,7 @@ mod tests {
let mut migrations: Vec<_> = MIGRATOR.iter().collect();
migrations.sort_by_key(|migration| migration.version);

assert_eq!(migrations.len(), 32);
assert_eq!(migrations.len(), 33);
assert_eq!(migrations[0].version, 1);
assert_eq!(&*migrations[0].description, "initial schema");
assert!(migrations[0]
Expand Down Expand Up @@ -1109,6 +1110,22 @@ mod tests {
assert!(include_str!("../../../schema/schema.sql").contains("error_code TEXT"));
}

#[test]
fn push_match_trigger_is_narrowed_to_message_kinds_additively() {
let mut migrations: Vec<_> = MIGRATOR.iter().collect();
migrations.sort_by_key(|migration| migration.version);

assert_eq!(migrations[32].version, 33);
let sql = migrations[32].sql.as_str();
assert!(sql.contains("CREATE OR REPLACE FUNCTION enqueue_push_match_job"));
assert!(sql.contains("NEW.kind IN (9, 40002, 45001, 45003)"));
assert!(!sql.contains("NEW.kind IN (7, 9, 1059, 40007, 46010)"));

let desired_schema = include_str!("../../../schema/schema.sql");
assert!(desired_schema.contains("NEW.kind IN (9, 40002, 45001, 45003)"));
assert!(!desired_schema.contains("NEW.kind IN (7, 9, 1059, 40007, 46010)"));
}

#[test]
fn migration_lint_detects_tables_missing_community_id_by_default() {
let sql = r#"
Expand Down
Loading
Loading