manifoldco / manifoldco/torus-cli

Show current state of access

Open
#93 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
603
Forks
30
PR merge metrics
No merged PRs in 30d

Description

Was asked an interesting question today:
> How do I see which policies affect me?

The short answer today is:
> With a lot of effort

To understand your position in the ACLs you'd need to:
- `torus teams list`
- `torus teams members ` for each team
- `torus policies list`
- `torus policies view ` for each policy attached to each team
- Then decipher in your head how the policies resolve.

I propose that we add a command which will show the current access status:
`torus policies access` for example.

This would look at the authenticated user/machine, and then dump the complete resolved policy so that you can easily understand the position you're in.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the existing `torus teams` and `torus policies` command paths, especially `policies list` and `policies view`, and trace how authenticated users or machines are identified. Done means a `torus policies access` command reports the complete resolved policy for the current identity, with behavior verified against representative team and policy combinations.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authorization, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.