Cybus::User
Defining users and access control.
Last updated
Was this helpful?
Was this helpful?
myUser:
type: Cybus::User
properties:
password: 'somePassword1'
permissions:
- resource: userspace/werner/#
operation: readWrite
context: mqtt# First define a role
operatorRole:
type: Cybus::Role
properties:
permissions:
- resource: userspace/data/#
operation: read
context: mqtt
- resource: userspace/controls/#
operation: readWrite
context: mqtt
# Then assign the role to a user with !ref
productionUser:
type: Cybus::User
properties:
password: 'securePassword123'
roles:
- !ref operatorRole