Docs advertise secret-based AUTH + per-DB ACLs, but auth was intentionally removed — update docs (and decide if it returns) #45
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_db#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The README/PURPOSE still document an authentication / authorization feature that no longer exists in the code. This was an intentional removal, so the actionable bug here is the stale documentation; whether auth should come back is a separate product decision (noted at the end).
Docs still claim it
README.md:3— "…secret-based authentication."README.md:34— "Secret-based Auth —AUTH <secret>/SAUTH <secret>with per-user ACLs"README.md:36— "Multi-Database with ACL — Per-database Read/Write/Admin permissions per user"README.md:98— a whole "Start Server (With Authentication)" section (--admin-secret), plus:118SAUTH,:232/:244PURPOSE.md:9— "Supports secret-based authentication with per-user, per-database ACLs (Read / Write / Admin)"Code no longer has it
crates/hero_db/src/auth.rs: "Authentication and authorization have been removed from hero_db — every connection has full access."SessionContextnow carries onlycurrent_db.crates/hero_db/src/server.rs:7: "There is no authentication or authorization — every connection has full access."AUTH/SAUTHare not in the dispatch — clients getERR unknown command 'AUTH'.This was deliberate (not a regression)
auth.*handler module with Read/Write/Admin ACLs; "Default is no auth (preserved)").627a41a(2026-05-31) — a decompose/cleanup refactor that deleted thehero_db_appDioxus crate and the "related admin/auth server handlers" together. The priorauth.rsheld a full secret-based per-DB ACL model.hero_router/hero_proxy, which handle TLS/OAuth, so per-service AUTH may have been deliberately delegated to the mesh layer rather than duplicated in hero_db.Actionable fix (docs)
Update README/PURPOSE to reflect reality: hero_db runs open — every connection has full access, and access control is expected at the socket/host/mesh layer (router/proxy), not in-process. Remove the
AUTH/SAUTH/--admin-secret/per-DB-ACL sections (or move them to a "removed / see mesh-level auth" note). This can fold into the doc-accuracy work in #44.Open product question (not a bug)
hero_db binds
0.0.0.0:6378by default. If it's ever exposed beyond loopback/Unix sockets without a proxy in front, "open mode" is a real exposure. Decision for the maintainers: (a) document open-mode + recommend loopback/mesh-only binding, or (b) restore the per-DB auth model from #18. Flagging for a maintainer call — defaulting to (a).Correction to my earlier framing of this issue: the auth removal was intentional (commit
627a41a), so this is scoped to docs + a product decision, not a "missing feature" defect. Related: #18 (original auth spec), #44 (doc accuracy).Advertised auth/ACL feature is absent: docs promise secret-based AUTH + per-DB ACLs, but auth was removed from the serverto Docs advertise secret-based AUTH + per-DB ACLs, but auth was intentionally removed — update docs (and decide if it returns)Reframed after checking history: auth was intentionally removed in
627a41a(2026-05-31), bundled with deleting thehero_db_appDioxus crate — not a regression. Rescoped this issue to the stale docs (the real bug) plus an explicit product decision on whether auth returns. See #18 for the original auth spec.