caddy/modules/caddyhttp
Matt Holt 57a708d189
caddytls: Support external certificate Managers (like Tailscale) (#4541)
Huge thank-you to Tailscale (https://tailscale.com) for making this change possible!
This is a great feature for Caddy and Tailscale is a great fit for a standard implementation.

* caddytls: GetCertificate modules; Tailscale

* Caddyfile support for get_certificate

Also fix AP provisioning in case of empty subject list (persist loaded
module on struct, much like Issuers, to surive reprovisioning).

And implement start of HTTP cert getter, still WIP.

* Update modules/caddytls/automation.go

Co-authored-by: Francis Lavoie <lavofr@gmail.com>

* Use tsclient package, check status for name

* Implement HTTP cert getter

And use reuse CertMagic's PEM functions for private keys.

* Remove cache option from Tailscale getter

Tailscale does its own caching and we don't need the added complexity...
for now, at least.

* Several updates

- Option to disable cert automation in auto HTTPS
- Support multiple cert managers
- Remove cache feature from cert manager modules
- Minor improvements to auto HTTPS logging

* Run go mod tidy

* Try to get certificates from Tailscale implicitly

Only for domains ending in .ts.net.

I think this is really cool!

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
2022-02-17 15:40:34 -07:00
..
caddyauth
encode encode: ignore flushing until after first write (#4318) 2021-08-31 13:36:36 -06:00
fileserver fileserver: do not double-escape paths (#4447) 2021-12-11 09:26:21 -05:00
headers headers: Fix `+` in Caddyfile to properly append rather than set (#4506) 2022-01-04 10:10:11 -07:00
map map: Fix 95c03506 (avoid repeated expansions) 2021-10-19 12:25:36 -06:00
push caddyhttp: Make logging of credential headers opt-in (#4438) 2021-12-02 13:26:24 -07:00
requestbody
reverseproxy reverseproxy: Avoid returning a `nil` error during GetClientCertificate (#4550) 2022-02-01 23:33:36 -07:00
rewrite rewrite: Add `method` Caddyfile directive (#4528) 2022-01-18 12:17:35 -07:00
standard
templates templates: Elaborate on what's supported by the markdown function (#4564) 2022-02-06 22:14:41 -07:00
app.go caddyhttp: Redirect HTTP requests on the HTTPS port to https:// (#4313) 2022-01-05 18:01:15 -07:00
autohttps.go caddytls: Support external certificate Managers (like Tailscale) (#4541) 2022-02-17 15:40:34 -07:00
caddyhttp.go fileserver: do not double-escape paths (#4447) 2021-12-11 09:26:21 -05:00
caddyhttp_test.go caddyhttp: Refactor and export SanitizedPathJoin for use in fastcgi (#4207) 2021-06-17 09:59:08 -06:00
celmatcher.go go.mod: Update direct dependencies 2021-06-03 12:18:25 -06:00
celmatcher_test.go
errors.go
httpredirectlistener.go caddyhttp: Redirect HTTP requests on the HTTPS port to https:// (#4313) 2022-01-05 18:01:15 -07:00
marshalers.go caddyhttp: Make logging of credential headers opt-in (#4438) 2021-12-02 13:26:24 -07:00
matchers.go caddyhttp: Fix `MatchPath` sanitizing (#4499) 2021-12-30 04:15:48 -05:00
matchers_test.go caddyhttp: Sanitize the path before evaluating path matchers (#4407) 2021-11-08 13:45:03 -07:00
metrics.go move common metrics-related funcs to internal package 2022-01-25 15:07:17 -05:00
metrics_test.go move common metrics-related funcs to internal package 2022-01-25 15:07:17 -05:00
replacer.go caddyhttp: Implement http.request.uuid placeholder (#4285) 2021-12-15 00:17:53 -07:00
replacer_test.go caddyfile: Fix `caddy fmt` nesting not decrementing (#4157) 2021-05-10 12:01:27 -06:00
responsematchers.go General minor improvements to docs 2021-09-24 18:31:01 -06:00
responsematchers_test.go
responsewriter.go
routes.go caddyhttp: Add support for triggering errors from `try_files` (#4346) 2021-09-17 00:52:32 -06:00
server.go caddyhttp: Reject absurd methods (#4538) 2022-01-19 13:44:09 -07:00
staticerror.go
staticresp.go
staticresp_test.go Move from deprecated ioutil to os and io packages (#4364) 2021-09-29 11:17:48 -06:00
subroute.go
vars.go caddyhttp: Enhance vars matcher (#4433) 2021-12-13 13:59:58 -07:00