‹ BackHN Continuity

Thread

Big Tech ruined the cloud, so we're renaming ours

212 points · 108 comments · 2sf5

  1. voidnullvalue · · focus · HN ↗
    Nabu Kasa keeps ignoring the elephant in the room of security and permissions. They have no native ability to set user groups and permissions. There is no serious RBAC. I guess it doesn't sell cloud subscriptions. I cant keep my children from affecting devices they shouldn't. I ended up replacing my automation with mqtt
    1. alerighi · · focus · HN ↗
      That is something not required in a domestic setting, that is what HomeAssistant is designed for. I don't know why your children needs to have access to HA (or the internet afterall).
      1. voidnullvalue · · focus · HN ↗
        Ok so i am wrong to want interface panels to control things with Home Assistant because I have kids?
        1. peterclary · · focus · HN ↗
          You can choose whether to make a user an admin, and you can specify certain dashboards to be admin only. My wall panels are all logged in with a non-admin user specific to that panel, set to show only what I want anyone to access.

          Some of us in the family are logged into dashboards on our phones with different users, which update depending on which room we are in.

          If you want to gate access to certain functionality on a dashboard designed for a common area, you would need to route to a different dashboard upon providing some kind of authorisation, e.g. an onscreen PIN pad.

          Happy to discuss.

      2. pessimizer · · focus · HN ↗
        > That is something not required in a domestic setting

        We didn't know you'd declared this. I hope there are temporary solutions available while your declaration is communicated to everybody else.

      3. phoghed · · focus · HN ↗
        I'll send you $1 in a crypto coin of your choice if you can think of one good use case that would benefit from this
    2. montjoy · · focus · HN ↗
      This is false. <a href="https:&#x2F;&#x2F;developers.home-assistant.io&#x2F;docs&#x2F;auth_permissions&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developers.home-assistant.io&#x2F;docs&#x2F;auth_permissions&#x2F;
      1. voidnullvalue · · focus · HN ↗
        <a href="https:&#x2F;&#x2F;community.home-assistant.io&#x2F;t&#x2F;wth-no-rbac-role-based-access-control-users-groups-rights&#x2F;219581" rel="nofollow">https:&#x2F;&#x2F;community.home-assistant.io&#x2F;t&#x2F;wth-no-rbac-role-based...

        This thread is relevant. Their permissions system is just on entities, and isn&#x27;t a real EBAC system.

      2. hobofan · · focus · HN ↗
        I&#x27;m usually not one to jump quickly to that, but that&#x27;s a joke of a permission system.
        1. wildzzz · · focus · HN ↗
          I don&#x27;t understand, why is it a joke? HA permissions are just to lock certain users or groups out of controlling certain things. You wouldn&#x27;t be randomly giving out accounts to people you don&#x27;t know or trust. It&#x27;s the controls to your smarthome after all, not a shell account on an open sign-up server.
          1. hobofan · · focus · HN ↗
            &gt; HA permissions are just to lock certain users or groups out of controlling certain things

            Yes, but only very coarsly granular things.

            - Permissions only work with entities. There are about ten different kinds of objects besides entities, that would also benefit a lot from being part of a uniform permission system.

            - Permissions can only be defined for groups, not users, which is quite annoying if you want granular permissions

            - With permissions only acting on groups, it also isn&#x27;t possible to base permissions on user attributes. So you ultimately always have to model a permission set as a group, and then essentially have to have a synchronization mechanism that ensures that the right people are in the right groups

            - This also makes scoped integration access impossible. You can&#x27;t grant a third party app access to e.g. only your energy sensor data.

    3. bmurphy1976 · · focus · HN ↗
      Is it really an Elephant in the Room situation? Are there upvoted ticket&#x2F;issues or community threads asking for it? I don&#x27;t really know, it&#x27;s an honest question.

      As somebody with a pretty extensive Home Assistant based home automation system AND kids, I&#x27;ve never once felt the need for this. I can certainly see the utility of it, but Home Assistant is already complicated enough. I&#x27;d prefer effort be spent improving the UX, simplifying the system, improving reliability and adding more (optional) integrations.

      1. [deleted] · · focus · HN ↗

        [deleted]

      2. MC995 · · focus · HN ↗
        &gt; Are there upvoted ticket&#x2F;issues or community threads asking for it? I don&#x27;t really know, it&#x27;s an honest question.

        Many, going back years.

    4. Aurornis · · focus · HN ↗
      I think they&#x27;re reading their audience and making the correct product choice.

      Home Assistant users are the power users of the home automation world, but even among their user base I think the number of users who would use a full set of groups and permissions controls in their home is very small.

      This is a feature that would take a lot of engineering effort and only make the product more complicated for most of their users. The part of their user base that did use it would probably never be happy because they wanted something even more specific.

      Their basic permissions and control structure covers most of the common use cases. Going further would be 100X more work for something that would only be used by a very small minority of users.

      1. papercruncher · · focus · HN ↗
        What about giving different agents varying sets of tightly scoped permissions? Is there a good way to achieve that today? If not, it might warrant the effort down the road
      2. cogman10 · · focus · HN ↗
        Basically the only people I could imagine that&#x27;d actually want a complex user permission group is someone with 1 or more Airbnbs that wants to have an overarching view of their properties but also wants to give &quot;guest&quot; access.
      3. hobofan · · focus · HN ↗
        I think a lot of people have a wrong perception of how &quot;complicated&quot; authorization systems need to be, most likely because they&#x27;ve been confrontend with badly built ones their whole career.

        These days if you build it with a central policy engine, e.g. on top of Open Policy Agent with Rego as a policy language, and stick to a (actor, object, action) triple system, you can build an extensible and powerful authorization system that usually also is less polluting to the codebase as many other approaches. For HA specifically, where you have a quite low numbers of actors and objects, most of the headaches that could come with such a system in terms of scaling also fall away.

        1. stickfigure · · focus · HN ↗
          &gt; These days if you build it with a central policy engine, e.g. on top of Open Policy Agent with Rego as a policy language, and stick to a (actor, object, action) triple system, you can build an extensible and powerful authorization system that usually also is less polluting to the codebase as many other approaches.

          ...and if they forget that, they can just edit the source code in command.com!

          1. antonvs · · focus · HN ↗
            Are you saying the other comment is describing something impractical for average users? But they&#x27;re talking about a way to build good authorization, not how users would interact with it. The implication is that the approach would be easier for users.
            1. stickfigure · · focus · HN ↗
              Don&#x27;t take this personally, but - I don&#x27;t believe you. I&#x27;ve never seen complex abstractions that didn&#x27;t leak. Maybe the feature is worth the complexity, I don&#x27;t know, but I can&#x27;t fault the authors for thinking not.
              1. antonvs · · focus · HN ↗
                Authentication, authorization, and security in general are complex problems that are demonstrably difficult to get right. Any solution is going to have implementation complexity. The comment you responded to was actually describing a way to manage that complexity.

                &gt; Maybe the feature is worth the complexity

                What feature? Security?

        2. antonvs · · focus · HN ↗
          &gt; I think a lot of people have a wrong perception of how &quot;complicated&quot; authorization systems need to be

          It depends what the authorization requirements are. For consumer-grade security, you&#x27;re right. But when you start getting into the requirements of large, security-sensitive organizations, there&#x27;s a lot of unavoidable complexity.

          But those contexts often influence the development of security systems, so some of the complexity you&#x27;re referring to relate to requirements most users don&#x27;t have.

          1. hobofan · · focus · HN ↗
            I disagree that that leads to a huge amount of unavoidable complexity. I am (and have been) building systems that are deployed into exactly those security sensitive organizations, with exactly the stack I described above. The only main requirements that those systems usually have is audit logging, which is becomes easy with a centralized policy engine.

            Most complexity that usually plagues authorization systems comes from complex authentication requirements, and can thus be largely isolated there. That&#x27;s also where many (often legacy systems) lay a bad foundation, because they from the get-go tangle authentication &amp; authorization into thing.

            In a model as described above, that just turns into a slightly different `actor`. With that you can also handle things like context-aware authorization without littering your codebase.

            1. antonvs · · focus · HN ↗
              OPA is an authorization engine, with some supporting capabilities, but it&#x27;s not a complete authorization subsystem.

              OPA can be a component of a secure authorization system - low-level policy definition and evaluation - but there are many aspects of an authorization subsystem that OPA doesn&#x27;t even try to address.

              For a start, policy languages like Rego operate at the policy decision level, they have no awareness of any authorization model. If you&#x27;re implementing anything with high-level authorization semantics - think MLS, Bell-LaPadula, or pretty much anything else that defines a non-trivial authorization model - you essentially have to translate the semantic properties of that system into a low-level policy decisions.

              If that translation is done manually, it&#x27;s highly error prone, which is not a good feature for a security system. Rego doesn&#x27;t know what a clearance, classification, security compartment, etc. means. It doesn&#x27;t prevent a policy author from implementing rules that aren&#x27;t compatible with an authorization model.

              Also, for security to be worth anything, there are inevitable cross-cutting concerns with trusted identity and attribute sources. OPA lets you tell it anything you want, but you still have to integrate that with a larger system that doesn&#x27;t depend on implicit guarantees. E.g., &quot;This is Bob because the invoking service checked it and says so&quot; might be fine for an e-commerce site, but not for many more secure environments. Same goes for attributes other than identity. Doing all of this in secure ways is the cause of much of the complexity I mentioned.

        3. Aurornis · · focus · HN ↗
          I had to check that this wasn’t sarcasm when the post went from this

          &gt; I think a lot of people have a wrong perception of how &quot;complicated&quot; authorization systems need to be,

          To this

          &gt; These days if you build it with a central policy engine, e.g. on top of Open Policy Agent with Rego as a policy language, and stick to a (actor, object, action) triple system,

          This is the complexity that makes it not worth the effort. That’s a lot to develop, test, document, maintain, create UX for, and continue educating people about for something so few people would ever use.

          I’m not saying it can’t be done. I’m saying doing it would be more effort than the upside. It’s into the part of the curve where you’re spending 10X the developer time as other features to cater to 1 in 1000 users who aren’t going to be happy anyway because it’s not exactly what they imagined they wanted.

      4. tshaddox · · focus · HN ↗
        I don’t know, this seems like a pretty basic feature that I would expect all the mainstream smart home ecosystems to support. Do they not? Is it possible with Alexa&#x2F;Google Home&#x2F; etc. for anyone to say “turn off all the lights in the house” into any smart speaker? I’d honestly expect the defaults to only allow commands to apply to the devices in the same room&#x2F;group as the smart speaker.
        1. wlonkly · · focus · HN ↗
          Alexa devices know what room they&#x27;re in, so if I say &quot;turn off the lights&quot; in the kitchen, the kitchen lights turn off. But if I say &quot;turn off the living room lights&quot; in the kitchen, the living room lights turn off.

          (If I have to physically move to a different room to send a voice command about that room I lose a ton of convenience, and the whole point of home automation is convenience!)

      5. zer00eyz · · focus · HN ↗
        &gt; I think the number of users who would use a full set of groups and permissions controls in their home is very small.

        In the age of agents everywhere this is no longer true or viable.

        It&#x27;s going to be hard for them to do it, for historic and legacy code reasons. But it&#x27;s long past being a choice and now becoming a need.

        1. krapp · · focus · HN ↗
          Or, you know, just don&#x27;t automate your home to begin with (as the vast majority of people don&#x27;t) and it isn&#x27;t a problem.

          No matter how crazy smart AI gets it&#x27;s not going to be able to hack my doors, lights or thermostat.

          1. zer00eyz · · focus · HN ↗
            The thing is there are tons of &quot;passive&quot; automations that you still might want.

            For instance, I left my garage freezer door open, in summer, once. The loss of food almost made me cry (just from the pure waste of it all). I have temp monitors now (external, with probes into fridges and freezers) as well as door sensors. If I am dumb and leave them open, or if they break I&#x27;m going to get a notification.

            Windows&#x2F;doors open, and it starts raining, alert... I have a whole set of alerts on when to open the windows too based on season and inside vs outside temp. I have seen a savings on my bills for heating and cooling.

            Reminders of all kinds when it&#x27;s not optimal to run the oven, or appliances because of power costs.

            1. krapp · · focus · HN ↗
              To each their own, but honestly I wouldn&#x27;t want any of those. I don&#x27;t even like that my car has electronic locks and a keyfob, I just couldn&#x27;t find a used car with mechanical locks&#x2F;ignition that wasn&#x27;t likely to be a money pit.
            2. antonvs · · focus · HN ↗
              &gt; The loss of food almost made me cry (just from the pure waste of it all). I have temp monitors now (external, with probes into fridges and freezers) as well as door sensors.

              You&#x27;re trying to use technology to handle difficulty with minor adversity.

    5. frantathefranta · · focus · HN ↗
      Their ethos is that Home Assistant should be deployed in a non-complicated way and that many things that &quot;IT people&quot; want to do with HA are not actually necessary. I can&#x27;t find the source but I recall frenck (one of the lead devs) explaining that people ask him about stuff like setting up HA using Terraform and he just wonders why someone would want that.
      1. hobofan · · focus · HN ↗
        That the default should be non-complicated isn&#x27;t necessarily in conflict with features for power users, and I feel like in the HA forums it often is portrayed as an unresolvable conflict, when it isn&#x27;t.

        I do think the maintainers are getting better about it. The releases over the past year have reworked a lot of things to be more intuitive for casual users while also being more flexible for power users, but there is still a lot of ground left to cover.

        I think with the growing popularity, and expansion of fields of use, this is something they&#x27;ll ultimately have to reckon with. I&#x27;ve seen quite a few posts on the the HA subreddit, where it&#x27;s being used for controls in e.g. hotels or other bigger buildings, because it has a great feature set and prevents vendor lock-in. There is no harm in also catering to those people &amp; organizations.

      2. lurking_swe · · focus · HN ↗
        I&#x27;d like to prevent my children from viewing &#x2F; modifying certain parts of the home. Is that so niche?
      3. voidnullvalue · · focus · HN ↗
        I&#x27;d guess that most of the Home Assistant user base is &quot;IT people&quot;.

        I don&#x27;t see HA as a consumer established product, as much as Nabu Kasa would like otherwise.

        Then again, this is just my guesswork. I have 0 clue the demographics of Home Assistant users

    6. floatrock · · focus · HN ↗
      That sounds like an Enterprise Team Plan offering, available only with the SSO tier.

      Apparently they&#x27;re saying this is the wrong way to run a cloud.

    7. wlesieutre · · focus · HN ↗
      It&#x27;s a hacky solution, but someone built a permissions system that shims in front of the API to restrict access for different users

      <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;homeassistant&#x2F;comments&#x2F;1vxw5pu&#x2F;access_control_real_peruser_permissions_as_a&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;homeassistant&#x2F;comments&#x2F;1vxw5pu&#x2F;acce...

    8. rekoil · · focus · HN ↗
      I need to see end-to-end encryption on this service before I am in any way interested, it should be a &quot;rendezvous service&quot; connecting clients with servers only, with full end-to-end encryption between them, and Nabu Casa should have zero ability to control the server.

      Build that and I&#x27;ll be interested.

      1. balloob · · focus · HN ↗
        That&#x27;s exactly how it&#x27;s build. Nabu Casa has never been able to see any user data. You can read more about it here <a href="https:&#x2F;&#x2F;support.nabucasa.com&#x2F;hc&#x2F;en-us&#x2F;articles&#x2F;26508882007581-Remote-access-Security-aspects" rel="nofollow">https:&#x2F;&#x2F;support.nabucasa.com&#x2F;hc&#x2F;en-us&#x2F;articles&#x2F;2650888200758...
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.