caddy/modules/caddyhttp
Matthew Holt d692d503a3
tls/http: Fix auto-HTTPS logic w/rt default issuers (fixes #3164)
The comments in the code should explain the new logic thoroughly.
The basic problem for the issue was that we were overriding a catch-all
automation policy's explicitly-configured issuer with our own, for names
that we thought looked like public names. In other words, one could
configure an internal issuer for all names, but then our auto HTTPS
would create a new policy for public-looking names that uses the
default ACME issuer, because we assume public<==>ACME and
nonpublic<==>Internal, but that is not always the case. The new logic
still assumes nonpublic<==>Internal (on catch-all policies only), but
no longer assumes that public-looking names always use an ACME issuer.

Also fix a bug where HTTPPort and HTTPSPort from the HTTP app weren't
being carried through to ACME issuers properly. It required a bit of
refactoring.
2020-03-20 20:25:46 -06:00
..
caddyauth basicauth: default hash to bcrypt (#3050) 2020-02-17 12:19:59 -07:00
encode Fix typos (#3087) 2020-02-27 19:30:48 -07:00
fileserver fileserver: Add --templates flag to file-server command 2020-03-14 23:31:52 -06:00
headers header: caddyfile: Defer header operations for deletions or manually 2020-02-04 11:05:32 -07:00
httpcache Refactor for CertMagic v0.10; prepare for PKI app 2020-03-06 23:15:25 -07:00
requestbody Improve godocs all around 2019-12-23 12:45:35 -07:00
reverseproxy reverseproxy: Add Alt-Svc to Hop-by-hop headers list (#3159) 2020-03-20 06:54:28 -06:00
rewrite httpcaddyfile: Unify strip_prefix, strip_suffix, uri_replace directives (#3157) 2020-03-19 11:51:28 -06:00
standard Remove Starlark, for now 2020-02-06 18:46:52 -07:00
templates templates: Enable Goldmark's footnote extension (closes #3136) 2020-03-18 23:38:37 -06:00
app.go caddyhttp: Clean up; move some code around 2020-03-15 21:28:42 -06:00
autohttps.go tls/http: Fix auto-HTTPS logic w/rt default issuers (fixes #3164) 2020-03-20 20:25:46 -06:00
caddyhttp.go caddyhttp: Clean up; move some code around 2020-03-15 21:28:42 -06:00
celmatcher.go go.mod: Update some deps; add new Strings lib to CEL matcher 2020-03-20 08:53:40 -06:00
errors.go http: Change routes to sequential matcher evaluation (#2967) 2020-01-09 10:00:13 -07:00
marshalers.go http: Fix ciphersuite logging 2020-01-16 15:44:49 -06:00
matchers.go caddyhttp: Implement CEL matcher (see #3051) (#3155) 2020-03-19 15:46:22 -06:00
matchers_test.go caddyhttp: Support path matcher of "*" without panic 2020-03-16 16:08:33 -06:00
replacer.go Refactor for CertMagic v0.10; prepare for PKI app 2020-03-06 23:15:25 -07:00
replacer_test.go Refactor for CertMagic v0.10; prepare for PKI app 2020-03-06 23:15:25 -07:00
responsewriter.go http: Always set status code via response recorder 2020-01-08 18:37:41 -07:00
routes.go httpcaddyfile: Fix nested blocks; add handle directive; refactor 2020-01-16 17:08:52 -07:00
server.go caddyhttp: Add support for listener wrapper modules 2020-03-15 21:26:17 -06:00
staticerror.go Export Replacer and use concrete type instead of interface 2019-12-29 13:12:52 -07:00
staticresp.go httpcaddyfile: Update directive docs; put root after rewrite 2020-01-22 09:32:38 -07:00
staticresp_test.go Implement config adapters and beginning of Caddyfile adapter 2019-08-09 12:05:47 -06:00
subroute.go http: Fix subroutes, ensure that next handlers can still be called 2020-01-12 13:39:32 -07:00
vars.go v2: Implement RegExp Vars Matcher (#2997) 2020-02-08 12:26:31 -07:00