Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 4 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,10 @@ BUZZ_PUSH_GATEWAY_DELIVERY_URL=https://push.buzz.xyz/v1/deliveries/apns
# Directory holding the built dashboard assets (`pnpm -C admin-web build`).
# BUZZ_ADMIN_WEB_DIR=./admin-web/dist
#
# Canonical origin (http(s)://host[:port], no path) that community-provisioning
# NIP-98 requests are verified against. Required only to USE the provisioning
# endpoints (POST /operator/communities) — not for the admin console. When
# RELAY_OPERATOR_PUBKEYS is set but this is unset, the relay boots with a WARN
# and provisioning requests fail closed until it is set.
# Canonical origin (http(s)://host[:port], no path) for deployment Operator
# NIP-98 requests, including provisioning and identity archive. Required for
# /operator routes. The admin console uses BUZZ_ADMIN_HOST as its origin.
# See docs/operator-identity-archive.md.
# RELAY_OPERATOR_API_ORIGIN=http://127.0.0.1:3000

# Deployment-global operator-listener routes. Each configured Nostr identity
Expand Down
6 changes: 3 additions & 3 deletions crates/buzz-db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ pub use store::{
admin_moderation, allowlist, api_token, archived_identities, artifact, artifact_sync,
audit_log, channel, channel_members, community, community_auth, deletion, dm, entity_deletion,
event, feed, git_repo, group_discovery, leader_lock, media, membership_snapshot, moderation,
nip_fi_binding, operator_listener, partition, personal_read, pins, product_feedback, push,
reaction, read_state, relay_admin_actions, relay_invite, relay_members, relay_operators,
reminder, replaceable, search, search_backfill, search_index, search_outbox,
nip_fi_binding, operator_identity_archive, operator_listener, partition, personal_read, pins,
product_feedback, push, reaction, read_state, relay_admin_actions, relay_invite, relay_members,
relay_operators, reminder, replaceable, search, search_backfill, search_index, search_outbox,
storage_accounting, thread, thread_window, user, user_deletion, user_deletion_fences, workflow,
};

Expand Down
14 changes: 13 additions & 1 deletion crates/buzz-db/src/runtime/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,17 @@ mod postgres_tests {
let mut migrations: Vec<_> = MIGRATOR.iter().collect();
migrations.sort_by_key(|migration| migration.version);

assert_eq!(migrations.len(), 113);
assert_eq!(migrations.len(), 115);
assert_eq!(migrations[114].version, 115);
assert!(migrations[114]
.sql
.as_str()
.contains("VALIDATE CONSTRAINT archived_identities_consent_path_check"));
assert_eq!(migrations[113].version, 114);
let consent = strip_sql_comments(migrations[113].sql.as_str());
assert!(consent
.contains("CHECK (consent_path IN ('self', 'owner', 'admin', 'relay')) NOT VALID"));
assert!(!consent.contains("CREATE TABLE"));
assert_eq!(migrations[112].version, 113);
assert!(strip_sql_comments(migrations[112].sql.as_str())
.contains("CREATE TABLE search_index_generations"));
Expand Down Expand Up @@ -3965,6 +3975,7 @@ mod postgres_tests {
for table in [
"community_serving_write_leases",
"media_uploaders",
"archived_identities",
"audit_log",
"media_publications",
"relay_members",
Expand Down Expand Up @@ -4056,6 +4067,7 @@ mod postgres_tests {
);

for table in [
"archived_identities",
"communities",
"community_auth_upgrades",
"community_serving_write_leases",
Expand Down
3 changes: 3 additions & 0 deletions crates/buzz-db/src/store/admin_moderation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ use uuid::Uuid;
use crate::error::Result;
use crate::Db;

mod ownership;
pub use ownership::{IdentityInventory, InventoryIdentity, InventoryWorkflow};

/// Maximum rows accepted by one admin query.
pub const MAX_PAGE_SIZE: i64 = 200;

Expand Down
Loading
Loading