bitraf / infrastructure

Infrastructure stuff for Bitraf's sysadmins
1 stars 3 forks source link

Alter P2K16 to have door circles, similar to tools circles. #149

Open eliasbakken opened 3 years ago

eliasbakken commented 3 years ago

As a part of the moving to BV9 in September 2021, it would be good to have the possibility to add new door circles that can send messages on a specific topic similar to tools. That way people can set up door locks on office doors in the old and new building.

omega commented 3 years ago

So we want an admin interface similar to tools for the buttons on the front page?

eliasbakken commented 3 years ago

I haven't thought it through yet, maybe it requires a meeting. But i guess first would be to have support for several door circles, second would be to show buttons for all circles the user is a member of on the "open" page.

On Thu, Feb 11, 2021, 06:10 Andreas Marienborg notifications@github.com wrote:

So we want an admin interface similar to tools for the buttons on the front page?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bitraf/infrastructure/issues/149#issuecomment-777205592, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4VBWJL6LWRQM6KSBJBDNTS6NQWBANCNFSM4XNXD2TA .

trygvis commented 3 years ago

The doors are defined in the code, so the required circle can just be a part of the code.

If we ever make the doors list a part of the database something tools like would be useful.

omega commented 3 years ago

@trygvis I thought that was the request here, to make it easier to add more doors..?

omega commented 3 years ago

@eliasbakken I guess one thing that needs to be thought about is who can add/administer circles for doors? Like if I set up a new lock on my office, we need to prevent someone else from just adding a new door with the same mqtt-topic etc?

trygvis commented 3 years ago

@trygvis I thought that was the request here, to make it easier to add more doors..?

Nope, just have circle-based authorization in addition to the existing membership/office checks.