BarkleyGitHub
Controls · APP
Markdown file

Apps (add-ons)

An app runs in its own container, but its config file decides how much of the host and of Home Assistant it can reach. Home Assistant shows users a security rating built from those settings.

These steps apply only if you publish an app (add-on).

Controls

  1. APP-1Level 1Ask only for the access the app uses. Leave out privileged, full_access, host_network, host_pid and docker_api unless the app can't work without them, and say why in the README when it does.

    config.yaml
    name: Example
    version: "1.0.0"
    slug: example
    arch: [aarch64, amd64]
    ingress: true
    ingress_port: 8099
    homeassistant_api: true   # only if the app calls Home Assistant's API
    # Leave these out unless the app can't work without them:
    # privileged, full_access, host_network, host_pid, docker_api
  2. APP-2Level 1Use ingress instead of open ports. Ingress puts the app's web page behind Home Assistant's login. An open port is reachable by anything on the network.

  3. APP-3Level 2Keep AppArmor on and ship a profile that allows only what the app does.

  4. APP-4Level 2Build on Home Assistant's base images, pin their versions, rebuild when they update, and don't run as root inside the container when you don't need to.

Check it worked

Install the app and open its page in Settings → Apps. The security rating should be as high as the app's job allows.

Barkley scans integrations and cards. It doesn't scan apps yet; these controls follow Home Assistant's developer documentation.

Open the full page