httpreq

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

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

func New

func New() webhook.Solver

New creates an httpreq solver and returns it as a cert-manager webook Solver interface

Types

type ChallengeBody

type ChallengeBody struct {
	Fqdn  string `json:"fqdn"`
	Value string `json:"value"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL