mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
Made the roles the only lists of topics, Refused PRAGMAs in queries
- Removed `[server] topics` and `[replication] replicated_topics`: a push is taken by its roles' `push_topics`, a replicated message by the peer's `accept_topics`; a topic exists from its first message. - Topics that only came from a peer are read and listed like any other; `ListNames` lists the topics with messages, filtered by the roles. - A push to a topic no role names is `NotAllowed`; `UnknownName` is only for nodes. - Clients' queries: every PRAGMA refused as it's prepared (SQLite's authorizer), `PRAGMA query_only = 0` used to take effect. - Noted the leads found by reading the code in `docs/known-issues.md`. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
+3
-2
@@ -69,8 +69,9 @@ format, its values are checked all the same.)
|
||||
|
||||
- **Topics and nodes are names**, everywhere: 1-64 of `A-Z a-z 0-9 _ . -`,
|
||||
not only digits, compared without case (`names`). A name that isn't one
|
||||
is malformed (the client libraries check before sending); one the server
|
||||
doesn't have is refused (`UnknownName`). Ids are each server's own, in
|
||||
is malformed (the client libraries check before sending); a node the
|
||||
server has no message of is refused (`UnknownName`), a topic is only
|
||||
ever allowed or not (the roles). Ids are each server's own, in
|
||||
its database, never on the wire.
|
||||
- **Patterns** (in a `SyncState`): names with `*` (any characters, none
|
||||
included) and `?` (one).
|
||||
|
||||
Reference in New Issue
Block a user