Household grants and Scopes for Bots #88
Notifications
Due Date
No due date set.
Blocks
Depends on
#93 Bind a Bot to your Personal data
bobby/hapi
#126 Ingest Transactions
bobby/hapi
#141 Create and view Jobs
bobby/hapi
#149 Health endpoint with critical checks
bobby/hapi
#161 OpenAPI export with Scopes
bobby/hapi
#85 Household Assets for members
bobby/hapi
Reference: bobby/hapi#88
Reference in new issue
Block a user
Part of #73 (spec: #72)
What to build
The Owner gives a Bot a Household grant of a Scope with
hapi grant add|list|remove <bot> <scope>. Scopes arefinance|fitness|maintenance|smart_home×read|write(write implies read), plushealth. Routes declarerequire_scope(...), which shows in OpenAPI. Household RLS checks the read Scope inUSINGand the write Scope inWITH CHECK. Grant changes are audited.Acceptance criteria
maintenance:readcan list and get Assets, and gets403on createmaintenance:writecan create Assets, with Recorded by showing the Bot403