Skip to content

feat: admin mode #240

Closed
Closed

Description

@uniqueg

Why?

Members of the admin group act as admins on every request (least-privilege issue; see elixir-cloud-aai/foca#502). The UI will offer an explicit "Admin mode" switch, so being admin becomes a deliberate action.

What?

  • Enable FOCA's opt-in for the admin role (feat(access-control): opt in to privileged roles foca#502) in the default config. Admin rights apply only to requests that opt in; all other group roles apply as usual.
  • GET /me reports admin (active on this request) and whether admin mode is available to the caller (e.g. admin_available).
  • Document the opt-in for API clients and scripts.

Acceptance criteria

  • An admin's requests without the opt-in have regular-user permissions; with it, admin permissions.
  • GET /me tells clients whether the caller may switch to admin mode.

Blocked by elixir-cloud-aai/foca#502.

Activity

  1. added
    priority: high
    status: blocked
    type: auth
    type: feature
    workload: hours
    on Oct 25, 2026
  2. added
    status: in progress
    and removed
    status: blocked
    on Oct 26, 2026
  3. removed
    status: in progress
    on Oct 27, 2026
  4. added this to the v0.6.0 milestone on Oct 28, 2026
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

    priority: hightype: authtype: featureworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions