mirror of
https://github.com/caddyserver/caddy.git
synced 2026-11-17 13:29:35 +00:00
* caddytls: keep ACME issuer network proxy across re-provisioning
LoadModule clears NetworkProxyRaw, so when the HTTP app provisions an
ACME issuer a second time (fillInACMEIssuer), the rebuilt template has
no HTTPProxy. Since #7510 that template is used via SetConfig, and ACME
requests bypass the configured proxy.
Keep the loaded proxy func on the issuer, like the DNS solver.
Fixes #8283
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 2366825f2380383dacd8adeb1508e34c3e25634d)
* caddytls: test that ACME requests use the proxy after RebuildCertMagic
Replace the provision-twice check with a regression for the path the
HTTP app takes: Provision, re-provision in fillInACMEIssuer, then
RebuildCertMagic. The test issues against a local proxy and asserts the
ACME request goes through it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: k4lleanka <257361691+k4lleanka@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| distributedstek | ||
| standardstek | ||
| acmeissuer.go | ||
| acmeissuer_test.go | ||
| automation.go | ||
| automation_test.go | ||
| capools.go | ||
| capools_test.go | ||
| certmanagers.go | ||
| certselection.go | ||
| connpolicy.go | ||
| connpolicy_test.go | ||
| connpolicy_verifyconnection_test.go | ||
| ech.go | ||
| ech_dns_test.go | ||
| fileloader.go | ||
| folderloader.go | ||
| internalissuer.go | ||
| internalissuer_test.go | ||
| leaffileloader.go | ||
| leaffileloader_test.go | ||
| leaffolderloader.go | ||
| leaffolderloader_test.go | ||
| leafpemloader.go | ||
| leafpemloader_test.go | ||
| leafstorageloader.go | ||
| matchers.go | ||
| matchers_test.go | ||
| ondemand.go | ||
| pemloader.go | ||
| sessiontickets.go | ||
| storage_clean_test.go | ||
| storageloader.go | ||
| tls.go | ||
| tls_wildcard_test.go | ||
| values.go | ||
| zerosslissuer.go | ||