HiveMind-core
HiveMind-core copied to clipboard
feat: ADMIN message type
is_admin property has been stubbed for each client in db but is not used,
- add ADMIN HiveMessage type,
- when sent from master -> client , can change any of the values in identity file
- port / host -> change device to a different server
- key / password -> rotate credentials for security
- is_admin state -> revoke/grant permission to emit ADMIN messages
- when sent from client -> master:
- only allowed if client
is_admin - list connected clients
- CRUD operations on db
- only allowed if client
additionally admin clients in db should have different default allowed_messages at creation time (eg, allow system.reboot and system.shutdown)