1
0
mirror of https://github.com/aziascreations/BakaShrot.git synced 2026-11-23 20:58:46 +01:00

Added the list_topics and list_nodes role flags, Filtered the nodes listed by the roles

- `list_topics` / `list_nodes`: listing answers every topic, every node
  with messages, without reading any (`query` gives both).
- Without them, listing nodes only answers those with messages in the
  topics the roles may read (every node until now).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 01:40:01 +01:00
parent cf8264b21d
commit c86dc8798e
14 changed files with 122 additions and 31 deletions
+6
View File
@@ -37,11 +37,17 @@ What a role gives:
| `push_topics` | none | pushing to these topics, always as its own node |
| `read_topics` | none | reading these topics' messages |
| `query` | `false` | read-only SQL, which reads every topic |
| `list_topics` | `false` | listing topics answers every one with messages, not only those it may push to or read |
| `list_nodes` | `false` | listing nodes answers every one with messages, not only those of the topics it may read |
| `send_topics` | none | replication: these topics sent to it |
| `accept_topics` | none | replication: these topics taken from it |
| `send_nodes` | `["*"]` | replication: only these nodes' messages sent |
| `accept_nodes` | `["*"]` | replication: only these nodes' messages taken |
`list_topics` and `list_nodes` (2026-11-16) only give names, for a tool
that browses a server: reading a topic is still `read_topics`. `query`
gives both, it reads everything anyway.
No `AllowRead` / `AllowWrite`: a list that's empty allows nothing. No
default topic: a push always names its topic (protocol 7 has none).