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

After updating to 0.22.2, headscale refuses let's encrypt certificates #1462

Closed
2 tasks done
kolaente opened this issue May 11, 2023 · 4 comments · Fixed by #1463
Closed
2 tasks done

After updating to 0.22.2, headscale refuses let's encrypt certificates #1462

kolaente opened this issue May 11, 2023 · 4 comments · Fixed by #1463
Labels
bug Something isn't working

Comments

@kolaente
Copy link

Bug description

After upgrading to 0.22.2 (from 0.22.1) headscale refuses to start. I see this message in the logs:

server_1  | 2023-05-11T20:19:46Z FTL go/src/headscale/cmd/headscale/cli/server.go:21 > Error initializing error="Get \"https://auth.domain.tld/application/o/headscale/.well-known/openid-configuration\": tls: failed to verify certificate: x509: certificate signed by unknown authority"

The certificate on the auth provider uses a let's encrypt certificate. I can view the site in my browser without problems. Downgrading to 0.22.1 again seems to fix it.

Environment

  • OS: Docker image
  • Headscale version: 0.22.2
  • Tailscale version: probably not relevant?
  • Headscale is behind a (reverse) proxy
  • Headscale runs in a container

Both are the case here, but I doubt that's a cause of the problem? Also since this is the official image I kind of assume it's within the scope of the project?

To Reproduce

Update to 0.22.2 from 0.22.1, use a Let's Encrypt certificate on a third party auth provider.

@kolaente kolaente added the bug Something isn't working label May 11, 2023
@gtjadsonsantos
Copy link

I am with this problem too

@6ixfalls
Copy link
Contributor

Issue seems to be with the new base image change, bullseye-slim doesn't contain ca-certificates by default AFAIK. Will test and create a PR if so.

@6ixfalls 6ixfalls mentioned this issue May 11, 2023
6 tasks
@arnonh
Copy link

arnonh commented May 12, 2023

Just to help others, It will refuse any certificate so for me oidc with google stopped working until i downgraded back to 0.22.1

@sunny-logic
Copy link

Sorry to comment here on a closed issue but just wanted to check if the "v0.23.0-alpha5-debug" have the ca-certificates added because I see the below error, thanks.

ERR Could not load DERP map from path error="Get \"https://controlplane.tailscale.com/derpmap/default\": tls: failed to verify certificate: x509: certificate signed by unknown authority" func=GetDERPMap url=https://controlplane.tailscale.com/derpmap/default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants