Skip to content
Show who has permissions to <verb> <resources> in Kubernetes
Branch: master
Clone or download
lizrice Merge pull request #28 from danielpacak/integration-test
test: Add Kubernetes integration test
Latest commit b9b4181 Jun 24, 2019

README.md

GitHub release Build Status Coverage Status Go Report Card

kubectl-who-can

[WIP] show who has permissions to <verb> <resources> in kubernetes

asciicast

Installation

This is a standard Go program. If you already know how to build and install Go code, you probably won't need these instructions.

Note that while the code is small, it has some rather big dependencies, and fetching + building these dependencies can take a few minutes.

Option 1 (if you have a Go compiler and want to tweak the code):

# Clone this repository (or your fork)
git clone https://github.com/aquasecurity/kubectl-who-can
cd kubectl-who-can
make

The kubectl-who-can binary will be in the current directory.

Option 2 (if you have a Go compiler and just want the binary):

go get -v github.com/aquasecurity/kubectl-who-can

The kubectl-who-can binary will be in $GOPATH/bin.

Option 3 (if you don't have a Go compiler, but have Docker installed):

docker run --rm -v /usr/local/bin:/go/bin golang go get -v github.com/aquasecurity/kubectl-who-can

The kubectl-who-can binary will be in /usr/local/bin.

TODO

  • Make it a kubectl plugin (for now it's a standalone executable)
You can’t perform that action at this time.