esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
291 stars 36 forks source link

Since .5 Git doesn't trust any github external components #4676

Closed JohnGalt1717 closed 1 year ago

JohnGalt1717 commented 1 year ago

The problem

Since the 2023.5.x releases for docker external components aren't trusted, so update all fails, as does all updates unless you exec into the docker container and add the commands manually.

I.e.: git config --global --add safe.directory /config/.esphome/external_components/35bd8a5b

Which version of ESPHome has the issue?

2023.5.x+

What type of installation are you using?

Docker

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP8266

Board

No response

Component causing the issue

No response

Example YAML snippet

external_components:
  - source: github://syssi/esphome-jk-bms@main
    refresh: 0s

Anything in the logs that might be useful for us?

No response

Additional information

Please consider adding the ability to use environment variables to list multiple sources that should be trusted so that we can put it in the docker compose.

Or an environment variable that automatically trusts everything on github.com (or the above with a wildcard function so that we can trust all of them on github.)

Running the commands every time there is a container update is annoying and I forget, and then update all fails and then I have to do them manually from there because it redoes all of the ones already updated when you click update all even if there is no update required.

ssieb commented 1 year ago

You didn't explain exactly what the problem is. No one else has mentioned a problem with external components. There shouldn't be a problem, since there are no specific restrictions.

JohnGalt1717 commented 1 year ago

Any external component using the docker container has the same problem after every update: The git commands to white list the directory has to be run.

The config directory has full chmod -R 777 on it.

HeMan commented 1 year ago

Is it solved by https://github.com/esphome/esphome/pull/5102?

JohnGalt1717 commented 1 year ago

Looks like it probably should... Is it in release yet?

HeMan commented 1 year ago

I was pretty sure it was, but no, it's not part of any release as of now.

jesserockz commented 1 year ago

Looks like it probably should... Is it in release yet?

Its merged into dev and an issue when developing so it doesnt need to go into any specific release.

JohnGalt1717 commented 1 year ago

Ok. Appears to not be in .7.