Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
caddytls: Remove "IssuerRaw" field
Has been deprecated and printing warnings for about 8 months now. Replaced by "IssuersRaw" field in v2.3.0.
Matthew Holt committed
Jun 25, 2021 at 11:29 UTC
81e5318021dea884ab1cc92eb47a2a24585e3c5f
1 file changed
-10
modules/caddytls/automation.go
-10
@@ -89,10 +89,6 @@ type AutomationPolicy struct {
89
// zerossl.
90
IssuersRaw []json.RawMessage `json:"issuers,omitempty" caddy:"namespace=tls.issuance inline_key=module"`
91
92
- // DEPRECATED: Use `issuers` instead (November 2020). This field will
93
- // be removed in the future.
94
- IssuerRaw json.RawMessage `json:"issuer,omitempty" caddy:"namespace=tls.issuance inline_key=module"`
95
-
92
// If true, certificates will be requested with MustStaple. Not all
93
// CAs support this, and there are potentially serious consequences
94
// of enabling this feature without proper threat modeling.
@@ -180,12 +176,6 @@ func (ap *AutomationPolicy) Provision(tlsApp *TLS) error {
176
}
177
}
178
183
- // TODO: IssuerRaw field deprecated as of November 2020 - remove this shim after deprecation is complete
184
- if ap.IssuerRaw != nil {
185
- tlsApp.logger.Warn("the 'issuer' field is deprecated and will be removed in the future; use 'issuers' instead; your issuer has been appended automatically for now")
186
- ap.IssuersRaw = append(ap.IssuersRaw, ap.IssuerRaw)
187
- }
188
-
179
// load and provision any explicitly-configured issuer modules
180
if ap.IssuersRaw != nil {
181
val, err := tlsApp.ctx.LoadModule(ap, "IssuersRaw")