corneliusweig / rakkess

Review Access - kubectl plugin to show an access matrix for k8s server resources
Apache License 2.0
1.3k stars 56 forks source link

Doesn't work with subresources? #176

Open rehevkor5 opened 2 months ago

rehevkor5 commented 2 months ago

Expected behavior

When running a command to evaluate the access matrix of a subresource such as:

% kubectl access-matrix for pods/exec --namespace foo

I would expect it to print the access matrix for the pods/exec resource.

Actual behavior

It fails with an error complaining that it finds no matches:

% kubectl access-matrix for pods/exec --namespace foo
E0719 11:55:14.963247   45477 resource.go:80] determine requested resource: no matches for /, Resource=pods/exec
% kubectl access-matrix for pods/log --namespace foo
E0719 11:58:40.311999   46620 resource.go:80] determine requested resource: no matches for /, Resource=pods/log

Steps To Reproduce

See example commands above.

Context:

% kubectl access-matrix version  
v0.5.0