Provider implements a distributed STEK provider. This module will obtain STEKs from a storage module instead of generating STEKs internally. This allows STEKs to be coordinated, improving TLS session resumption in a cluster.
| 48 | // of generating STEKs internally. This allows STEKs to be |
| 49 | // coordinated, improving TLS session resumption in a cluster. |
| 50 | type Provider struct { |
| 51 | // The storage module wherein to store and obtain session |
| 52 | // ticket keys. If unset, Caddy's default/global-configured |
| 53 | // storage module will be used. |
| 54 | Storage json.RawMessage `json:"storage,omitempty" caddy:"namespace=caddy.storage inline_key=module"` |
| 55 | |
| 56 | storage certmagic.Storage |
| 57 | stekConfig *caddytls.SessionTicketService |
| 58 | timer *time.Timer |
| 59 | ctx caddy.Context |
| 60 | } |
| 61 | |
| 62 | // CaddyModule returns the Caddy module information. |
| 63 | func (Provider) CaddyModule() caddy.ModuleInfo { |
nothing calls this directly
no outgoing calls
no test coverage detected