Hi!
I would like to request the classic confinement for my ‘kubectx’ snap. I did a mistake when I was developing it (I had the regular binaries in ~/bin, and I didn’t notice) so some grave errors passed by me. I will show the error:
The question here is kubectx command just operate with ~/.kube/config file, since it just list and select what is the current cluster. But que kubens command is a lot more dynamic: it does a real request for the cluster do get what are the available namespaces (so naturally take a while every time). If the credential was only inside ~/.kube/config it would be fine, but as the image shows, the credentials file can be anywhere in the system (in my case is under ~/.minikube). So it’s virtually impossible to know where the credentials are. It also fixes a small limitation: the kube config file must be ~/.kube/config. With classic confinment, can be anywhere. I think the code it’s very small so a developer could do an additional review if want and since use must agree with classic confinement or no business done, I think it would be quite safe to allow classic confinement. But I’m no expert.What are you thoughts?