Skip to content

Kubeconfig generated with wrong permissions #2211

@aimbot31

Description

@aimbot31

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Command attempted

scw k8s kubeconfig install <cluster-id>

Expected Behavior

The command should creates a new kubeconfig file if none exist.
The generated kubeconfig should be only writable and readable by the owner (600 rw--) in order to avoid security issues.

Actual Behavior

The command creates a new kubeconfig file if none exists with these permissions 644 (rw-r-r).

More info

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugk8sKubernetes Kapsule issues, bugs and feature requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions