-
Notifications
You must be signed in to change notification settings - Fork 992
kubectl: check rule in exec command is insecurity #1745
Copy link
Copy link
Open
kubernetes/kubernetes
#138214Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.sig/cliCategorizes an issue or PR as relevant to SIG CLI.Categorizes an issue or PR as relevant to SIG CLI.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Metadata
Metadata
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.sig/cliCategorizes an issue or PR as relevant to SIG CLI.Categorizes an issue or PR as relevant to SIG CLI.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Type
Projects
Status
Closed
What happened?
https://github.com/kubernetes/kubernetes/blob/b53b9fb5573323484af9a19cf3f5bfe80760abba/staging/src/k8s.io/kubectl/pkg/cmd/exec/exec.go#L208-L215
kubectl exec -it resource asd asd asd -- bashwill be likekubectl exec -it resource -- bashbut no errorThis can lead to unexpected behavior of command with
--What did you expect to happen?
raise error
error: exec [POD] [COMMAND] is not supported anymore.How can we reproduce it (as minimally and precisely as possible)?
kubectl exec -it resource asd asd asd -- bashAnything else we need to know?
No response
Kubernetes version
Details
Cloud provider
Details
-OS version
Details
Install tools
Details
Container runtime (CRI) and version (if applicable)
Details
Related plugins (CNI, CSI, ...) and versions (if applicable)
Details