LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

kubectl-auth

checks authorization permissions

TLDR

Check if action is allowed
$ kubectl auth can-i [create] [pods]
copy
Check as user
$ kubectl auth can-i [delete] [deployments] --as [user@example.com]
copy
Check in namespace
$ kubectl auth can-i [get] [secrets] -n [namespace]
copy
List all permissions
$ kubectl auth can-i --list
copy
Check all namespaces
$ kubectl auth can-i [get] [pods] --all-namespaces
copy
Reconcile RBAC
$ kubectl auth reconcile -f [rbac.yaml]
copy

SYNOPSIS

kubectl auth subcommand [options]

DESCRIPTION

kubectl auth checks authorization permissions. It verifies what actions are allowed for users and service accounts.The command tests RBAC policies. It's useful for debugging access issues and auditing permissions.

PARAMETERS

can-i VERB RESOURCE

Check authorization.
reconcile
Reconcile RBAC rules.
--as USER
Impersonate user.
--as-group GROUP
Impersonate group.
--list
List all permissions.
-n NAMESPACE
Target namespace.
--help
Display help information.

INSTALL

sudo apt install kubectl
copy
sudo pacman -S kubectl
copy
sudo apk add kubectl
copy
brew install kubectl
copy
nix profile install nixpkgs#kubectl
copy

CAVEATS

Subcommand of kubectl. Shows RBAC results. May not reflect all policies.

HISTORY

kubectl auth provides authorization checking for Kubernetes RBAC policies and access debugging.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid