diff --git a/CHANGELOG.md b/CHANGELOG.md index 14370b215..d3ad9e1f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,26 @@ +## [v2.4.11](https://github.com/traefik/traefik/tree/v2.4.11) (2021-07-15) +[All Commits](https://github.com/traefik/traefik/compare/v2.4.9...v2.4.11) + +**Bug fixes:** +- **[k8s,k8s/crd,k8s/ingress]** Disable ExternalName Services by default on Kubernetes providers ([#8261](https://github.com/traefik/traefik/pull/8261) by [dtomcej](https://github.com/dtomcej)) +- **[k8s,k8s/crd,k8s/ingress]** Fix: malformed Kubernetes resource names and references in tests ([#8226](https://github.com/traefik/traefik/pull/8226) by [rtribotte](https://github.com/rtribotte)) +- **[k8s,k8s/crd]** Disable Cross-Namespace by default for IngressRoute provider ([#8260](https://github.com/traefik/traefik/pull/8260) by [dtomcej](https://github.com/dtomcej)) +- **[logs,middleware]** Accesslog: support multiple values for a given header ([#8258](https://github.com/traefik/traefik/pull/8258) by [ldez](https://github.com/ldez)) +- **[logs]** Ignore http 1.0 request host missing errors ([#8252](https://github.com/traefik/traefik/pull/8252) by [dtomcej](https://github.com/dtomcej)) +- **[middleware]** Headers Middleware: support http.CloseNotifier interface ([#8238](https://github.com/traefik/traefik/pull/8238) by [dtomcej](https://github.com/dtomcej)) +- **[tls]** Detect certificates content modifications ([#8243](https://github.com/traefik/traefik/pull/8243) by [jbdoumenjou](https://github.com/jbdoumenjou)) + +**Documentation:** +- **[middleware,k8s]** Fix invalid subdomain ([#8212](https://github.com/traefik/traefik/pull/8212) by [WLun001](https://github.com/WLun001)) +- Add the list of available provider names ([#8225](https://github.com/traefik/traefik/pull/8225) by [WLun001](https://github.com/WLun001)) +- Fix maintainers-guidelines page title ([#8216](https://github.com/traefik/traefik/pull/8216) by [kubopanda](https://github.com/kubopanda)) +- Typos in contributing section ([#8215](https://github.com/traefik/traefik/pull/8215) by [kubopanda](https://github.com/kubopanda)) + +## [v2.4.10](https://github.com/traefik/traefik/tree/v2.4.10) (2021-07-13) +[All Commits](https://github.com/traefik/traefik/compare/v2.4.9...v2.4.10) + +Release canceled. + ## [v2.5.0-rc2](https://github.com/traefik/traefik/tree/v2.5.0-rc2) (2021-06-28) [All Commits](https://github.com/traefik/traefik/compare/v2.4.0-rc1...v2.5.0-rc2) diff --git a/docs/scripts/verify.sh b/docs/scripts/verify.sh index 8dd7c3cfb..03ddaefea 100755 --- a/docs/scripts/verify.sh +++ b/docs/scripts/verify.sh @@ -22,7 +22,7 @@ find "${PATH_TO_SITE}" -type f -not -path "/app/site/theme/*" \ --alt_ignore="/traefikproxy-vertical-logo-color.svg/" \ --http_status_ignore="0,500,501,503" \ --file_ignore="/404.html/" \ - --url_ignore="/https://groups.google.com/a/traefik.io/forum/#!forum/security/,/localhost:/,/127.0.0.1:/,/fonts.gstatic.com/,/.minikube/,/github.com\/traefik\/traefik\/*edit*/,/github.com\/traefik\/traefik/,/doc.traefik.io/,/github\.com\/golang\/oauth2\/blob\/36a7019397c4c86cf59eeab3bc0d188bac444277\/.+/,/www.akamai.com/,/pilot.traefik.io\/profile/,/traefik.io/,/doc.traefik.io\/traefik-mesh/,/www.mkdocs.org/,/squidfunk.github.io/,/ietf.org/,/www.namesilo.com/,/www.youtube.com/,/www.linode.com/" \ + --url_ignore="/https://groups.google.com/a/traefik.io/forum/#!forum/security/,/localhost:/,/127.0.0.1:/,/fonts.gstatic.com/,/.minikube/,/github.com\/traefik\/traefik\/*edit*/,/github.com\/traefik\/traefik/,/doc.traefik.io/,/github\.com\/golang\/oauth2\/blob\/36a7019397c4c86cf59eeab3bc0d188bac444277\/.+/,/www.akamai.com/,/pilot.traefik.io\/profile/,/traefik.io/,/doc.traefik.io\/traefik-mesh/,/www.mkdocs.org/,/squidfunk.github.io/,/ietf.org/,/www.namesilo.com/,/www.youtube.com/,/www.linode.com/,/www.alibabacloud.com/" \ '{}' 1>/dev/null ## HTML-proofer options at https://github.com/gjtorikian/html-proofer#configuration diff --git a/pkg/provider/file/file.go b/pkg/provider/file/file.go index 4be512da2..08ee0896d 100644 --- a/pkg/provider/file/file.go +++ b/pkg/provider/file/file.go @@ -191,6 +191,10 @@ func (p *Provider) loadFileConfig(ctx context.Context, filename string, parseTem // TLS stores if len(configuration.TLS.Stores) > 0 { for name, store := range configuration.TLS.Stores { + if store.DefaultCertificate == nil { + continue + } + content, err := store.DefaultCertificate.CertFile.Read() if err != nil { log.FromContext(ctx).Error(err) diff --git a/pkg/provider/file/file_test.go b/pkg/provider/file/file_test.go index 23d820891..76fb49282 100644 --- a/pkg/provider/file/file_test.go +++ b/pkg/provider/file/file_test.go @@ -262,6 +262,13 @@ func getTestCases() []ProvideTestCase { expectedNumRouter: 20, expectedNumService: 20, }, + { + desc: "simple file with empty store yaml", + filePath: "./fixtures/yaml/simple_empty_store.yml", + expectedNumRouter: 0, + expectedNumService: 0, + expectedNumTLSConf: 0, + }, } } diff --git a/pkg/provider/file/fixtures/yaml/simple_empty_store.yml b/pkg/provider/file/fixtures/yaml/simple_empty_store.yml new file mode 100644 index 000000000..b9c8e3242 --- /dev/null +++ b/pkg/provider/file/fixtures/yaml/simple_empty_store.yml @@ -0,0 +1,3 @@ +tls: + stores: + default: {} diff --git a/script/gcg/traefik-bugfix.toml b/script/gcg/traefik-bugfix.toml index 8d51a360c..4d1cc91d3 100644 --- a/script/gcg/traefik-bugfix.toml +++ b/script/gcg/traefik-bugfix.toml @@ -4,11 +4,11 @@ RepositoryName = "traefik" OutputType = "file" FileName = "traefik_changelog.md" -# example new bugfix v2.4.9 +# example new bugfix v2.4.11 CurrentRef = "v2.4" -PreviousRef = "v2.4.8" +PreviousRef = "v2.4.9" BaseBranch = "v2.4" -FutureCurrentRefName = "v2.4.9" +FutureCurrentRefName = "v2.4.11" ThresholdPreviousRef = 10 ThresholdCurrentRef = 10