Documentation ¶
Overview ¶
Package httpreq implements cert-manager webhook as an HTTP request to an external server based on the lego httpreq solver https://go-acme.github.io/lego/dns/httpreq/
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChallengeBody ¶
ChallengeBody is the format for data sent to the remote server
type IssuerConfig ¶
type IssuerConfig struct { // Endpoint is the base URL of the remote server Endpoint string `json:"endpoint"` // PresentPath is the path for presenting a new challenge record. Defaults to "/present" PresentPath string `json:"presentPath"` // CleanupPAth is the path for deleting previous challenge records. Defaults to "/cleanup" CleanupPath string `json:"cleanupPath"` // HeaderSecretRef is a reference to a kubernetes Secret with HTTP headers to add to challenge requests HeaderSecretRef struct{ Name, Namespace string } `json:"headerSecretRef"` }
IssuerConfig is data set on the kubernetes webhook issuer to configure httpreq
func (IssuerConfig) GetURL ¶
func (ic IssuerConfig) GetURL(action acme.ChallengeAction) (string, error)
GetURL formats the endpoint URL for a given action
Click to show internal directories.
Click to hide internal directories.