riverqueue / riverui

A web interface for River, fast and reliable background jobs in Go.
https://ui.riverqueue.com/
Mozilla Public License 2.0
43 stars 3 forks source link

Handle no-permissions error from postgres #73

Open isaacd9 opened 4 days ago

isaacd9 commented 4 days ago

Because riverui is unauthenticated right now and has no permissions checks for users, I've opted to use it with a read-only Postgres user in our deployment to avoid accidentally cancelling or restarting running jobs. This user can read the state of all jobs, but cannot modify any.

This works fine to display jobs, but any modifying action returns a 500 right now. It would be better if riverui could return a more descriptive error in that case.

brandur commented 4 days ago

Yeah, that's a good idea.

bgentry commented 5 hours ago

@brandur I think this was resolved by #76?