Skip to content

feat: implement UI matrix for assigning Keto permissions to hub operator roles#4438

Open
CodeBySayak wants to merge 1 commit intomojaloop:masterfrom
CodeBySayak:fix-permissn-assignment
Open

feat: implement UI matrix for assigning Keto permissions to hub operator roles#4438
CodeBySayak wants to merge 1 commit intomojaloop:masterfrom
CodeBySayak:fix-permissn-assignment

Conversation

@CodeBySayak
Copy link
Copy Markdown

Overview

This PR introduces a UI for Hub Operators to visually assign permissions to roles using a matrix-based interface. It includes a standalone web app (hub-permissions) integrated with Keto (Zanzibar-style) permission tuples.

Key Features

  • Permission Matrix UI
    Responsive grid mapping actions (e.g., dfspManage, settlementView) to roles (Admin, Manager, Operator, Viewer)

  • Keto Tuple Integration
    Aligns with Zanzibar tuple structure:
    namespace → object → relation → subject

  • Live API Preview Panel
    Displays relevant REST endpoints dynamically on permission hover

  • Toast Notifications
    Shows generated JSON/Keto payloads on assignment (POST) and removal (DELETE)

  • Mock API Server
    Lightweight Express server (server.js) supporting:

    • GET /api/metadata
    • POST /api/tuples
    • DELETE /api/tuples

Design

  • Dark mode UI with glassmorphism styling
  • Inter font and smooth animated checkbox interactions

Type of Change

  • New feature
  • Bug fix
  • Refactoring

Testing

  • Verified locally using node server.js
  • Checkbox interactions correctly trigger:
    • POST on assign
    • DELETE on unassign
  • Hover states update the API preview panel without layout shifts

fixes #4409

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Sayak Ghosh seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement permission assignment UI in MCM portal

2 participants