Skip to content
This repository was archived by the owner on Jun 14, 2025. It is now read-only.

More security

beejones edited this page Jul 23, 2022 · 1 revision

Save Passwords in secrets

We sould not keep secrets in configuration files because they might leak e.g. when they are stored in a public repo.

Home Assistant has a secrets file which can store the secrets that can be referenced by Home Assistant.

Save MQTT user and password

Open the secrets.yaml file and the following with your credentials

mqtt_user: myuser
mqtt_password: mypassword

Any file that needs this password can not reference the name in secrets.yaml.

mqtt:
  user: !secret mqtt_user
  password: mqtt_password

Clone this wiki locally