I think I have one last question: do I need to configure these lines for CloudNS in the .env?
#For AWS Route53, uncomment and set these instead of CADDY_DNS_PLUGIN_TOKEN:
#AWS_ACCESS_KEY_ID=your-access-key -> would this be the auth-id that CloudNS gives me?
#AWS_SECRET_ACCESS_KEY=your-secret-key -> would this be the password I configured for that auth-id
#AWS_REGION=your-region -> my cloudns region
#AWS_SESSION_TOKEN=your-session-token # Only if using temporary credentials -> I don't know what this information would be, where to get it from because CloudNS doesn't give me any session token
Can i change the 443 port?
You don't need to set the .env
variables named like AWS_*
. Those are only used by the AWS Route53 DNS plugins for Caddy and Traefik.
For CloudNS, you must configure the CloudNS DNS plugin by following their instructions.
Here's another post from earlier in this thread talking about configuring the CloudNS plugin: Zrok Self Host with dynamic ip and cloudns - #12 by qrkourier
Ensure you assign the CLOUDNS_*
variables in .env
then declare them in the compose file where you configure the caddy
service as shown in that post, allowing the variables you set to pass through to the caddy container where they are used to configure the CloudNS DNS plugin.
Yep. I assume you're still using Caddy, so you can set the HTTPS port in your .env
like this.
CADDY_HTTPS_PORT=1443
To use this HTTPS override variable with Caddy, your Docker Compose project must be based on the latest example from the zrok project (Self-hosting guide for Docker | zrok). You can confirm your Compose project is set up to use the variable by checking that it is present inside two files provided by the example: ./Caddyfile
, ./compose.caddy.yml
.
I've got this error:
[ERROR]: error creating service client (error getting version from api endpoint 'https://zrok.mycloudns.zone': Get "https://zrok.mycloudns.zone/api/v1/version": dial tcp XXX.XXX.XXX.XXX:443: connect: connection refused: Get "https://zrok.mycloudns.zone/api/v1/version": dial tcp XXX.XXX.XXX.XXX:443: connect: connection refused)
In .env file:
ZROK_INSECURE_INTERFACE=0.0.0.0
ZROK_CTRL_PORT=18080
ZROK_FRONTEND_PORT=8080
ZROK_OAUTH_PORT=8081
CADDY_HTTPS_PORT=8440
CADDY_INTERFACE=0.0.0.0
CADDY_DNS_PLUGIN=cloudns
CLOUDNS_AUTH_ID=*****
CLOUDNS_SUB_AUTH_ID=*****
CLOUDNS_AUTH_PASSWORD=*********
ZITI_CTRL_ADVERTISED_PORT=8441
ZITI_ROUTER_PORT=8442
COMPOSE_FILE=compose.yml:compose.caddy.yml
I've got this WARNING:
WARN[0000] The "CADDY_DNS_PLUGIN_TOKEN" variable is not set. Defaulting to a blank string.
And in Caddyfile:
{
email {$ZROK_USER_EMAIL}
acme_ca {$CADDY_ACME_API}
admin 0.0.0.0:2019
}
#http:// {
#redir https://{host}{uri} permanent
#}
*.{$ZROK_DNS_ZONE}:{$CADDY_HTTPS_PORT} {
tls {
dns cloudns
#dns {$CADDY_DNS_PLUGIN} {$CADDY_DNS_PLUGIN_TOKEN}
#propagation_timeout 60m
}
log {
output stdout
format console
level INFO
}
# ziti administration console uses :443 for the benefit of a web UI cert and accesses the ziti edge-man>
@ziti host ziti.{$ZROK_DNS_ZONE}
reverse_proxy @ziti ziti-quickstart:{$ZITI_CTRL_ADVERTISED_PORT:80} {
transport http {
tls_insecure_skip_verify
}
}
@oauth host oauth.{$ZROK_DNS_ZONE}
reverse_proxy @oauth zrok-frontend:{$ZROK_OAUTH_PORT}
@ctrl host zrok.{$ZROK_DNS_ZONE}
reverse_proxy @ctrl zrok-controller:{$ZROK_CTRL_PORT}
reverse_proxy zrok-frontend:{$ZROK_FRONTEND_PORT} {
header_up Host {http.request.host}
}
}
i have open the port:
8440
8441
8442
for this purpose
Is the curl error from the zrok-frontend container?
docker compose logs zrok-frontend
Let's ensure you have the latest versions of everything.
source .env
docker pull "${ZROK_CLI_IMAGE}:${ZROK_CLI_TAG}"
docker pull "${ZITI_CLI_IMAGE}:${ZITI_CLI_TAG}"
docker compose pull
Rebuild all images that need building and rerun all containers.
docker compose up --detach --build --force-recreate
WARN[0000] The "CADDY_DNS_PLUGIN_TOKEN" variable is not set. Defaulting to a blank string.
zrok-frontend-1 | Untrusted certificate authority retrieved from server
zrok-frontend-1 | Verified that server supplied certificates are trusted by server
zrok-frontend-1 | Server supplied 2 certificates
zrok-frontend-1 | Server certificate chain written to /var/lib/zrok-frontend/.config/ziti/certs/ziti.epet21.edu.ar
zrok-frontend-1 | Token: ac86de19-5353-4fcc-bf26-625b67da5c73
zrok-frontend-1 | Saving identity 'default' to /var/lib/zrok-frontend/.config/ziti/ziti-cli.json
zrok-frontend-1 | New identity public created with id: ku.eQxxO7X
zrok-frontend-1 | Enrollment expires at 2025-03-27T20:42:57.373Z
zrok-frontend-1 | INFO generating 4096 bit RSA key
zrok-frontend-1 | INFO enrolled successfully. identity file written to: /var/lib/zrok-frontend/.zrok/identities/public.json
zrok-frontend-1 | DEBUG: 'public' ZITI_PUBLIC_ID=ku.eQxxO7X
zrok-frontend-1 | INFO: creating frontend
zrok-frontend-1 | {"file":"/__w/zrok/zrok/cmd/zrok/adminCreateFrontend.go:71","func":"main.(*adminCreateFrontendCommand).run","level":"info","msg":"created global public frontend 'ZyLmdijsH3lH'","time":"2025-03-27T17:42:58.607Z"}
zrok-frontend-1 | {"file":"/__w/zrok/zrok/cmd/zrok/accessPublic.go:44","func":"main.(*accessPublicCommand).run","level":"info","msg":"{\n\tv = 3\n\tidentity = \"public\"\n\taddress = \"0.0.0.0:8080\"\n\thost_match = \"mydns.zone\"\n\tinterstitial = \u003cnil\u003e\n\toauth = {\n\t\tbind_address = \"0.0.0.0:8081\"\n\t\tredirect_url = \"https://oauth.mydns.zone\"\n\t\tcookie_domain = \"mydns.zone\"\n\t\thash_key = \u003cSECRET\u003e\n\t\tproviders = [\n\t\t\t{\n\t\t\t\tname = \"github\"\n\t\t\t\tclient_id = \"noop\"\n\t\t\t\tclient_secret = \u003cSECRET\u003e\n\t\t\t}\n\t\t\t{\n\t\t\t\tname = \"google\"\n\t\t\t\tclient_id = \"noop\"\n\t\t\t\tclient_secret = \u003cSECRET\u003e\n\t\t\t}\n\t\t]\n\t}\n\ttls = \u003cnil\u003e\n}","time":"2025-03-27T17:42:58.693Z"}
in the localhost i can enter https://192.168.1.100:18080
zrok version: v1.0.0 [6640c32b]
I must have guessed incorrectly this error was from the zrok-frontend container. Where did you encounter the error, while running zrok enable {account token}
to enable the first environment?
When i change the apiEndpoint to https://192.168.1.10:18080 in another vm (same network) and i try to do zrok enable:
zrok enable ************
there was a problem enabling your environment!
you are trying to use the zrok service at: https://192.168.1.10:18080
you can change your zrok service endpoint using this command:
$ zrok config set apiEndpoint <newEndpoint>
(where newEndpoint is something like: https://some.zrok.io)
[ERROR]: error creating service client (error getting version from api endpoint 'https://192.168.1.10:18080': Get "https://192.168.1.10:18080/api/v1/version": http: server gave HTTP response to HTTPS client: Get "https://192.168.1.10:18080/api/v1/version": http: server gave HTTP response to HTTPS client)
Your zrok instance is publishing insecure ports to the local network and secure ports (w/ Caddy for TLS) to the web on your dynamic public IP address.
Your non-TLS insecure ports like the zrok controller's API on 18080 must be accessed with http://
, not https://
.
Added: For secure operations, it's recommended to always use the secure ports, but it may be helpful to test the insecure ports like this too.
Ok Ken, really really thanks for all your answers and time. I'll keep trying to make it work.
You're welcome! Double-check the version of the binary where you're running zrok enable
because this specific error message makes me think it's older than v1.0.0, which was recently released and is the version of your zrok controller. The don't always need to match exactly, but your zrok shares and accesses need to use a version that starts with v1.
Can i upgrade v0.4 to 1?
Yes, I believe you just need to upgrade the zrok executable in this case because you have not yet enabled an environment for your new self-hosted zrok instance.
You're running zrok enable
on Linux, right? If you already subscribe the Linux system to the Linux package repo, then you can use your package manager to upgrade package name "zrok". Install zrok in Linux | zrok
You were testing zrok with the public instance from NetFoundry, so you may already have some state from that account in ~/.zrok
. You could back that up if you wish and start fresh by running zrok disable
or deleting ~/.zrok
.
Exactly
Yes
I was testing it, correct, and it seemed spectacular to me and I think it can be adapted to school, that's why I'm trying to make it work.
In using the namecheap plugin, I had to adapt the Caddyfile.
In https://github.com/caddy-dns/namecheap/blob/master/README.mdt
it shows this section for the Caddyfile.
tls {
dns namecheap {
api_key {env.NAMECHEAP_API_KEY}
user {env.NAMECHEAP_API_USER}
api_endpoint https://api.namecheap.com/xml.response
client_ip <client_ip>
}
}
This is my corresponding portion of the Caddyfile
*.{$ZROK_DNS_ZONE} {
tls {
dns namecheap {
api_key {$NAMECHEAP_API_KEY}
user {$NAMECHEAP_API_USER}
api_endpoint {$NAMECHEAP_API_ENDPOINT}
client_ip {$ZROK_INSTANCE_IP}
}
resolvers 1.1.1.1 1.0.0.1
}
I populate the .env file with those custom variables.
You may find you need to add resolvers too. I hope that helps.
Yes, for any DNS provider with several authentication values like CloudNS, Route53, or NameCheap, you must modify the Caddyfile according to the instructions from the author of that provider's Caddy plugin.
An earlier post in this thread talks about the three main things you must do if you're following the zrok Docker self-hosting guide and wish to use one of the DNS providers supported by Caddy and your provider has more than one login value. For example, CloudFlare uses only one login value, the API token, but Route53 requires multiple values.
- edit the Caddyfile based on the Caddy DNS plugin instructions: caddy-dns · GitHub
- assign the env vars you added to the Caddyfile in your compose project's
.env
file - declare those same env vars in the compose file where the
caddy
service is defined under theenvironment
section
I made a mockery of a post. I recognized @zebbit 's error, I thought.
It looked similar to my error, when I had the variable in the .env file, but not yet in my Caddyfile. I may have mistakenly assumed that was the culprit, @zebbit had that variable commented out in their Caddyfile.
After taking a while, I still can't get it working:
- I've already configured the wildcard in CloudNS.
- I've installed the Docker image, where I can access the admin via port 18080.
- I managed to connect a client to my self-hosted server, where it already gives me the address to access it from the internet.
But the problem is that when I try to access that address, it rejects the connection. Therefore, I would like to know about these service ports indicated in the guide:
ZROK_CTRL_PORT=18080
ZROK_FRONTEND_PORT=8080
ZROK_OAUTH_PORT=8081
ZITI_CTRL_ADVERTISED_PORT=80
ZITI_ROUTER_PORT=3022
Which ones do I need to have open on my router (because I have to ask my ISP to open them since they don't allow us to open them for users). The problem is that, due to their policies, they don't let me open port 80, 8080, or 443.
Aside from that, I have to have Caddy installed, right?
I await your life-saving responses, my dear friends.
When i do docker compose from beginning gives me the following problem:
[caddy builder 2/2] RUN xcaddy build --with github.com/caddy-dns/cloudns:
0.415 2025/05/16 20:26:29 [INFO] absolute output file path: /usr/bin/caddy
0.423 2025/05/16 20:26:29 [INFO] Temporary folder: /tmp/buildenv_2025-05-16-2026.867705342
0.423 2025/05/16 20:26:29 [INFO] Writing main module: /tmp/buildenv_2025-05-16-2026.867705342/main.go
0.423 package main
0.423
0.423 import (
0.423 caddycmd "github.com/caddyserver/caddy/v2/cmd"
0.423
0.423 // plug in Caddy modules here
0.423 _ "github.com/caddyserver/caddy/v2/modules/standard"
0.423 _ "GitHub - caddy-dns/cloudns"
0.423 )
0.423
0.423 func main() {
0.423 caddycmd.Main()
0.423 }
0.423 2025/05/16 20:26:29 [INFO] Initializing Go module
0.423 2025/05/16 20:26:29 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod init caddy
0.584 go: creating new go.mod: module caddy
0.603 go: to add module requirements and sums:
0.603 go mod tidy
0.605 2025/05/16 20:26:29 [INFO] Pinning versions
0.605 2025/05/16 20:26:29 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -v github.com/caddyserver/caddy/v2@v2.10.0
0.931 go: downloading github.com/caddyserver/caddy/v2 v2.10.0
4.557 go: downloading GitHub - caddyserver/certmagic: Automatic HTTPS for any Go program: fully-managed TLS certificate issuance and renewal v0.23.0
6.266 go: downloading github.com/cespare/xxhash/v2 v2.3.0
6.406 go: downloading GitHub - cespare/xxhash: A Go implementation of the 64-bit xxHash algorithm (XXH64) v1.1.0
7.313 go: downloading GitHub - google/uuid: Go package for UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services. v1.6.0
7.477 go: downloading GitHub - prometheus/client_golang: Prometheus instrumentation library for Go applications v1.19.1
9.437 go: downloading GitHub - quic-go/quic-go: A QUIC implementation in pure Go v0.50.1
10.64 go: downloading go.uber.org/zap v1.27.0
11.55 go: downloading go.uber.org/zap/exp v0.3.0
12.58 go: downloading The Go Programming Language v0.31.0
13.08 go: downloading The Go Programming Language v0.30.0
13.95 go: downloading The Go Programming Language v0.11.0
15.20 go: downloading GitHub - caddyserver/zerossl: ZeroSSL REST API client implementation for Go v0.1.3
16.26 go: downloading github.com/klauspost/cpuid/v2 v2.2.10
16.43 go: downloading GitHub - libdns/libdns: Core interfaces for universal DNS record manipulation across providers v1.0.0-beta.1
18.01 go: downloading github.com/mholt/acmez/v3 v3.1.2
18.26 go: downloading GitHub - miekg/dns: DNS library in Go v1.1.63
19.71 go: downloading GitHub - zeebo/blake3: Pure Go implementation of BLAKE3 with AVX2 and SSE4.1 acceleration v0.2.4
20.76 go: downloading The Go Programming Language v0.36.0
21.18 go: downloading The Go Programming Language v0.38.0
21.65 go: downloading GitHub - beorn7/perks: Effective Computation of Things v1.0.1
22.34 go: downloading GitHub - prometheus/client_model: Data model artifacts for Prometheus. v0.5.0
23.90 go: downloading GitHub - prometheus/common: Go libraries shared across Prometheus components and libraries. v0.48.0
24.84 go: downloading GitHub - prometheus/procfs: procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc. v0.12.0
25.93 go: downloading protobuf module - google.golang.org/protobuf - Go Packages v1.35.1
27.31 go: downloading github.com/onsi/ginkgo/v2 v2.13.2
28.49 go: downloading go.uber.org/mock v0.5.0
29.55 go: downloading The Go Programming Language v0.0.0-20240506185415-9bf2ced13842
30.72 go: downloading GitHub - quic-go/qpack: a (minimal) QPACK (RFC 9204) implementation in Go v0.5.1
31.75 go: downloading GitHub - francoispqt/gojay: high performance JSON encoder/decoder with stream API for Golang v1.2.13
32.46 go: downloading go.uber.org/multierr v1.11.0
32.81 go: downloading The Go Programming Language v0.31.0
33.62 go: downloading The Go Programming Language v0.23.0
35.16 go: downloading The Go Programming Language v0.24.0
35.34 go: downloading The Go Programming Language v0.12.0
35.56 go: downloading GitHub - go-task/slim-sprig: Useful template functions for Go templates. v0.0.0-20230315185526-52ccab3ef572
36.30 go: downloading GitHub - google/pprof: pprof is a tool for visualization and analysis of profiling data v0.0.0-20231212022811-ec68065c825e
74.13 go: added GitHub - beorn7/perks: Effective Computation of Things v1.0.1
74.13 go: added github.com/caddyserver/caddy/v2 v2.10.0
74.13 go: added GitHub - caddyserver/certmagic: Automatic HTTPS for any Go program: fully-managed TLS certificate issuance and renewal v0.23.0
74.13 go: added GitHub - caddyserver/zerossl: ZeroSSL REST API client implementation for Go v0.1.3
74.13 go: added github.com/cespare/xxhash/v2 v2.3.0
74.13 go: added GitHub - francoispqt/gojay: high performance JSON encoder/decoder with stream API for Golang v1.2.13
74.13 go: added GitHub - go-task/slim-sprig: Useful template functions for Go templates. v0.0.0-20230315185526-52ccab3ef572
74.13 go: added GitHub - google/pprof: pprof is a tool for visualization and analysis of profiling data v0.0.0-20231212022811-ec68065c825e
74.13 go: added GitHub - google/uuid: Go package for UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services. v1.6.0
74.13 go: added github.com/klauspost/cpuid/v2 v2.2.10
74.13 go: added GitHub - libdns/libdns: Core interfaces for universal DNS record manipulation across providers v1.0.0-beta.1
74.13 go: added github.com/mholt/acmez/v3 v3.1.2
74.13 go: added GitHub - miekg/dns: DNS library in Go v1.1.63
74.13 go: added github.com/onsi/ginkgo/v2 v2.13.2
74.13 go: added GitHub - prometheus/client_golang: Prometheus instrumentation library for Go applications v1.19.1
74.13 go: added GitHub - prometheus/client_model: Data model artifacts for Prometheus. v0.5.0
74.13 go: added GitHub - prometheus/common: Go libraries shared across Prometheus components and libraries. v0.48.0
74.13 go: added GitHub - prometheus/procfs: procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc. v0.12.0
74.13 go: added GitHub - quic-go/qpack: a (minimal) QPACK (RFC 9204) implementation in Go v0.5.1
74.13 go: added GitHub - quic-go/quic-go: A QUIC implementation in pure Go v0.50.1
74.13 go: added GitHub - zeebo/blake3: Pure Go implementation of BLAKE3 with AVX2 and SSE4.1 acceleration v0.2.4
74.13 go: added go.uber.org/mock v0.5.0
74.13 go: added go.uber.org/multierr v1.11.0
74.13 go: added go.uber.org/zap v1.27.0
74.13 go: added go.uber.org/zap/exp v0.3.0
74.13 go: added The Go Programming Language v0.36.0
74.13 go: added The Go Programming Language v0.0.0-20240506185415-9bf2ced13842
74.13 go: added The Go Programming Language v0.24.0
74.13 go: added The Go Programming Language v0.38.0
74.13 go: added The Go Programming Language v0.12.0
74.13 go: added The Go Programming Language v0.31.0
74.13 go: added The Go Programming Language v0.30.0
74.13 go: added The Go Programming Language v0.23.0
74.13 go: added The Go Programming Language v0.11.0
74.13 go: added The Go Programming Language v0.31.0
74.13 go: added protobuf module - google.golang.org/protobuf - Go Packages v1.35.1
74.14 2025/05/16 20:27:42 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -v GitHub - caddy-dns/cloudns github.com/caddyserver/caddy/v2@v2.10.0
75.40 go: downloading GitHub - caddy-dns/cloudns v1.0.0
77.61 go: accepting indirect upgrade from github.com/google/pprof@v0.0.0-20231212022811-ec68065c825e to v0.0.0-20250125003558-7fdb3d7e6fa0
77.61 go: accepting indirect upgrade from github.com/onsi/ginkgo/v2@v2.13.2 to v2.22.2
77.61 go: accepting indirect upgrade from github.com/prometheus/client_golang@v1.19.1 to v1.20.5
77.61 go: accepting indirect upgrade from github.com/prometheus/client_model@v0.5.0 to v0.6.1
77.61 go: accepting indirect upgrade from github.com/prometheus/common@v0.48.0 to v0.62.0
77.61 go: accepting indirect upgrade from github.com/prometheus/procfs@v0.12.0 to v0.15.1
77.61 go: accepting indirect upgrade from golang.org/x/exp@v0.0.0-20240506185415-9bf2ced13842 to v0.0.0-20250106191152-7588d65b2ba8
77.61 go: accepting indirect upgrade from google.golang.org/protobuf@v1.35.1 to v1.36.4
77.61 go: downloading github.com/libdns/cloudns v1.0.0
77.79 go: downloading GitHub - prometheus/client_golang: Prometheus instrumentation library for Go applications v1.20.5
78.02 go: downloading GitHub - prometheus/client_model: Data model artifacts for Prometheus. v0.6.1
78.05 go: downloading GitHub - prometheus/common: Go libraries shared across Prometheus components and libraries. v0.62.0
78.13 go: downloading GitHub - prometheus/procfs: procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc. v0.15.1
78.25 go: downloading protobuf module - google.golang.org/protobuf - Go Packages v1.36.4
78.74 go: downloading github.com/onsi/ginkgo/v2 v2.22.2
78.96 go: downloading The Go Programming Language v0.0.0-20250106191152-7588d65b2ba8
79.16 go: downloading github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
79.34 go: downloading github.com/go-task/slim-sprig/v3 v3.0.0
80.14 go: downloading GitHub - google/pprof: pprof is a tool for visualization and analysis of profiling data v0.0.0-20250125003558-7fdb3d7e6fa0
84.71 go: added GitHub - caddy-dns/cloudns v1.0.0
84.71 go: added github.com/go-task/slim-sprig/v3 v3.0.0
84.71 go: upgraded GitHub - google/pprof: pprof is a tool for visualization and analysis of profiling data v0.0.0-20231212022811-ec68065c825e => v0.0.0-20250125003558-7fdb3d7e6fa0
84.71 go: added github.com/libdns/cloudns v1.0.0
84.71 go: added github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
84.71 go: upgraded github.com/onsi/ginkgo/v2 v2.13.2 => v2.22.2
84.71 go: upgraded GitHub - prometheus/client_golang: Prometheus instrumentation library for Go applications v1.19.1 => v1.20.5
84.71 go: upgraded GitHub - prometheus/client_model: Data model artifacts for Prometheus. v0.5.0 => v0.6.1
84.71 go: upgraded GitHub - prometheus/common: Go libraries shared across Prometheus components and libraries. v0.48.0 => v0.62.0
84.71 go: upgraded GitHub - prometheus/procfs: procfs provides functions to retrieve system, kernel and process metrics from the pseudo-filesystem proc. v0.12.0 => v0.15.1
84.71 go: upgraded The Go Programming Language v0.0.0-20240506185415-9bf2ced13842 => v0.0.0-20250106191152-7588d65b2ba8
84.71 go: upgraded protobuf module - google.golang.org/protobuf - Go Packages v1.35.1 => v1.36.4
84.71 2025/05/16 20:27:53 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -v
84.73 go: downloading github.com/KimMachineGun/automemlimit v0.7.1
85.19 go: downloading github.com/aryann/difflib v0.0.0-20210328193216-ff5ff6dc229b
85.37 go: downloading github.com/spf13/cobra v1.9.1
85.65 go: downloading github.com/spf13/pflag v1.0.6
85.84 go: downloading go.uber.org/automaxprocs v1.6.0
86.03 go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20250305170421-49bf5b80c810
86.19 go: downloading github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58
86.37 go: downloading github.com/inconshreveable/mousetrap v1.1.0
86.55 go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.6
88.24 go: downloading gopkg.in/yaml.v3 v3.0.1
88.45 go: downloading github.com/smallstep/certificates v0.26.1
90.45 go: downloading github.com/smallstep/truststore v0.13.0
90.63 go: downloading go.step.sm/crypto v0.45.0
91.00 go: downloading github.com/go-chi/chi/v5 v5.2.1
91.93 go: downloading github.com/smallstep/nosql v0.6.1
92.12 go: downloading github.com/cloudflare/circl v1.6.0
93.26 go: downloading github.com/tailscale/tscert v0.0.0-20240608151842-d3f834017e53
93.44 go: downloading github.com/dustin/go-humanize v1.0.1
93.63 go: downloading gopkg.in/natefinch/lumberjack.v2 v2.2.1
93.82 go: downloading github.com/russross/blackfriday/v2 v2.1.0
94.05 go: downloading github.com/russross/blackfriday v1.5.2
94.14 go: downloading github.com/google/cel-go v0.24.1
94.47 go: downloading github.com/klauspost/compress v1.18.0
100.2 go: downloading github.com/pires/go-proxyproto v0.7.1-0.20240628150027-b718e7ce4964
100.5 go: downloading github.com/BurntSushi/toml v1.4.0
101.3 go: downloading github.com/Masterminds/sprig/v3 v3.3.0
101.5 go: downloading github.com/alecthomas/chroma/v2 v2.15.0
103.4 go: downloading github.com/yuin/goldmark v1.7.8
103.7 go: downloading github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc
103.8 go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.56.0
104.0 go: downloading go.opentelemetry.io/contrib/propagators/autoprop v0.42.0
104.2 go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.31.0
104.4 go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.31.0
104.4 go: downloading go.opentelemetry.io/otel v1.31.0
104.8 go: downloading go.opentelemetry.io/otel/sdk v1.31.0
105.0 go: downloading go.opentelemetry.io/otel/trace v1.31.0
105.1 go: downloading github.com/pkg/errors v0.9.1
106.1 go: downloading go.step.sm/cli-utils v0.9.0
106.3 go: downloading go.step.sm/linkedca v0.20.1
106.5 go: downloading google.golang.org/grpc v1.67.1
107.2 go: downloading howett.net/plist v1.0.0
107.3 go: downloading github.com/fxamacker/cbor/v2 v2.6.0
107.6 go: downloading github.com/google/go-tpm v0.9.0
107.8 go: downloading github.com/smallstep/go-attestation v0.4.4-0.20240109183208-413678f90935
108.1 go: downloading github.com/slackhq/nebula v1.6.1
109.9 go: downloading cel.dev/expr v0.19.1
110.1 go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20241007155032-5fefd90f89a9
110.3 go: downloading google.golang.org/genproto v0.0.0-20190306203927-b5d61aea6440
112.7 go: downloading github.com/stoewer/go-strcase v1.2.0
112.9 go: downloading github.com/antlr4-go/antlr/v4 v4.13.0
113.1 go: downloading dario.cat/mergo v1.0.1
113.3 go: downloading github.com/Masterminds/goutils v1.1.1
113.5 go: downloading github.com/Masterminds/semver/v3 v3.3.0
113.6 go: downloading github.com/huandu/xstrings v1.5.0
113.8 go: downloading github.com/mitchellh/copystructure v1.2.0
114.0 go: downloading github.com/shopspring/decimal v1.4.0
114.2 go: downloading github.com/spf13/cast v1.7.0
114.4 go: downloading github.com/felixge/httpsnoop v1.0.4
114.9 go: downloading go.opentelemetry.io/otel/metric v1.31.0
115.1 go: downloading go.opentelemetry.io/contrib/propagators/aws v1.17.0
115.2 go: downloading go.opentelemetry.io/contrib/propagators/b3 v1.17.0
115.3 go: downloading go.opentelemetry.io/contrib/propagators/jaeger v1.17.0
115.5 go: downloading go.opentelemetry.io/contrib/propagators/ot v1.17.0
115.6 go: downloading go.opentelemetry.io/proto/otlp v1.3.1
115.9 go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20241007155032-5fefd90f89a9
116.0 go: downloading github.com/smallstep/pkcs7 v0.0.0-20231024181729-3b98ecc1ca81
116.2 go: downloading github.com/smallstep/scep v0.0.0-20231024192529-aee96d7ad34d
116.4 go: downloading github.com/urfave/cli v1.22.14
116.6 go: downloading github.com/chzyer/readline v1.5.1
116.9 go: downloading github.com/manifoldco/promptui v0.9.0
117.2 go: downloading github.com/go-jose/go-jose/v3 v3.0.4
117.4 go: downloading filippo.io/edwards25519 v1.1.0
117.6 go: downloading github.com/x448/float16 v0.8.4
117.7 go: downloading github.com/google/go-tspi v0.3.0
117.9 go: downloading github.com/sirupsen/logrus v1.9.3
118.1 go: downloading github.com/rs/xid v1.5.0
118.3 go: downloading github.com/dgraph-io/badger v1.6.2
118.6 go: downloading github.com/dgraph-io/badger/v2 v2.2007.4
118.8 go: downloading go.etcd.io/bbolt v1.3.9
119.0 go: downloading github.com/go-sql-driver/mysql v1.7.1
119.6 go: downloading github.com/jackc/pgx/v4 v4.18.3
119.8 go: downloading github.com/Microsoft/go-winio v0.6.0
120.0 go: downloading github.com/mitchellh/go-ps v1.0.0
120.6 go: downloading github.com/mitchellh/reflectwalk v1.0.2
120.7 go: downloading github.com/dlclark/regexp2 v1.11.4
121.5 go: downloading github.com/go-logr/logr v1.4.2
122.0 go: downloading github.com/cenkalti/backoff/v4 v4.3.0
122.2 go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0
122.7 go: downloading github.com/grpc-ecosystem/grpc-gateway v1.5.0
123.0 go: downloading github.com/go-logr/stdr v1.2.2
123.5 go: downloading github.com/go-kit/kit v0.13.0
123.8 go: downloading github.com/google/certificate-transparency-go v1.1.8-0.20240110162603-74a5dd331745
124.2 go: downloading github.com/dgraph-io/ristretto v0.2.0
124.4 go: downloading github.com/golang/protobuf v1.5.4
125.0 go: downloading github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13
125.2 go: downloading github.com/jackc/pgconn v1.14.3
125.4 go: downloading github.com/jackc/pgio v1.0.0
125.5 go: downloading github.com/jackc/pgproto3/v2 v2.3.3
125.8 go: downloading github.com/jackc/pgtype v1.14.0
126.0 go: downloading github.com/go-kit/log v0.2.1
126.2 go: downloading github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96
126.4 go: downloading github.com/golang/snappy v0.0.4
126.6 go: downloading github.com/jackc/chunkreader/v2 v2.0.1
126.8 go: downloading github.com/jackc/pgpassfile v1.0.0
127.3 go: downloading github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a
127.4 go: downloading github.com/go-logfmt/logfmt v0.6.0
127.6 go: downloading github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d
127.9 go: downloading github.com/mattn/go-colorable v0.1.13
128.1 go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
128.2 go: downloading github.com/mattn/go-isatty v0.0.20
156.3 go: downloading google.golang.org/genproto v0.0.0-20240401170217-c3f982113cda
200.4 2025/05/16 20:29:49 [INFO] Build environment ready
200.4 2025/05/16 20:29:49 [INFO] Building Caddy
200.4 2025/05/16 20:29:49 [INFO] exec (timeout=0s): /usr/local/go/bin/go mod tidy -e
200.5 go: downloading github.com/stretchr/testify v1.10.0
201.1 go: downloading go.uber.org/goleak v1.3.0
202.1 go: downloading github.com/google/go-cmp v0.6.0
202.3 go: downloading github.com/onsi/gomega v1.36.2
204.0 go: downloading github.com/zeebo/assert v1.1.0
204.9 go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
205.1 go: downloading github.com/prashantv/gostub v1.1.0
206.1 go: downloading github.com/davecgh/go-spew v1.1.1
206.2 go: downloading github.com/pmezard/go-difflib v1.0.0
206.2 go: downloading github.com/smallstep/assert v0.0.0-20200723003110-82e2b9b3b262
207.2 go: downloading github.com/kr/pretty v0.3.1
207.3 go: downloading github.com/kylelemons/godebug v1.1.0
208.3 go: downloading github.com/alecthomas/assert/v2 v2.11.0
209.2 go: downloading github.com/google/go-tpm-tools v0.4.4
210.5 go: downloading github.com/peterbourgon/diskv/v3 v3.0.1
211.6 go: downloading github.com/schollz/jsonstore v1.1.0
212.5 go: downloading github.com/kr/text v0.2.0
212.7 go: downloading github.com/rogpeppe/go-internal v1.13.1
213.7 go: downloading github.com/frankban/quicktest v1.14.6
214.6 go: downloading github.com/alecthomas/repr v0.4.0
216.3 go: downloading github.com/hexops/gotextdiff v1.0.3
218.2 go: downloading github.com/chzyer/test v1.0.0
218.2 go: downloading github.com/aws/aws-sdk-go-v2/config v1.27.13
219.5 go: downloading github.com/aws/aws-sdk-go-v2 v1.26.1
220.5 go: downloading github.com/aws/aws-sdk-go-v2/service/kms v1.31.1
221.5 go: downloading cloud.google.com/go/kms v1.16.0
222.4 go: downloading cloud.google.com/go v0.112.1
223.4 go: downloading github.com/googleapis/gax-go/v2 v2.12.4
224.3 go: downloading github.com/googleapis/gax-go v2.0.0+incompatible
224.4 go: downloading google.golang.org/api v0.180.0
232.7 go: downloading github.com/google/btree v1.1.2
233.6 go: downloading github.com/cockroachdb/apd v1.1.0
233.7 go: downloading github.com/gofrs/uuid v4.0.0+incompatible
234.4 go: downloading github.com/zeebo/pcg v1.0.1
235.4 go: downloading github.com/chzyer/logex v1.2.1
235.4 go: downloading github.com/aws/aws-sdk-go-v2/credentials v1.17.13
235.7 go: downloading github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1
236.4 go: downloading github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0
237.4 go: downloading github.com/aws/aws-sdk-go-v2/service/sso v1.20.6
238.3 go: downloading github.com/aws/aws-sdk-go-v2/service/ssooidc v1.24.0
238.5 go: downloading github.com/aws/aws-sdk-go-v2/service/sts v1.28.7
239.5 go: downloading github.com/aws/smithy-go v1.20.2
240.1 go: downloading github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5
240.5 go: downloading cloud.google.com/go/iam v1.1.8
241.4 go: downloading cloud.google.com/go/longrunning v0.5.7
242.0 go: downloading cloud.google.com/go/auth v0.4.1
242.9 go: downloading golang.org/x/oauth2 v0.24.0
243.3 go: downloading github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65
244.0 go: downloading github.com/lib/pq v1.10.9
245.0 go: downloading github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2
245.3 go: downloading github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7
245.9 go: downloading github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5
246.2 go: downloading cloud.google.com/go/auth/oauth2adapt v0.2.2
247.1 go: downloading cloud.google.com/go/compute/metadata v0.5.0
248.5 go: downloading cloud.google.com/go/compute v1.23.3
249.4 go: downloading go.opencensus.io v0.24.0
250.2 go: downloading go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0
250.7 go: downloading github.com/google/s2a-go v0.1.7
251.2 go: downloading github.com/OneOfOne/xxhash v1.2.2
251.2 go: downloading github.com/spaolacci/murmur3 v1.1.0
251.3 go: downloading github.com/googleapis/enterprise-certificate-proxy v0.3.2
251.9 go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
252.4 2025/05/16 20:30:41 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /usr/bin/caddy -ldflags -w -s -trimpath -tags nobadger,nomysql,nopgx
309.6 # github.com/libdns/cloudns
309.6 /go/pkg/mod/github.com/libdns/cloudns@v1.0.0/client.go:55:29: invalid composite literal type libdns.Record
309.6 /go/pkg/mod/github.com/libdns/cloudns@v1.0.0/client.go:74:13: record.ID undefined (type libdns.Record has no field or method ID)
309.6 /go/pkg/mod/github.com/libdns/cloudns@v1.0.0/client.go:115:10: invalid composite literal type libdns.Record
309.6 /go/pkg/mod/github.com/libdns/cloudns@v1.0.0/client.go:160:10: invalid composite literal type libdns.Record
309.6 /go/pkg/mod/github.com/libdns/cloudns@v1.0.0/client.go:162:25: existingRecord.Type undefined (type *libdns.Record is pointer to interface, not interface)
309.6 /go/pkg/mod/github.com/libdns/cloudns@v1.0.0/provider.go:38:90: record.Type undefined (type libdns.Record has no field or method Type)
309.6 /go/pkg/mod/github.com/libdns/cloudns@v1.0.0/provider.go:38:103: record.Name undefined (type libdns.Record has no field or method Name)
309.6 /go/pkg/mod/github.com/libdns/cloudns@v1.0.0/provider.go:38:116: record.Value undefined (type libdns.Record has no field or method Value)
309.6 /go/pkg/mod/github.com/libdns/cloudns@v1.0.0/provider.go:38:130: record.TTL undefined (type libdns.Record has no field or method TTL)
309.6 /go/pkg/mod/github.com/libdns/cloudns@v1.0.0/provider.go:55:17: record.ID undefined (type libdns.Record has no field or method ID)
309.6 /go/pkg/mod/github.com/libdns/cloudns@v1.0.0/provider.go:55:17: too many errors
369.0 2025/05/16 20:32:37 [INFO] Skipping cleanup as requested; leaving folder intact: /tmp/buildenv_2025-05-16-2026.867705342
369.0 2025/05/16 20:32:37 [FATAL] exit status 1
failed to solve: process "/bin/sh -c xcaddy build --with github.com/caddy-dns/${CADDY_DNS_PLUGIN}" did not complete successfully: exit code: 1
You seem to be facing the same xcaddy
build issue as another user of Caddy and CloudNS: does not work with caddy v2.10.0 · Issue #1 · caddy-dns/cloudns · GitHub