openvibers/openvibe.network Commits

Network: events.subscription.manage for watch, services, wiki, blog and bot, so they create their two account-event subscriptions at boot (ADR-033; the account grants follow once they are subscribed) (#93)

OP OpenVibers committed 9 Oct 2026 · 613a8e687c · 1 file, +3 −0

Changes

ddiff --git a/server/identity/principals.js b/server/identity/principals.js
iindex 3c50a96f..55ea9420 100644
---- a/server/identity/principals.js
++++ b/server/identity/principals.js
@@@ -28,6 +28,9 @@ const DEFAULT_GRANTS = [
['quest', 'events.subscription.manage', 'openvibe.events', []],
// They subscribe to network.account.export_requested and network.account.deleted at boot (ADR-033).
...['actor', 'food', 'help', 'work', 'rent', 'media-hub'].map((svc) => [svc, 'events.subscription.manage', 'openvibe.events', []]),
++ // The same two subscriptions for the services that gained an account-event route on 2026-10-09 (SDK 0.37.0
++ // startSubscriptions); deals, trade, tips and vip already hold the grant for their other subscriptions.
++ ...['watch', 'services', 'wiki', 'blog', 'bot'].map((svc) => [svc, 'events.subscription.manage', 'openvibe.events', []]),
// MediaHub resolves the usernames an owner names on a share link to subjects (only subjects are matched).
['media-hub', 'identity.subject.resolve', SELF_AUDIENCE, []],
['live', 'network.coins.debit', SELF_AUDIENCE, ['live']],