-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whether the output directory of the kubectl-edit-xxx.yaml file is configurable #126993
Comments
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/sig cli |
/sig security |
https://pkg.go.dev/os#CreateTemp which follows https://pkg.go.dev/os#TempDir You can influence it by setting
This isn't a log file, and anywhere we create a file there's roughly the same issues with access control and other processes. What do you propose instead? |
Thank you for your reply. Can you add a configuration parameter to specify the output directory and consider the file aging? |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
What would you like to be added?
When kubectl edits resources, a kubectl-edit-xxx.yaml file is generated in the /tmp directory. Can this file be generated in other directories or can it be configured? In actual applications, the /tmp directory has security risks.
The code is probably in this location:
kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/util/editor/editoptions.go
Lines 299 to 309 in 8dc49c4
Why is this needed?
The /tmp directory has security risks. It is recommended that logs be stored in other directories or be configurable.
k8s version is 1.28.1
The text was updated successfully, but these errors were encountered: