-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display Permit's ReBAC Graph #16
Comments
/bounty 200 |
💎 $200 bounty • Permit.ioSteps to solve:
Thank you for contributing to permitio/permit-cli! Add a bounty • Share on socials
|
/attempt #16 Purpose: The permit_fga_graph command would retrieve and display a visual graph representing the relationships and permissions across resource instances, role assignments, and other relevant entities using Permit’s API. implementation Outline: i like to proceed with CLI-based Option: 2 Graph Data Structuring 3 Integrate with CLI Output Options |
Hey @harshtech123, please read the issue description next time; we asked to propose a way of building it before submitting a PR. In your PR:
|
@gemanor |
@gemanor please let me know how we can future improve it , (i am thinking about adding a option for token) so user can either parse it with loadauthtoken or manually pass as an option. |
Related to permitio#16 Add `permit fga graph` command to display Permit permissions graph in ReBAC. * **CLI Integration** - Add import for `fgaGraph` command in `source/cli.tsx`. - Register `fgaGraph` command with Pastel in `source/cli.tsx`. * **API Methods** - Add methods in `source/lib/api.ts` to fetch resource instances, roles, and relationships from Permit API. * **Graph Command Implementation** - Create `source/commands/fgaGraph.tsx` to define `fgaGraph` command. - Use Ink components to render graph data interactively in CLI. * **Documentation** - Update `README.md` to include usage instructions for `permit fga graph` command.
/attempt #16 |
@vishwamartur: We appreciate your enthusiasm but since you already have 3 active bounty attempts, we're going to keep this open for other contributors to attempt. 🫡 |
We want the CLI to be able to read the whole resource instance, relationships, and role assignment from the Permit APIs and display them as a graph with the relationship. Before attempting this issue, please propose your way to implement it (could be native CLI, could be opened in the browser, etc.)
Acceptance criteria:
permit fga graph
is showing the graph of the Permit permissions in ReBACThe text was updated successfully, but these errors were encountered: