Skip to content

docs(auth): AUTHENTICATION_RBAC.md documents a retired 'Single-User Mode' auth bypass that no longer exists #16839

Open

Description

@mrveiss

Problem

docs/developer/AUTHENTICATION_RBAC.md's "Single-User Mode" section (lines 275-286) and its Environment Variables table document AUTOBOT_SINGLE_USER_MODE (default true) as bypassing all authentication ("All requests are treated as admin / No authentication required / Permission checks are bypassed").

This mechanism does not exist in current code. grep -rn AUTOBOT_SINGLE_USER_MODE across all of autobot-backend/ (including tests) returns zero hits. security_layer.py:151-153 states explicitly: "Authentication is always derived from security_config; there is no single-user bypass (#10713, #10636)."

The doc contradicts itself: a later section, "Deployment Modes (correction, Issue #15737)" (lines 429-445), documents the retirement of a different, user-management-specific single_user/multi_user mode, but never touches or removes the earlier auth-bypass section.

Impact

Anyone reading AUTHENTICATION_RBAC.md today would believe an env var exists that disables authentication entirely. It doesn't (good — the bypass was correctly retired), but the doc still describes it as current behavior.

Acceptance criteria

Related

Part of #16835 (control-plane map). Found verifying the Authentication layer against current code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocs

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions