Skip to content

Security

chochb edited this page Nov 29, 2026 · 2 revisions

Security

Home Assistant user and tokens

  • The integration creates and manages one HA user “HA Panel”: normal user (no admin), local login only.
  • Each display gets its own refresh token named HA Panel: <display>. The app uses it to fetch short-lived access tokens via /auth/token. Revoking the token (user profile › refresh tokens) disconnects that display only.
  • If the user is missing, the integration creates it again and moves the displays over at their next sign-in.

Display approval and key

  • A display that is not known yet is only held: no device, no entities, no commands. A repair “ wants to connect” asks you to approve or reject it.
  • On approval the integration sends a random key to the app once. Home Assistant stores only its SHA-256.
  • A sign-in with the ID of a known display without the correct key is held back and reported (repair “sign-in without a valid key”); the connected display stays connected. Approving issues a new key.
  • Rejected displays are not reported again until Home Assistant restarts.

During installation through the wizard, key and token are assigned in advance (valid for one hour), so no approval repair appears.

adb

  • The integration has its own adb key (/config/.storage/hapanel_adbkey), created on first use and confirmed once on the display (“Always allow from this computer”).
  • In normal operation the app switches adb off. The integration opens it only for installs, updates and the functions in Advanced, and the app closes it again (fallback after 30 minutes without Home Assistant).
  • The adb state is shown and can be switched in the sidebar under Advanced.

App packages

  • APKs are installed only if the SHA-256 in hapanel.json matches the file.
  • Downloads come only from the source you configured.

Network

The app talks only to your Home Assistant (WebSocket and REST, same URL as the frontend). Optional functions fetch from the internet only when enabled: screensaver photos (Openverse, picsum) and weather photos.

Clone this wiki locally