Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: Role based access to API #692

Closed
pvizeli opened this issue Sep 10, 2018 · 0 comments
Closed

RFC: Role based access to API #692

pvizeli opened this issue Sep 10, 2018 · 0 comments

Comments

@pvizeli
Copy link
Member

pvizeli commented Sep 10, 2018

API access (only hass.io) should be controlled by roles. The idea behind this is, that a add-on have not to many rights to API by default and a hacker of a add-on should be limited to fuck up the hole system.

API call without API flag are included to all roles

A new add-on config option:
hassio_role: "ROLE"

Follow defined rules:

  • default / Can call all info
  • homeassistant / Can control Home Assistant
  • manager / Can do all what a CLI should be able to do
  • admin / Dangerous, have full access to all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant