Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

polish(md): SECURITY_MODEL: update required_privilege/op-list line refs (#1541)

xerj-orgcfdec23f1033
diff --git a/docs/SECURITY_MODEL.md b/docs/SECURITY_MODEL.md
index 85cfddd5f..7999f317d 100644
--- a/docs/SECURITY_MODEL.md
+++ b/docs/SECURITY_MODEL.md
@@ -42,10 +42,10 @@ It does four things:
so `%2Exerj-memory-alice` cannot slip past a check that
`.xerj-memory-alice` would fail.
2. Works out the privilege the request needs (`required_privilege`,
- `authz.rs:505`). `GET`/`HEAD` need read. A `POST` whose operation segment is
+ `authz.rs:561`). `GET`/`HEAD` need read. A `POST` whose operation segment is
in `POST_READ_OPS` (`_search`, `_count`, `_msearch`, `_mget`, `_sql` and
- others, `authz.rs:349`) needs read. Operations in `ADMIN_OPS` (`_settings`,
- `_mapping`, `_close`, `_alias`, `_forcemerge` and others, `authz.rs:388`)
+ others, `authz.rs:402`) needs read. Operations in `ADMIN_OPS` (`_settings`,
+ `_mapping`, `_close`, `_alias`, `_forcemerge` and others, `authz.rs:441`)
need manage, as does a request with no operation segment at all, because that
creates or destroys the index. Everything else is treated as a write.
3. Extracts the indices the request body names (`body_targets`, `authz.rs:730`)