cert-manager: github.com/jetstack/cert-manager/pkg/issuer/acme/dns/akamai Index | Files

package akamai

import "github.com/jetstack/cert-manager/pkg/issuer/acme/dns/akamai"

Package akamai implements a DNS provider for solving the DNS-01 challenge using Akamai FastDNS. See https://developer.akamai.com/api/luna/config-dns/overview.html


Package Files

akamai.go edgegridauth.go


const NoMaxBody = -1

type DNSProvider Uses

type DNSProvider struct {
    // contains filtered or unexported fields

DNSProvider is an implementation of the acme.ChallengeProvider interface

func NewDNSProvider Uses

func NewDNSProvider(serviceConsumerDomain, clientToken, clientSecret, accessToken string, dns01Nameservers []string) (*DNSProvider, error)

NewDNSProvider returns a DNSProvider instance configured for Akamai.

func (*DNSProvider) CleanUp Uses

func (a *DNSProvider) CleanUp(domain, fqdn, value string) error

CleanUp removes the TXT record matching the specified parameters

func (*DNSProvider) Present Uses

func (a *DNSProvider) Present(domain, fqdn, value string) error

Present creates a TXT record to fulfil the dns-01 challenge

type EdgeGridAuth Uses

type EdgeGridAuth struct {
    ClientToken   string
    ClientSecret  string
    AccessToken   string
    HeadersToSign []string
    MaxBody       int
    // contains filtered or unexported fields

EdgeGridAuth holds all values required to perform Akamai API Client Authentication. See https://developer.akamai.com/introduction/Client_Auth.html.

func NewEdgeGridAuth Uses

func NewEdgeGridAuth(clientToken, clientSecret, accessToken string, headersToSign ...string) *EdgeGridAuth

NewEdgeGridAuth returns a new request signer for Akamai EdgeGrid

func (*EdgeGridAuth) SignRequest Uses

func (e *EdgeGridAuth) SignRequest(req *http.Request) error

SignRequest calculates the signature for Akamai Open API and adds it as the Authorization header. The Authorization header starts with the signing algorithm moniker (name of the algorithm) used to sign the request. The moniker below identifies EdgeGrid V1, hash message authentication code, SHA–256 as the hash standard. This moniker is then followed by a space and an ordered list of name value pairs with each field separated by a semicolon.

Package akamai imports 19 packages (graph) and is imported by 3 packages. Updated 2020-08-12. Refresh now. Tools for package owners.