feat: support manually managed cert issuers on k3s

The `cert-issuer-name` and `cert-issuer-kind` properties point an app's generated `Certificate` at a cert-manager issuer created outside of Dokku, allowing certificates to be issued through solvers the built-in letsencrypt integration cannot use, such as `dns01` for wildcard certificates. Setting an issuer enables https on its own, as a manually managed issuer has no email for Dokku to configure. An imported certificate still takes precedence, and `letsencrypt-server false` remains the single off switch. Dokku warns before a build starts when the referenced issuer is absent from the cluster, without blocking the deploy. Wildcard domains no longer collide with their apex domain when generating ingress names, and `letsencrypt-server` values are now validated when set rather than at deploy time.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-08-08 15:16:12 -04:00
1 parent 2da48f4f86
commit d134e75371
14 files changed
+980 -42

No files matched your search

+19
View File
@@ -18,6 +18,8 @@ import (
var (
// DefaultProperties is a map of all valid k3s properties with corresponding default property values
DefaultProperties = map[string]string{
"cert-issuer-kind": "",
"cert-issuer-name": "",
"deploy-timeout": "",
"letsencrypt-email-prod": "",
"letsencrypt-email-stag": "",
@@ -31,6 +33,8 @@ var (
// GlobalProperties is a map of all valid global k3s properties
GlobalProperties = map[string]bool{
"cert-issuer-kind": true,
"cert-issuer-name": true,
"deploy-timeout": true,
"image-pull-secrets": true,
"ingress-class": true,
@@ -58,6 +62,21 @@ const TriggerAuthPropertyPrefix = "trigger-auth."
const LetsencryptServerProd = "https://acme-v02.api.letsencrypt.org/directory"
const LetsencryptServerStag = "https://acme-staging-v02.api.letsencrypt.org/directory"
// CertIssuerKindIssuer is the namespaced cert-manager issuer kind
const CertIssuerKindIssuer = "Issuer"
// CertIssuerKindClusterIssuer is the cluster-scoped cert-manager issuer kind, and
// the default kind used when an app references a manually managed issuer
const CertIssuerKindClusterIssuer = "ClusterIssuer"
// CertIssuerNameDisabled is the reserved cert-issuer-name value that opts a single
// app out of a globally configured manually managed issuer
const CertIssuerNameDisabled = "false"
// LetsencryptServerDisabled is the letsencrypt-server value that disables all
// automatic certificate issuance for an app
const LetsencryptServerDisabled = "false"
// AnnotationResourceTypes lists the kubernetes resource types that scheduler-k3s
// supports user-provided annotations for. The order here is also the iteration order
// used when rendering reports.