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

Need the ability to specify the equivalent of root_cas: host in the ingress controller #369

Closed
ctindel opened this issue Apr 29, 2024 · 6 comments · Fixed by #371
Closed
Assignees
Labels
area/helm-chart Issues dealing with the helm chart enhancement New feature or request

Comments

@ctindel
Copy link
Contributor

ctindel commented Apr 29, 2024

Kubernetes Version

latest

Helm Chart Version

latest

Helm Chart configuration

No response

What happened

When using a custom serverAddr like --set serverAddr="tunnel.us.connect.example.com:443" if that edge domain was created with a cert signed by letsencrypt, we need the ability to tell the ingress controller to trust the host's root CA store just like we do when using that custom serverAddr with the CLI agent.

We get this error:

{"level":"error","ts":"2024-04-29T17:25:43Z","logger":"controllers.tunnel","msg":"Reconciler error","reconcileID":"5aebdabc-0fef-4fbc-94c7-b72b59cdf063","error":"failed to send authentication request: tls: failed to verify certificate: x509: certificate signed by unknown authority","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:329\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:227"}

What you think should happen instead

No response

How to reproduce

No response

@ctindel ctindel added bug Something isn't working area/helm-chart Issues dealing with the helm chart needs-triage Issues that need triage labels Apr 29, 2024
@russorat russorat removed the needs-triage Issues that need triage label May 1, 2024
@bobzilladev bobzilladev added enhancement New feature or request and removed bug Something isn't working labels May 2, 2024
@bobzilladev
Copy link
Member

bobzilladev commented May 2, 2024

@jrobsonchase
Copy link
Collaborator

Oh, neat. I didn't see this comment and apparently didn't actually read very much of the tunneldriver code I was messing with. Sounds like that solves the problem assuming the ssl certs directory isn't too hard to create.

@bobzilladev
Copy link
Member

Still makes sense to have a setting like your PR to not need to deal with directories, but could be a quick-fix with existing release at least

@ctindel
Copy link
Contributor Author

ctindel commented May 2, 2024

@jrobsonchase ideally we would make it more like the agent so the user doesn't have to change anything. While it may be possible to do, it creates an overhead with extra steps for making this work especially in managed k8s services like gke, eks etc where the user likely isn't customizing anything else on the worker nodes already.

@jrobsonchase
Copy link
Collaborator

ideally we would make it more like the agent so the user doesn't have to change anything

Is this in reference to the directory creation or adding --set hostCA=true to the helm arguments?

Unless I missed something (which is entirely possible), we still require you to set root_cas in addition to the server_addr in the agent config, so the helm argument is right in line with how the agent works.

@ctindel
Copy link
Contributor Author

ctindel commented May 4, 2024

@jrobsonchase What I meant was I think it's better to have a --set hostCA=true since we can universalize those instructions, as opposed to telling people how to go into different systems like k3d, EKS, AKS, GKE and muck around with the local filesystem.

@OfTheDelmer OfTheDelmer self-assigned this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm-chart Issues dealing with the helm chart enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants