Change log for upcoming 2.0, plus MIGRATION.md document

This commit is contained in:
Mike Dilger 2025-02-21 10:19:24 +13:00
parent e7044ad0db
commit c03da62981
No known key found for this signature in database
GPG Key ID: 47581A78D4329BA4
2 changed files with 34 additions and 0 deletions

View File

@ -64,6 +64,15 @@ announce upgrade instructions until release.
## Change Log
### Version 2.0
- IMPORTANT: You need to manually [Migrate](docs/MIGRATION.md) your users and moderators.
- Management commands have been added: listeventsneedingmoderation, listadmins, listmoderators,
grantmoderator, revokemoderator, listusers, grantuser, revokeuser, stats
- fix: subscriptions will be CLOSED: auth-required if any matching event requires auth. Chorus
will serve the redacted results first, but will not EOSE.
- fix: subscriptions will be CLOSED when completed, without EOSE, if the filter has any ids set.
### Version 1.7.2
- Support for NIP-62 (PR #1256) Right to Vanish

25
docs/MIGRATION.md Normal file
View File

@ -0,0 +1,25 @@
# Migration
## From 1.0 to 2.0
1) Add to your config file `admin_hex_keys` to include the nostr hex keys of administrators.
These will (eventually) be allowed to manage users and moderators remotely via the management
interface. Note that being an admin does NOT automatically grant user or moderator rights,
it ONLY grants the right to administer users.
2) Users and moderators are now dynamically configured in the database. Use `chorus_cmd` to
manage them from the command line:
* Adding a user: `chorus_cmd add_user <pubkey> 0`
* Adding a moderator: `chorus_cmd add_user <pubkey> 1`
* Removing a user or moderator: `chorus_cmd rm_user <pubkey>`
* Listing users and moderators: `chorus_cmd dump_users`
3) Remove the following from your config file as these are no longer used:
* `user_hex_keys` - users are now dynamically configured and configuration is in the database.
* `moderator_hex_keys` - moderators are now dynamically configured and configuration is in the database.
4) Configuration setting `public_key_kex` has been renamed `contact_public_key_hex` and is
used only for the NIP-11 data.