manifoldco / manifoldco/torus-cli
Show current state of access
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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