{
  "_published": {
    "source": "docs/measurements/openwebui-office-walkthrough-2026-11-15.json",
    "published": "2026-11-15",
    "publisher": "J4SGON S.L., vorluxai.com",
    "index": "https://vorluxai.com/data/",
    "cleaned": "Copied from our internal repository by scripts/publish_measurements.py. Every number is unchanged. Redacted: nothing. Hostnames (spark-43d5, spark-7180) and the PRIME / spark2 labels are kept: the posts use them.",
    "redactions": {}
  },
  "title": "Open WebUI 0.13.3 office walkthrough: accounts, model access, storage, audit log, backup, user deletion",
  "date": "2026-11-15",
  "how_recorded": "Assembled by hand from the command output of one session. A throwaway container was driven through its HTTP API with invented accounts; it and its data directory were deleted afterwards. These are observed behaviours, not a benchmark.",
  "setup": {
    "image": "ghcr.io/open-webui/open-webui:v0.13.3 (arm64)",
    "reported_version": "0.13.3",
    "host": "spark-43d5, NVIDIA DGX Spark, Docker, port published on loopback only",
    "data_dir": "bind mount at /app/backend/data, SQLite (default)",
    "env": ["WEBUI_SECRET_KEY (set)", "OLLAMA_BASE_URL (Ollama 0.34.0 on spark-7180)", "DEFAULT_USER_ROLE=pending", "AUDIT_LOG_LEVEL=METADATA", "ENABLE_OPENAI_API=false", "ENABLE_VERSION_UPDATE_CHECK=false", "OFFLINE_MODE=true"],
    "model_used": "llama3.1:8b (Q4_K_M) with num_ctx 4096 set on the Open WebUI model entry",
    "reverse_proxy": "caddy:2-alpine, Caddy v2.11.4, tls internal"
  },
  "accounts": [
    {"step": "first sign-up", "result": "HTTP 200, role admin"},
    {"step": "public config right after the first sign-up", "result": "enable_signup false although ENABLE_SIGNUP was never set to false"},
    {"step": "second sign-up while sign-up is off", "result": "HTTP 403: You do not have permission to access this resource. Please contact your administrator for assistance."},
    {"step": "admin turns sign-up on, second person signs up", "result": "HTTP 200, role pending"},
    {"step": "pending account lists models or chats", "result": "HTTP 401 with the same permission message"},
    {"step": "admin changes role pending to user", "result": "HTTP 200; the token issued at sign-up works from then on"},
    {"step": "admin creates two accounts with role user while sign-up is off", "result": "HTTP 200; both can sign in"},
    {"step": "sign-in with a wrong password", "result": "HTTP 400: The email or password provided is incorrect. Please check for typos and try logging in again."},
    {"step": "sign-up with an e-mail already registered", "result": "HTTP 400: Uh-oh! This email is already registered. Sign in with your existing account or choose another email to start anew."}
  ],
  "default_permissions_seen": {
    "workspace_all_false": true,
    "sharing_all_false": true,
    "chat": {"file_upload": true, "delete": true, "export": true, "import": true, "share": true, "temporary": true, "temporary_enforced": false},
    "features": {"api_keys": false, "web_search": true, "image_generation": true, "code_interpreter": true, "memories": true, "notes": true}
  },
  "model_visibility": [
    {"state": "Ollama connected, no model entries edited", "admin_sees": 14, "each_user_sees": 0},
    {"state": "read grant on llama3.1:8b for group Personal (3 members), read grant on qwen2.5vl:7b for group Finanzas (1 member)", "admin_sees": 14, "member_of_personal_only_sees": ["llama3.1:8b"], "member_of_both_sees": ["llama3.1:8b", "qwen2.5vl:7b"]},
    {"state": "user without a grant asks for qwen2.5vl:7b through /api/chat/completions", "result": "HTTP 400: Model not found"},
    {"state": "same user, same model, through the /ollama proxy", "result": "HTTP 403: Model not found"},
    {"state": "chat through the granted entry", "result": "HTTP 200; Ollama then listed llama3.1:8b loaded with context_length 4096"}
  ],
  "storage": {
    "data_dir_entries": ["audit.log", "cache/", "uploads/", "vector_db/", "webui.db", "webui.db-shm", "webui.db-wal"],
    "sqlite_journal_mode": "wal",
    "tables": 53,
    "upload_path_pattern": "uploads/<file id>_<original file name>",
    "password_hash_prefix": "$2b$12$",
    "log_timestamps": "UTC"
  },
  "privacy_switches": [
    {"state": "defaults", "user_opens_colleague_chat": "HTTP 401: We could not find what you're looking for :/", "admin_lists_and_opens_user_chat": "HTTP 200", "admin_database_download": "HTTP 200", "user_database_download": "HTTP 401"},
    {"state": "ENABLE_ADMIN_CHAT_ACCESS=false and ENABLE_ADMIN_EXPORT=false", "admin_lists_user_chats": "HTTP 401", "admin_opens_user_chat": "HTTP 401", "admin_database_download": "HTTP 401"}
  ],
  "audit_log": {
    "level": "METADATA",
    "format": "one JSON object per line",
    "keys": ["id", "timestamp", "user", "audit_level", "verb", "request_uri", "response_status_code", "source_ip", "user_agent", "model_id", "usage", "request_object", "response_object", "extra"],
    "observed": [
      "timestamp is Unix seconds; response_status_code was null and both body fields were empty strings on every line",
      "sign-in and sign-up lines carry an empty user object",
      "with the default AUDIT_EXCLUDED_PATHS, chat requests through /api/chat/completions wrote no line",
      "with AUDIT_EXCLUDED_PATHS=/chats,/folders each chat request wrote a line with the user and model_id llama3.1:8b; usage was null for our non-streamed API calls",
      "a refused request through the /ollama proxy was logged with the user and the model asked for"
    ]
  },
  "config_persistence": [
    {"change": "container recreated with ENABLE_SIGNUP=true and DEFAULT_USER_ROLE=user on an existing data directory", "result": "stored values kept: sign-up off, default role pending"},
    {"change": "container recreated with OLLAMA_BASE_URL pointing at 127.0.0.1 on an existing data directory", "result": "stored connection kept; models still listed"}
  ],
  "secret_key": {
    "change": "container recreated without WEBUI_SECRET_KEY",
    "startup_log": ["No WEBUI_SECRET_KEY environment variable set, loading from file.", "Generating new WEBUI_SECRET_KEY...", "Loading WEBUI_SECRET_KEY from .webui_secret_key"],
    "result": "every token issued before returned HTTP 401 (401 Unauthorized); signing in again worked"
  },
  "ollama_unreachable": {
    "change": "connection URL set to 127.0.0.1:11434 in the admin settings",
    "admin_check": "HTTP 500: WebUI could not connect to Ollama",
    "user_model_list": "HTTP 200, empty",
    "user_chat": "HTTP 400: Model not found",
    "server_log": "Connection error: Cannot connect to host 127.0.0.1:11434 ssl:default [Connect call failed ('127.0.0.1', 11434)]"
  },
  "offline_mode": {
    "startup_log": "Error loading SentenceTransformer: Cannot find an appropriate cached snapshot folder for the specified revision on the local disk and outgoing traffic has been disabled.",
    "note": "seen at first start with OFFLINE_MODE=true on an empty data directory; chat worked, document search was not tested"
  },
  "backup_restore": {
    "stop": "docker stop left webui.db (884736 bytes) plus a non-empty webui.db-wal (107152 bytes) in the data directory",
    "backup": "tar of the whole data directory with the container stopped",
    "restore": "data directory emptied, archive extracted, container recreated with the same WEBUI_SECRET_KEY",
    "result": "three accounts, their chats, groups and settings present; tokens issued before the backup still valid"
  },
  "database_download_and_wal": {
    "handler": "GET /api/v1/utils/db/download returns the webui.db file as it is on disk",
    "first_download": "taken minutes after creating 4 accounts and 2 chats: the copy held 0 users and 0 chats",
    "experiments": [
      {"label": "A", "admin_download_first": false, "second_process": "sqlite3 read-write open and close", "server_holds_deleted_wal": false, "chat_written_afterwards_survived_restart": true},
      {"label": "B", "admin_download_first": true, "second_process": "none", "server_holds_deleted_wal": false, "chat_written_afterwards_survived_restart": true},
      {"label": "C", "admin_download_first": true, "second_process": "sqlite3 read-write open and close", "server_holds_deleted_wal": true, "chat_written_afterwards_survived_restart": false},
      {"label": "D", "admin_download_first": true, "second_process": "sqlite3 read-only open and close", "server_holds_deleted_wal": false, "chat_written_afterwards_survived_restart": true}
    ],
    "runs_per_experiment": 1,
    "also_seen_before_the_experiments": "the same sequence as C, unplanned: a chat saved with HTTP 200 was gone after docker stop and docker start",
    "cause": "not established by us; one run per case"
  },
  "user_deletion": {
    "delete_first_admin": "HTTP 403: The requested action has been restricted as a security measure.",
    "delete_user": "HTTP 200",
    "afterwards": {
      "old_token": "HTTP 401: Invalid authentication request.",
      "sign_in": "HTTP 400 (same message as a wrong password)",
      "chats": "none listed",
      "group_memberships": "removed (member counts dropped)",
      "uploaded_file": "row still returned to the admin and file still in uploads/ until the admin deleted it by id (HTTP 200: File deleted successfully)"
    }
  },
  "https": {
    "caddyfile": "site block with tls internal and reverse_proxy to the container on port 8080",
    "version_endpoint_over_https": "HTTP 200",
    "websocket_handshake": "HTTP 101 on /ws/socket.io/ with CORS_ALLOW_ORIGIN left at its default",
    "startup_warning": "WARNING: CORS_ALLOW_ORIGIN IS SET TO '*' - NOT RECOMMENDED FOR PRODUCTION DEPLOYMENTS."
  },
  "not_tested": ["the web interface itself (everything went through the API)", "document upload search and embeddings", "PostgreSQL", "MFA, LDAP, OAuth", "updating from an older version", "more than four accounts", "restricting CORS_ALLOW_ORIGIN and secure cookies behind the proxy"]
}
