"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/provider/acme/provider.go" between
traefik-v2.3.2.src.tar.gz and traefik-v2.3.3.src.tar.gz

About: Traefik is a cloud native edge router, a reverse proxy and load balancer for HTTP and TCP-based applications.

provider.go  (traefik-v2.3.2.src):provider.go  (traefik-v2.3.3.src)
skipping to change at line 38 skipping to change at line 38
"github.com/traefik/traefik/v2/pkg/version" "github.com/traefik/traefik/v2/pkg/version"
) )
// oscpMustStaple enables OSCP stapling as from https://github.com/go-acme/lego/ issues/270. // oscpMustStaple enables OSCP stapling as from https://github.com/go-acme/lego/ issues/270.
var oscpMustStaple = false var oscpMustStaple = false
// Configuration holds ACME configuration provided by users. // Configuration holds ACME configuration provided by users.
type Configuration struct { type Configuration struct {
Email string `description:"Email address used for regist ration." json:"email,omitempty" toml:"email,omitempty" yaml:"email,omitempty"` Email string `description:"Email address used for regist ration." json:"email,omitempty" toml:"email,omitempty" yaml:"email,omitempty"`
CAServer string `description:"CA server to use." json:"caSe rver,omitempty" toml:"caServer,omitempty" yaml:"caServer,omitempty"` CAServer string `description:"CA server to use." json:"caSe rver,omitempty" toml:"caServer,omitempty" yaml:"caServer,omitempty"`
PreferredChain string `description:"Preferred chain to use." json PreferredChain string `description:"Preferred chain to use." json
:"preferredChain,omitempty" toml:"preferredChain,omitempty" yaml:"preferredChain :"preferredChain,omitempty" toml:"preferredChain,omitempty" yaml:"preferredChain
,omitempty"` ,omitempty" export:"true"`
Storage string `description:"Storage to use." json:"storag Storage string `description:"Storage to use." json:"storag
e,omitempty" toml:"storage,omitempty" yaml:"storage,omitempty"` e,omitempty" toml:"storage,omitempty" yaml:"storage,omitempty" export:"true"`
KeyType string `description:"KeyType used for generating c KeyType string `description:"KeyType used for generating c
ertificate private key. Allow value 'EC256', 'EC384', 'RSA2048', 'RSA4096', 'RSA ertificate private key. Allow value 'EC256', 'EC384', 'RSA2048', 'RSA4096', 'RSA
8192'." json:"keyType,omitempty" toml:"keyType,omitempty" yaml:"keyType,omitempt 8192'." json:"keyType,omitempty" toml:"keyType,omitempty" yaml:"keyType,omitempt
y"` y" export:"true"`
DNSChallenge *DNSChallenge `description:"Activate DNS-01 Challenge." j DNSChallenge *DNSChallenge `description:"Activate DNS-01 Challenge." j
son:"dnsChallenge,omitempty" toml:"dnsChallenge,omitempty" yaml:"dnsChallenge,om son:"dnsChallenge,omitempty" toml:"dnsChallenge,omitempty" yaml:"dnsChallenge,om
itempty" label:"allowEmpty" file:"allowEmpty"` itempty" label:"allowEmpty" file:"allowEmpty" export:"true"`
HTTPChallenge *HTTPChallenge `description:"Activate HTTP-01 Challenge." HTTPChallenge *HTTPChallenge `description:"Activate HTTP-01 Challenge."
json:"httpChallenge,omitempty" toml:"httpChallenge,omitempty" yaml:"httpChalleng json:"httpChallenge,omitempty" toml:"httpChallenge,omitempty" yaml:"httpChalleng
e,omitempty" label:"allowEmpty" file:"allowEmpty"` e,omitempty" label:"allowEmpty" file:"allowEmpty" export:"true"`
TLSChallenge *TLSChallenge `description:"Activate TLS-ALPN-01 Challeng TLSChallenge *TLSChallenge `description:"Activate TLS-ALPN-01 Challeng
e." json:"tlsChallenge,omitempty" toml:"tlsChallenge,omitempty" yaml:"tlsChallen e." json:"tlsChallenge,omitempty" toml:"tlsChallenge,omitempty" yaml:"tlsChallen
ge,omitempty" label:"allowEmpty" file:"allowEmpty"` ge,omitempty" label:"allowEmpty" file:"allowEmpty" export:"true"`
} }
// SetDefaults sets the default values. // SetDefaults sets the default values.
func (a *Configuration) SetDefaults() { func (a *Configuration) SetDefaults() {
a.CAServer = lego.LEDirectoryProduction a.CAServer = lego.LEDirectoryProduction
a.Storage = "acme.json" a.Storage = "acme.json"
a.KeyType = "RSA4096" a.KeyType = "RSA4096"
} }
// CertAndStore allows mapping a TLS certificate to a TLS store. // CertAndStore allows mapping a TLS certificate to a TLS store.
skipping to change at line 68 skipping to change at line 68
// Certificate is a struct which contains all data needed from an ACME certifica te. // Certificate is a struct which contains all data needed from an ACME certifica te.
type Certificate struct { type Certificate struct {
Domain types.Domain `json:"domain,omitempty" toml:"domain,omitempty" yaml:"domain,omitempty"` Domain types.Domain `json:"domain,omitempty" toml:"domain,omitempty" yaml:"domain,omitempty"`
Certificate []byte `json:"certificate,omitempty" toml:"certificate, omitempty" yaml:"certificate,omitempty"` Certificate []byte `json:"certificate,omitempty" toml:"certificate, omitempty" yaml:"certificate,omitempty"`
Key []byte `json:"key,omitempty" toml:"key,omitempty" yaml: "key,omitempty"` Key []byte `json:"key,omitempty" toml:"key,omitempty" yaml: "key,omitempty"`
} }
// DNSChallenge contains DNS challenge Configuration. // DNSChallenge contains DNS challenge Configuration.
type DNSChallenge struct { type DNSChallenge struct {
Provider string `description:"Use a DNS-01 based Provider string `description:"Use a DNS-01 based
challenge provider rather than HTTPS." json:"provider,omitempty" toml:"provider, challenge provider rather than HTTPS." json:"provider,omitempty" toml:"provider,
omitempty" yaml:"provider,omitempty"` omitempty" yaml:"provider,omitempty" export:"true"`
DelayBeforeCheck ptypes.Duration `description:"Assume DNS propagat DelayBeforeCheck ptypes.Duration `description:"Assume DNS propagat
es after a delay in seconds rather than finding and querying nameservers." json: es after a delay in seconds rather than finding and querying nameservers." json:
"delayBeforeCheck,omitempty" toml:"delayBeforeCheck,omitempty" yaml:"delayBefore "delayBeforeCheck,omitempty" toml:"delayBeforeCheck,omitempty" yaml:"delayBefore
Check,omitempty"` Check,omitempty" export:"true"`
Resolvers []string `description:"Use following DNS s ervers to resolve the FQDN authority." json:"resolvers,omitempty" toml:"resolver s,omitempty" yaml:"resolvers,omitempty"` Resolvers []string `description:"Use following DNS s ervers to resolve the FQDN authority." json:"resolvers,omitempty" toml:"resolver s,omitempty" yaml:"resolvers,omitempty"`
DisablePropagationCheck bool `description:"Disable the DNS pro pagation checks before notifying ACME that the DNS challenge is ready. [not reco mmended]" json:"disablePropagationCheck,omitempty" toml:"disablePropagationCheck ,omitempty" yaml:"disablePropagationCheck,omitempty"` DisablePropagationCheck bool `description:"Disable the DNS pro pagation checks before notifying ACME that the DNS challenge is ready. [not reco mmended]" json:"disablePropagationCheck,omitempty" toml:"disablePropagationCheck ,omitempty" yaml:"disablePropagationCheck,omitempty" export:"true"`
} }
// HTTPChallenge contains HTTP challenge Configuration. // HTTPChallenge contains HTTP challenge Configuration.
type HTTPChallenge struct { type HTTPChallenge struct {
EntryPoint string `description:"HTTP challenge EntryPoint" json:"entryPoi nt,omitempty" toml:"entryPoint,omitempty" yaml:"entryPoint,omitempty"` EntryPoint string `description:"HTTP challenge EntryPoint" json:"entryPoi nt,omitempty" toml:"entryPoint,omitempty" yaml:"entryPoint,omitempty" export:"t rue"`
} }
// TLSChallenge contains TLS challenge Configuration. // TLSChallenge contains TLS challenge Configuration.
type TLSChallenge struct{} type TLSChallenge struct{}
// Provider holds configurations of the provider. // Provider holds configurations of the provider.
type Provider struct { type Provider struct {
*Configuration *Configuration
ResolverName string ResolverName string
Store Store `json:"store,omitempty" toml:"store,omitempt y" yaml:"store,omitempty"` Store Store `json:"store,omitempty" toml:"store,omitempt y" yaml:"store,omitempty"`
 End of changes. 4 change blocks. 
27 lines changed or deleted 27 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)