Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,28 @@ DEBUG="*" node worker.js --wtype wrk-node-http --env development --port 3000
"ticket:r",
"alerts:r"
],
"admin_external": [
"miner:r",
"container:r",
"minerpool:r",
"powermeter:r",
"temp:r",
"electricity:r",
"features:r",
"revenue:r",
"users:r",
"actions:r",
"production:r",
"alerts:r",
"cabinets:r",
"comments:r",
"explorer:r",
"inventory:r",
"reporting:r",
"settings:r",
"ticket:r",
"power_spot_forecast:r"
],
"dev": [
"miner:r",
"container:r",
Expand All @@ -393,6 +415,7 @@ DEBUG="*" node worker.js --wtype wrk-node-http --env development --port 3000
"field_operator",
"repair_technician",
"read_only_user",
"admin_external",
"dev"
]
}
Expand Down Expand Up @@ -422,6 +445,7 @@ DEBUG="*" node worker.js --wtype wrk-node-http --env development --port 3000
- `field_operator` - Read-only access with comment/ticket creation
- `repair_technician` - Read access with action/inventory/comment management
- `read_only_user` - Read-only access to all resources
- `admin_external` - Read-only access to all resources, including admin-only features (users, revenue, actions, production, pool config)
- `dev` - Developer access with elevated explorer/inventory/settings permissions

**Role Management Rules:**
Expand Down
26 changes: 26 additions & 0 deletions config/facs/auth.config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,31 @@
"alerts:r",
"work_order:r"
],
"admin_external": [
"miner:r",
"container:r",
"minerpool:r",
"powermeter:r",
"temp:r",
"electricity:r",
"features:r",
"revenue:r",
"users:r",
"actions:r",
"production:r",
"alerts:r",
"cabinets:r",
"comments:r",
"explorer:r",
"inventory:r",
"reporting:r",
"settings:r",
"ticket:r",
"power_spot_forecast:r",
"pool_config:r",
"pool_config_approve:r",
"work_order:r"
],
"pool_manager": [
"pool_config:rw",
"miner:r",
Expand All @@ -164,6 +189,7 @@
"field_operator",
"repair_technician",
"read_only_user",
"admin_external",
"pool_manager"
]
}
Expand Down
Loading