Skip to content

Repository files navigation

cert-manager-webhook-binarylane

cert-manager ACME DNS01 solver webhook for BinaryLane DNS.

Prerequisites

  • Kubernetes 1.28+
  • cert-manager 1.14+ installed
  • BinaryLane API token

Installation

# Create secret with BinaryLane API token
kubectl create secret generic binarylane-api-credentials \
  --from-literal=api-key=YOUR_BINARYLANE_API_TOKEN \
  -n cert-manager

# Install the webhook
helm repo add cert-manager-webhook-binarylane https://drachemann.github.io/cert-manager-webhook-binarylane
helm install cert-manager-webhook-binarylane cert-manager-webhook-binarylane/cert-manager-webhook-binarylane \
  --namespace cert-manager

Usage

Create a ClusterIssuer:

apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-binarylane
spec:
  acme:
    email: you@example.com
    server: https://acme-v02.api.letsencrypt.org/directory
    privateKeySecretRef:
      name: letsencrypt-binarylane-account-key
    solvers:
    - dns01:
        webhook:
          groupName: acme.binarylane.com
          solverName: binarylane
          config:
            apiKeySecretRef:
              name: binarylane-api-credentials
              key: api-key

Request a certificate:

apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: example-com
spec:
  secretName: example-com-tls
  dnsNames:
  - example.com
  - '*.example.com'
  issuerRef:
    name: letsencrypt-binarylane
    kind: ClusterIssuer

Development

go mod download
go build ./...
go test ./...

License

MIT

About

cert-manager webhook for ACME DNS01 verification using BinaryLane's API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages