Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloudcore charts do not use .Values.cloudCore.modules.cloudHub.advertiseAddress when generating certificates in templates _helpers.tpl #5598

Open
tagGeeY opened this issue May 10, 2024 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@tagGeeY
Copy link

tagGeeY commented May 10, 2024

What happened: I deployed cloudcore by helm, but error occured when I tried to join edge node:
Error: failed to get edge certificate from the cloudcore, error: Get "https://${PUBLIC_IP}:10002/edge.crt": tls: failed to verify certificate: x509: certificate is valid for 192.168.x.x, not ${PUBLIC_IP}

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):
Deploy cloudcore by helm, and then join edge node.

Anything else we need to know?:
I modified the

{{- $cert := genSignedCert ( include "cloudcore.name" . ) nil $altNames 365 $ca -}}
to
{{- $cert := genSignedCert ( include "cloudcore.name" . ) ( .Values.cloudCore.modules.cloudHub.advertiseAddress ) $altNames 365 $ca -}}
the trouble resolved.

Environment:

  • Kubernetes version (use kubectl version):

  • KubeEdge version(e.g. cloudcore --version and edgecore --version): v1.16.2

  • Cloud nodes Environment:
    • Hardware configuration (e.g. lscpu):
    • OS (e.g. cat /etc/os-release):
    • Kernel (e.g. uname -a):
    • Go version (e.g. go version):
    • Others:
  • Edge nodes Environment:
    • edgecore version (e.g. edgecore --version): v1.16.2
    • Hardware configuration (e.g. lscpu):
    • OS (e.g. cat /etc/os-release):
    • Kernel (e.g. uname -a):
    • Go version (e.g. go version):
    • Others:
@tagGeeY tagGeeY added the kind/bug Categorizes issue or PR as related to a bug. label May 10, 2024
@WillardHu
Copy link
Collaborator

This is used to generate stream certificates, but in practice it requires a k8s csr to sign a certificate that can two-way ssl with api-server, rather than sign certificates with itself.

We plan to replace this function with k8s csr sign certificates, are you interested in contributing to it?

@Shelley-BaoYue
Copy link
Collaborator

What‘s the IP of the node where CloudCore is deployed on? The advertiseAddress IP should be same with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants