Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[Brainstorming] RFID & Database User Access Control #1579
I administer several printers running Octoprint on a university network. We have an access control system for other tools in our space like lathes and band saws that uses RFID readers to detect a student ID card, and then poll a MySQL database for the students permissions. This system controls access by using a relay to turn the machine power off and on.
I would like to write a plugin / add-on for Octoprint that accepts the ID data from an RFID reader, checks the SQL database for permissions, and then signs the proper user into Octoprint.
It doesn't look like there is an available plugin mixin or hook for access control at this time. From what I can find in the docs it looks like this might involve writing a new class to replace octoprint.users.FilebasedUserManager. Perhaps I can just write a plugin and simply change my config.yaml to point to something like octoprint.plugin.SQLbasedUserManager.
I'd greatly appreciate any guidance in figuring out how to best tackle this project!
I have read the FAQ.
I'm also on this actually, nearly same situation. Students shall get limited access.
This would be easy to do but I think it is a security risk.
I think of a scenario like this: