8000 kubectl: check rule in exec command is insecurity · Issue #1745 · kubernetes/kubectl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
kubectl: check rule in exec command is insecurity #1745
Open
kubernetes/kubernetes
#131353
@hunshcn

Description

@hunshcn

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 -- bash will be like kubectl exec -it resource -- bash but no error

This 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 -- bash

Anything else we need to know?

No response

Kubernetes version

$ kubectl version
v1.32.3

Cloud provider

-

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

Container runtime (CRI) and version (if applicable)

Related plugins (CNI, CSI, ...) and versions (if applicable)

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.sig/cliCategorizes an issue or PR as relevant to SIG CLI.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

Status

Needs Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0