x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" #428
-
I was following the OPA Tutorial documentation and seem to be getting problem with self signed certification https://www.openpolicyagent.org/docs/latest/kubernetes-tutorial/ ukgvis@GBR-L-PF284EHS:~/policies$ kubectl create -f qa-namespace.yaml Any idea guys ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 19 replies
-
Hi @gviswalingam 👋 Could you check the Kubernetes API server logs? There are usually some hints as to what would cause verification to fail there. We've had some issues with that in the past, but I thought the last fixes would have taken care of that. Could be that there are some new requirements for the latest Kube version... not sure we've tried running with that yet. |
Beta Was this translation helpful? Give feedback.
I can't see any POSTs in those logs, can you check they cover the period where the ingress is created?
We can have a look at the policies in OPA like this:
then, in another tab:
And the main.rego:
Please can you format the output so it's easy to read on GitHub by using '```' blocks 🙂. This makes it easier to read your messages.