-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
CA Certificates missing #1868
Comments
Does this problem appear with the let's encrypt certificate or your own certificate? The container are not build with the Dockerfile anymore. We use the buildin from goreleaser |
@ohdearaugustin -Thanks for the reply. |
I also have this error on a fresh install. I pulled from docker hub and have default config.yaml. I don't know what certificate im using but I changed the URL to 0.0.0.0:8080:8080 for external use Logs: 2024-04-25 17:09:08 2024-04-25T21:09:08Z TRC DNS configuration loaded dns_config={"Nameservers":["1.1.1.1"],"Proxied":true,"Resolvers":[{"Addr":"1.1.1.1"}]}
2024-04-25 17:09:08 2024-04-25T21:09:08Z INF Opening database database=sqlite3 path=/var/lib/headscale/db.sqlite
2024-04-25 17:09:08 2024-04-25T21:09:08Z 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
2024-04-25 17:09:08 2024-04-25T21:09:08Z WRN DERP map is empty, not a single DERP map datasource was loaded correctly or contained a region
2024-04-25 17:09:08 2024-04-25T21:09:08Z INF Setting up a DERPMap update worker frequency=86400000
2024-04-25 17:09:08 2024-04-25T21:09:08Z FTL home/runner/work/headscale/headscale/cmd/headscale/cli/server.go:26 > Error starting server error="initial DERPMap is empty, Headscale requires at least one entry" |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@ohdearaugustin - Sorry, It's not clear from your previous comment if this issue would this be fixed ?
|
its updated the same as the docker hub image so guess not |
I can't use v0.22.3 because it's doesn't have an ARMv7 variant. Are there any other options that would support ARMv7 ? |
oh is it the debug versions that don't have them? |
ok that solves my problem |
I've tried today to build a an image for the verion v0.22.3 because it's doesn't have an ARMv7 variant. I've used the Source code zip but encounter a certificate issue. `=> [internal] load build context 0.4s [stage-1 2/4] RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/* && apt-get clean: |
I can confirm the issue. When using
When building my own version like the following, it works: FROM docker.io/headscale/headscale:0.23.0-alpha10-debug
RUN apt-get update \
&& apt-get install --no-install-recommends --yes ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean |
So just to summarize only the debug image has the problem with the CA. The production image is working? |
So I took a look at it. The main problem is that the currently used basic container used for building the debug image: Lines 161 to 165 in 5ad0aa4
We are using a plain debian:12 docker image as base. This image doesn't include the ca-certificates. As we changed our container build pipeline to ko, which is included in goreleaser. We can't directly modify the base-images, without building an extra base image. This is definitely a drawback about using ko. Therefore my solution is to change the base image also to distroless, as it includes the CAs per default and we won't need any changes. See PR #1950 Furthermore we also should change the Dockerfile.debug to be closer to real build process with ko. This will be a separate issue. |
Bug description
Does the "v0.23.0-alpha5-debug" have the ca-certificates added because I see the below error which was reported in #1462 and I believe was fixed in #1463.
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
I can't use v0.22.3 because it's doesn't have an ARMv7 variant.
Environment
Linux 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
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
To Reproduce
Use "v0.23.0-alpha5-debug"
Logs and attachments
The text was updated successfully, but these errors were encountered: