klinquist
(klinquist)
1
Hi,
I developed my own add-on with an API that calls HomeAssistant’s supervisor API.
I’m trying to POST http://supervisor/store/addons/self/update with the SUPERVISOR_TOKEN, but I keep getting a 403.
I can successfully call the supervisor API /core/info, /host/info, etc.
My config.yaml contains the following:
privileged:
- SYS_ADMIN
permissions:
- 'addons:restart'
- 'addons:update'
homeassistant_api: true
hassio_api: true
auth_api: true
update: true
Any ideas what other permissions I need to call this endpoint?
Thanks!
klinquist
(klinquist)
2
Hm, is the problem that add-ons can’t update themselves?
Makes sense to me. Updating your own plugin without user intervention sounds undesirable, especially but not only, from a security perspective.