Skip to content

Kubernetes configuration file is world-readable. This is insecure #184

@alvarolop

Description

@alvarolop

Everytime that we run a helm command we get the following output

helm repo add tl500 https://rht-labs.com/todolist/

WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/developer/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/developer/.kube/config
"tl500" has been added to your repositories

The command works, but it is disturbing for participants.

The problem is with the folder, not with the file, I'm not applying any change yet because I don't know if it may have some implications for other parts of the code:

ls -la /home/developer/.kube 
total 8
drwxr-xr-x. 3 developer root   33 Dec  6 11:53 .
drwxrwxr-x. 1 root      root 4096 Dec  6 11:56 ..
drwxr-x---. 4 developer root   35 Dec  6 11:53 cache
-rw-r--r--. 1 developer root 1302 Dec  6 11:52 config

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions