Installation on Docker and git issues: is it secure to assign all .config to my own user?

I installed HASS with Docker (non-root mode), on Raspberry Pi4 with last Raspbian.

I backup it also on private git and I make many branches to test new improvement.

I can add/commit/stash all but no the .config/.storage folder (and Custom components like HACS), cause they are owned by root.

So, for the moment I excluded them via .gitignore, but I would like to add/commit them also.

Is it secure to add all my files to my raspberry user? E.g. sudo chown -R sineverba:sineverba /home/sineverba/homeassistant/.config/

My trouble if any breaks in some day 'cause new permissions. I think that container (commands inside) runs as root, of course.

By the way, this is my simple docker-compose.yaml, if it has importance.

version: "3.8"

    container_name: homeassistant
    image: homeassistant/home-assistant:2021.1.1
    restart: unless-stopped
      - ./config:/config
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Rome
    network_mode: host

Nobody? :slight_smile: