Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Handle broken TLS conf better
Co-authored-by: Jean-Baptiste Doumenjou <925513+jbdoumenjou@users.noreply.github.com> Co-authored-by: Romain <rtribotte@users.noreply.github.com>
- Loading branch information
1 parent
778188e
commit 7e3fe48
Showing
11 changed files
with
402 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| [global] | ||
| checkNewVersion = false | ||
| sendAnonymousUsage = false | ||
|
|
||
| [log] | ||
| level = "DEBUG" | ||
|
|
||
| [entryPoints.websecure] | ||
| address = ":4443" | ||
|
|
||
| [api] | ||
| insecure = true | ||
|
|
||
| [providers.file] | ||
| filename = "{{ .SelfFilename }}" | ||
|
|
||
| ## dynamic configuration ## | ||
|
|
||
| [http.routers] | ||
|
|
||
| [http.routers.router1] | ||
| entryPoints = ["websecure"] | ||
| service = "service1" | ||
| rule = "Host(`snitest.com`)" | ||
| [http.routers.router1.tls] | ||
| options = "invalidTLSOptions" | ||
|
|
||
| [http.routers.router2] | ||
| entryPoints = ["websecure"] | ||
| service = "service1" | ||
| rule = "Host(`snitest.org`)" | ||
| [http.routers.router2.tls] | ||
|
|
||
| # fallback router | ||
| [http.routers.router3] | ||
| entryPoints = ["websecure"] | ||
| service = "service1" | ||
| rule = "Path(`/`)" | ||
| [http.routers.router3.tls] | ||
|
|
||
| [[http.services.service1.loadBalancer.servers]] | ||
| url = "http://127.0.0.1:9010" | ||
|
|
||
| [[tls.certificates]] | ||
| certFile = "fixtures/https/snitest.com.cert" | ||
| keyFile = "fixtures/https/snitest.com.key" | ||
|
|
||
| [[tls.certificates]] | ||
| certFile = "fixtures/https/snitest.org.cert" | ||
| keyFile = "fixtures/https/snitest.org.key" | ||
|
|
||
| [tls.options] | ||
|
|
||
| [tls.options.default.clientAuth] | ||
| # Missing caFile to have an invalid mTLS configuration. | ||
| clientAuthType = "RequireAndVerifyClientCert" | ||
|
|
||
| [tls.options.invalidTLSOptions.clientAuth] | ||
| # Missing caFile to have an invalid mTLS configuration. | ||
| clientAuthType = "RequireAndVerifyClientCert" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.