permission-manager icon indicating copy to clipboard operation
permission-manager copied to clipboard

Unable to connect to the server: x509: certificate signed by unknown authority

Open ladung opened this issue 2 years ago • 1 comments

when I created user, i used kubeconfig which generated by webUI and I had problem:

╰─ k get node -o wide
Unable to connect to the server: x509: certificate signed by unknown authority

ladung avatar Sep 13 '22 02:09 ladung

Why do not show certificate-authority-data ??? image

ladung avatar Sep 13 '22 02:09 ladung

Using latest version: kubectl apply -f https://github.com/sighupio/permission-manager/releases/download/v1.7.1-rc1/crd.yml kubectl apply -f https://github.com/sighupio/permission-manager/releases/download/v1.7.1-rc1/seed.yml kubectl apply -f https://github.com/sighupio/permission-manager/releases/download/v1.7.1-rc1/deploy.yml

Not working for me either. Certificate-authority-data is not dumped into the kubeconfig. You can workaround it copying it from your existing admin kubeconfig

colegatron avatar Nov 06 '22 04:11 colegatron

something wrong in internal/resources/serviceaccount.go:57, secret name should be serviceAccount.Secrets[0].Name not username

windghoul avatar Jan 29 '23 02:01 windghoul

@windghoul thank you so much! let's me try reinstall!

ladung avatar Jan 29 '23 08:01 ladung

@windghoul your commit is not merge?

ladung avatar Jan 30 '23 03:01 ladung

@ladung yeah, you can build locally with reference to my modification, the build command is

docker build -t permission-manager:<you version> .

i'm already test in my cluster.

windghoul avatar Jan 30 '23 04:01 windghoul

Hello, Luigi is here 🖖🏾

Forgive me but I can't reproduce your problem, could I have some more information?

  1. In which namespace are you deploying the permission manager?
  2. What version of kube are you using?
  3. Are you using the helm chart?

Thank you for your collaboration :)

luigibarbato avatar Jan 30 '23 09:01 luigibarbato

@luigibarbato hi,

  1. In which namespace are you deploying the permission manager?

namespace is permission-manager image

  1. What version of kube are you using?

v1.20.6 I didn't test on a lower version cluster, so I don't know if the problem is caused by the version of the cluster

  1. Are you using the helm chart?

no, I don't use helm chart. I use the kubectl apply -f to install permission manager.

windghoul avatar Feb 06 '23 03:02 windghoul

Hi guys! As I commented in #141, you can safely update the Permission Manager to the latest version where this bug is fixed and generally, there are a lot of improvements.

Thank you for your contribution :)

luigibarbato avatar Feb 17 '23 16:02 luigibarbato