Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107575

Moving sensitive information from configuration.yaml to secrets.yaml NOT working!

$
0
0

My original lines in the configuration.yaml for the MariaDB:

recorder:
  db_url: mysql://homeassistant:1q2w3eAZSXDC@core-mariadb/homeassistant?charset=utf8mb4
  purge_keep_days: 30

in my configuration.yaml NOW I have this:

# Credentials for the database MariaDB
recorder:
  db_url: mysql://!secret mariadb_user:!secret mariadb_password@!secret mariadb_host/!secret mariadb_db?charset=!secret mariadb_charset
  purge_keep_days: 30

and in my secrets.yaml I got this:

#MariaDB credentials:
mariadb_user: homeassistant
mariadb_password: 1q2w3eAZSXDC
mariadb_host: core-mariadb
mariadb_db: homeassistant
mariadb_charset: utf8mb4

why is not working??
I started getting this errors:

Can someone help me get it right? I know there is NO need for secrets: !include secrets.yaml as it is included by default. Also, tryed changing the file from secrets.yaml to secret.yaml and that did not work so I reverted it back with the S

Any help will be appreciated! Thank

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 107575

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>