# Multi-server / multi-user leakage audit (apps connecting to a user-chosen backend) Goal: switching backend or signing out must not leak the previous server's state or credentials, and release builds must not hardcode one person's setup. ## Sign-out vs disconnect - Keep two actions distinct: "Disconnect" keeps the saved endpoint (auto-reconnect next launch); "Sign out" wipes URL + credentials synchronously (`commit()`, not `apply()`, so a force-stop right after cannot resurrect them) and resets server-scoped state. - Collect server-scoped resets in ONE function (selected profile, cached lists, avatars, REST/cookie sessions, in-memory image cache) and call it on sign-out AND when connecting to a different endpoint. - Never send server-side close/teardown RPCs from these paths if the backend shares sessions across clients; reset locally only. ## Credential reuse check (common bug) Look for "empty password field → reuse saved password" logic. It must also require the SAME endpoint (scheme+host+port, case-insensitive host, ignore trailing slash), otherwise the old server's password is sent to a new host. Unit-test with a fake SharedPreferences. ## Inventory table (report; deletion is the PM's call if risky) Columns: Veri | Yer | Sign out'ta | Başka endpoint'e connect'te | Risk / öneri. Typical rows: saved endpoint+creds, selected profile, in-memory lists/avatars, cookies/history, image caches (check whether cache keys include host — path-only keys collide across servers), composer drafts, favorites, disk thumbnail caches, embedded VPN/tailnet state, device prefs (theme etc.), features living on other branches (e.g. pins). ## Hardcode scan - `rg` main sources for personal hosts/ports, IP ranges (`100\.`, `192\.168`, `\.ts\.net`, `10.0.2.2`, `127.0.0.1`), emails, `Users/|Desktop`, locale-specific folder names, and non-English UI literals (`[çğıöşüÇĞİÖŞÜ]`). - Check `res/values*`, Manifest, `build.gradle.kts` buildConfigField/manifestPlaceholders, network security config. - Confirm debug-only constants are absent from release dex (`LC_ALL=C grep -a`). - Check URL parsing: dropping the user-typed path breaks reverse-proxy subpath installs. - Verdict heading: "Çoklu-kullanıcı denetimi sonucu: TEMİZ / BULGU VAR" + table `dosya:satır | değer | release'e giriyor mu | sınıf (kişisel / meşru / i18n) | öneri`. Report-only unless the brief says fix.