Caddy v1.0.2 and v1.0.3 Released

UPDATE: Caddy v1.0.2 has a regression related to address parsing in the Caddyfile. v1.0.3 fixes it.

Caddy 1.0.2 is released, which uses Go 1.12.8 and patches the HTTP/2 DoS vulnerabilities published today.

One minor breaking change in Go 1.12.8 might affect some configurations that use service name in the port of their Caddyfiles, like so: example.com:https - we’ve smoothed this over so the behavior of Caddy is the same but if you encounter any odd inconsistencies, switch to using numeric ports or proper URL scheme: either https://example.com (recommended) or example.com:443.

3 Likes

Maybe it’s only me but i can’t build 1.0.3 (1.0.2 worked without problems):

$ make
cd caddy-src-v1.0.3 && git checkout --force --quiet v1.0.3
cd caddy-src-v1.0.3\
	&& git apply ../plugins.patch
cd caddy-src-v1.0.3 && go build -o ../caddy github.com/caddyserver/caddy/caddy
go: finding github.com/captncraig/caddy-realip latest
go: finding github.com/caddyserver/forwardproxy latest
go: finding github.com/miekg/caddy-prometheus latest
go: finding github.com/captncraig/cors latest
go: finding github.com/pquerna/cachecontrol/cacheobject latest
go: finding github.com/quasoft/memstore latest
go: finding github.com/pquerna/cachecontrol latest
go: finding gopkg.in/gomail.v2 latest
go: finding github.com/miolini/datacounter latest
go: finding golang.org/x/image/font latest
go: finding github.com/golang/freetype latest
go: finding github.com/golang/freetype/truetype latest
go: finding goji.io/middleware latest
go: finding goji.io/pat latest
go: finding golang.org/x/image latest
# github.com/mholt/caddy/caddytls
/home/alinz/.go/pkg/mod/github.com/mholt/caddy@v1.0.0/caddytls/setup.go:313:28: config.Manager.OnDemand.MaxObtain undefined (type *certmagic.OnDemandConfig has no field or method MaxObtain)
/home/alinz/.go/pkg/mod/github.com/mholt/caddy@v1.0.0/caddytls/setup.go:323:28: config.Manager.OnDemand.AskURL undefined (type *certmagic.OnDemandConfig has no field or method AskURL)
/home/alinz/.go/pkg/mod/github.com/mholt/caddy@v1.0.0/caddytls/setup.go:334:58: not enough arguments in call to config.Manager.CacheUnmanagedCertificatePEMFile
	have (string, string)
	want (string, string, []string)
/home/alinz/.go/pkg/mod/github.com/mholt/caddy@v1.0.0/caddytls/setup.go:361:52: not enough arguments in call to config.Manager.CacheUnmanagedTLSCertificate
	have (tls.Certificate)
	want (tls.Certificate, []string)
/home/alinz/.go/pkg/mod/github.com/mholt/caddy@v1.0.0/caddytls/setup.go:457:55: not enough arguments in call to cfg.Manager.CacheUnmanagedCertificatePEMBytes
	have ([]byte, []byte)
	want ([]byte, []byte, []string)
make: *** [Makefile:9: caddy] Error 2

github.com/mholt/caddy does not exist (anymore) so any plugin that was using that has to switch to github.com/caddyserver/caddy – I guarantee v1.0.3 builds, and that nothing in v1.0.3 broke your build; seems to be a module/3rd-party issue. Make sure you’re following the instructions here: https://github.com/caddyserver/caddy#build