Security

Defense in depth for self-hosted instances.

How itemized handles authentication, container privileges, reverse proxies, and responsible vulnerability disclosure.

Security controls in itemized

  • Authentication, roles & API tokens: Supports local password authentication and optional OIDC SSO using Authorization Code flow with PKCE (tested with Authentik, Authelia, Pocket ID, and Keycloak). Accounts use Admin and Member roles, OIDC_FORCE=true disables local password login completely, and Personal API Tokens (itm_...) are stored exclusively as SHA-256 hashes with optional expiration and instant revocation.
  • Non-root container execution: The container entrypoint ensures /data ownership matches PUID:PGID and drops privileges to run /usr/local/bin/itemized as a non-root user. Explicit non-root --user launches are supported automatically.
  • Reverse proxy rate limiting: Set TRUST_PROXY=true when running behind a reverse proxy so rate limiting reads client IPs from X-Forwarded-For / X-Real-IP rather than the proxy address.
  • HTTPS for camera access & Web Push: Serving itemized over HTTPS protects credentials in transit and satisfies browser security requirements for mobile camera barcode scanning and Web Push (VAPID) notifications. See HTTPS & Reverse Proxy.
  • Sandboxed public demo mode: When DEMO_MODE=true is enabled, outbound printer, OIDC, and LLM calls are sandboxed, UPC lookups are rate-limited to 5/min, and sample data resets automatically on DEMO_RESET_INTERVAL.

Reporting a vulnerability

If you discover a security vulnerability in itemized, please report it privately using GitHub Security Advisories rather than opening a public issue.

Include steps to reproduce, the affected version or container digest, and any relevant configuration details so the issue can be verified and patched quickly.