0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/caddytls
Matthew Holt 8e75ae2495
Only consume HTTP challenge for names we are solving for (closes #549)
If another ACME client is trying to solve a challenge for a name not
being served by Caddy on the same machine where Caddy is running, the
HTTP challenge will be consumed by Caddy rather than allowing the owner
to use the Caddyfile to proxy the challenge.

With this change, we only consume requests for HTTP challenges for
hostnames that we recognize. Before doing the challenge, we add the
name to a set, and when seeing if we should proxy the challenge, we
first check the path of course to see if it is an HTTP challenge;
if it is, we then check that set to see if the hostname is in the
set. Only if it is, do we consume it.

Otherwise, the request is treated like any other, allowing the owner
to configure a proxy for such requests to another ACME client.
2016-08-10 22:13:06 -06:00
..
storagetest Pluggable TLS Storage (#913) 2016-07-08 07:32:31 -06:00
certificates.go Begin improved OCSP stapling by persisting staple to disk 2016-08-09 16:12:22 -06:00
certificates_test.go fix typo 2016-08-09 14:57:17 +09:00
client.go Only consume HTTP challenge for names we are solving for (closes #549) 2016-08-10 22:13:06 -06:00
client_test.go Rewrote Caddy from the ground up; initial commit of 0.9 branch 2016-06-04 17:00:29 -06:00
config.go Scope TLS max_certs to site config instead of global 2016-07-28 11:08:18 -06:00
config_test.go Set protocol version properly (fixes #943) 2016-07-19 11:48:44 -06:00
crypto.go Maintainence routine deletes old (expired) OCSP staple files 2016-08-09 16:46:51 -06:00
crypto_test.go tls: fix TestStandaloneTLSTicketKeyRotation data race 2016-08-02 15:28:12 +08:00
filestorage.go Pluggable TLS Storage (#913) 2016-07-08 07:32:31 -06:00
filestorage_test.go Pluggable TLS Storage (#913) 2016-07-08 07:32:31 -06:00
handshake.go Scope TLS max_certs to site config instead of global 2016-07-28 11:08:18 -06:00
handshake_test.go Rewrote Caddy from the ground up; initial commit of 0.9 branch 2016-06-04 17:00:29 -06:00
httphandler.go Only consume HTTP challenge for names we are solving for (closes #549) 2016-08-10 22:13:06 -06:00
httphandler_test.go Only consume HTTP challenge for names we are solving for (closes #549) 2016-08-10 22:13:06 -06:00
maintain.go Maintainence routine deletes old (expired) OCSP staple files 2016-08-09 16:46:51 -06:00
setup.go Allow just one TLS Protocol (Caddyfile) (#1004) 2016-08-06 15:00:54 -06:00
setup_test.go Allow just one TLS Protocol (Caddyfile) (#1004) 2016-08-06 15:00:54 -06:00
storage.go Update link to SA 1.1.1 (and other minor tweaks) 2016-07-28 11:11:14 -06:00
tls.go Propagate DNS provider plugins to caddy package so -plugins shows them 2016-07-15 21:29:06 -06:00
tls_test.go Pluggable TLS Storage (#913) 2016-07-08 07:32:31 -06:00
user.go Use Let's Encrypt's permalink to subscriber agreement 2016-08-06 14:42:00 -06:00
user_test.go Use P384 for TestUser (privateKey) (#1009) 2016-08-08 11:13:10 -06:00