Hiding secrets.yaml on github

Hi, I’m running Hassio on a RPi3 and want to commit to a Github repository to backup and share my setup.

What is the best way at to secure my secrets file? I’m guessing people go for one of two options from looking at example configs…

  1. Redact all of the sensitive information. How do you do this efficiently? Doesn’t this mean you have to repeatedly paste/copy/redact every time you commit or pull?
  2. Use a gitignore folder. But then can you refer to secrets! directly in your yaml files? From looking at @bruhautomation s config you can’t see the secrets file (so I assume it’s in gitignore?) but the code references secrets! directly?
  3. any better/ more efficient way?

Any support much appreciated! :smiley:

you can add the secrets.yaml directly to your gitignore file (not a folder).

adding the secrets.yaml to your gitignore does not interfere with your home assistant at all. It merely keeps git from tracking the file.

2 Likes

Thanks @flamingm0e! Sorry for the noob question… :confused:

Just make sure you keep backups somewhere safe and private. :wink:

Also note that you can use bitbucket.org and you get free private repos, so you can keep all the files in there if you prefer.

1 Like

I just posted information on how I’m securely storing my sensitive files alongside the rest of my configruation. This allows me to keep versioned backups of all files and allows me to move between my testing VM when I travel and my production VM at home

Hi @flamingm0e,

I try to setup bitbucket to synce with my hass.io docker container, but cant get it to work can you help me?

What’s not working about it?

It’s basic git

It works with git command,

But the git pull addon wont work for me

??

I don’t see what I can help with there. You need to take it up with the git pull addon creator.