Skip to content

Navigation Menu

Sign in
Sign up

Tighten role-based access control and expose a permissions endpoint #581

Open

Description

Some sensitive endpoints (alert acknowledgement, camera live stream) need clearer role gating so that USER accounts cannot perform
agent/admin-only actions. The platform also needs a reliable way to know, ahead of time, whether the current user can perform a given
action.

Goals

  • Enforce role checks on sensitive actions and ensure USER is blocked on:
    • Alert acknowledgement (sequence labeling, sequence unmatch)
    • Camera live stream access
  • Return a clean, machine-readable error payload when access is denied, so the platform can display a proper message to the end user
    (e.g. consistent detail + an error code like forbidden_role).
  • Add a GET /users/me/permissions (or equivalent) endpoint that returns, for the authenticated user, which actions they are allowed to
    perform (e.g. can_acknowledge_alert, can_access_live_stream, can_label_sequence, ...). The frontend should rely on this rather than
    hardcoding role logic.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      AltStyle によって変換されたページ (->オリジナル) /