🐞 Bug: Built-in Viewer has swarm:read but cannot list stacks etc.
Bug Description
The built-in Viewer role has the swarm:read permissions but a user with this role cannot list docker stacks, services etc., can only access swarm tasks.
I'm not sure if this is gated only in the UI, but we either need to display the relevant resources when the user has only swarm:read, or we need to add roles like swarm:stacks:read, swarm:services:read, ...; and differentiate between readonly and write access to these more specific Swarm resources. The current roles are prefixed "Manage", which implies that they only control write access ("Manage stacks" for swarm:stacks) etc.
Steps To Reproduce
- Run Arcane in Docker Swarm
- Assign Viewer to a user
Expected Behavior
The user can see swarm resources but cannot edit them.
Actual Behavior
The user can only see the Tasks and Cluster tabs.
Screenshots
No response
Arcane Version
v2.8.1
Installation Method
Docker Compose (Recommended)
Environment Type
Local Docker (Single instance)
Database Type
PostgreSQL
Operating System
Linux
Docker Version
29.4.1
Browser & Version
No response
Relevant Logs or Error Messages
Docker Compose Configuration
Environment Configuration (.env file)
Additional Context
No response