Certificates
An optional module. With it switched on, Salt is an ACME client that
obtains certificates for the zones it serves (for a zone, or for one host at
any depth inside a zone, with or without the wildcard below it) and for single hosts
whose DNS it does not serve (HTTP-01 through a proxy group), answers the
validation in its own zones or on its load balancers, watches the certificates and renews them in time,
and keeps them encrypted in S3-compatible storage. Without it
(SALT_DNS_CERTIFICATES unset) nothing changes: no table is touched, no page
is in the menu, the API answers 404.
What it does
Three kinds of certificate (the third is External hosts).
- For a zone (the default): exactly the zone and
*.zone(example.organd*.example.org). A wildcard covers one level:shop.example.orgyes,a.b.example.orgno. - Custom: you name one host and choose whether the wildcard below it
is included. The names are
hostalone, orhostand*.host. The host can be the zone apex or any name at any depth inside a zone your organisation owns (a.b.c.example.org). Internationalised names are accepted as Unicode; the A-label form (xn--...) is what is stored, ordered and put in the certificate, and both forms are shown. Nothing else is accepted: no list of arbitrary names, no wildcard without its host, no wildcard of a wildcard.
A custom certificate belongs to the most specific zone of the organisation that contains the host (if Salt hosts both
example.organdsub.example.org,x.sub.example.orgbelongs tosub.example.org). That zone must be active and delegated, as for a zone certificate. The console shows the resulting names, the zone and any warnings before the request.Refused (with the reason in words): a host that is not valid (a star, an underscore, an empty label); a host inside no zone of the organisation; a zone that is not verified; a host under a delegation (NS records at the host or at any name between it and the zone apex), because the challenge would be answered by other servers; a CNAME at
_acme-challenge.<host>; an exact duplicate of the name set of a live certificate of the organisation (so the zone certificate forexample.organd a custom certificate forexample.orgwith the wildcard are the same thing and only one can be live); more than the weekly budget (below).Warned about, not refused: a CNAME at the host itself (visitors get whatever it points to, which needs a certificate of its own), and CAA records at the host or at any name between the host and the zone apex. A provider reads the closest CAA record set, so Salt's own CAA records at the zone apex do not apply there: the warning names the record, and it must allow the provider (
issueandissuewild), or the provider will refuse to issue.- For a zone (the default): exactly the zone and
The DNS-01 challenge inside Salt. The challenge values go to
_acme-challenge.<host>(the host of the certificate; for a zone certificate that is the zone) through the same path the API uses (so they are audited, with the source Certificate manager, and reach Knot and the secondaries like any record). Both values of a host and wildcard pair are published at once, next to any TXT values already there. Salt then asks every nameserver the zone is delegated to (the NS records of the zone as the public DNS gives them at its parent, not the parent's own servers; IPv4 and IPv6 addresses, edges and secondaries included) until each answers authoritatively with all the values, and only then tells the provider to validate. An address family this host cannot reach is skipped; every nameserver needs at least one address that answers correctly. If the public DNS names no nameservers for the zone at all, the order fails at once withzone_not_delegated: a provider can never validate an undelegated zone, so add the NS records at the parent or registrar first. This is checked before an order is started at the provider, so an undelegated zone never creates an order there. When the wait times out, the event names each nameserver by host name and address and what it returned (no answer, not authoritative, values missing). The records are removed afterwards, also when the order fails or the job dies (the next run cleans up).Several certificates on one challenge name. The certificate for a zone and a custom certificate for its apex use the same name, and so can two orders. Publishing only adds its values to what is there, and unpublishing removes only its own values, under the zone's lock so that two jobs cannot lose each other's values. If two orders hold the very same value (a provider may hand out one pending authorisation twice), it stays until the last of them is done with it. Other TXT values at the name are never touched.
Watching and renewing. One light process per replica wakes every minute and when you ask for something; the work is an Oban job that is unique per certificate, so any number of replicas never run two orders for one certificate. Every step is stored first, so a restarted job continues the same order. A disabled certificate never starts or continues an order: disabling cancels the jobs that are waiting or scheduled, ends open orders and removes their challenge records, and a job that is running reads the certificate again before every step and stops; a failure that arrives afterwards does not turn the certificate back on.
Storage. Each version is one object in the store, encrypted by Salt with a key of its own. Postgres holds the facts (serial, validity, chain, status), never the private key.
CAA. Optionally Salt publishes CAA
issueandissuewildrecords naming the provider and its account, withvalidationmethods=dns-01, so no one else can obtain certificates for the zone even with stolen DNS access. Records that are already there stay; Salt removes only the ones it wrote, and keeps those another live certificate of the same zone still needs. When Salt publishes or changes the CAA records, the order waits (the same per-server check and the same timeout as the challenge) until every authoritative server answers with the new set before it goes on; when nothing changed there is nothing to wait for. The records are published at the zone apex; a closer CAA record set (see the warnings above) is not changed by Salt.Watching and renewing. One light process per replica wakes every minute and when you ask for something; the work is an Oban job that is unique per certificate, so any number of replicas never run two orders for one certificate. Every step is stored first, so a restarted job continues the same order.
Storage. Each version is one object in the store, encrypted by Salt with a key of its own. Postgres holds the facts (serial, validity, chain, status), never the private key.
CAA. Optionally Salt publishes CAA
issueandissuewildrecords naming the provider and its account, withvalidationmethods=dns-01, so no one else can obtain certificates for the zone even with stolen DNS access. Records that are already there stay; Salt removes only the ones it wrote.
External hosts: HTTP-01 through a proxy group
For a customer who keeps the DNS of their domain elsewhere and only points a name at
your load balancers. Salt cannot write a DNS record there, so it proves the host over
plain HTTP instead (the HTTP-01 challenge of RFC 8555), through a proxy group
(shaker.md).
Needs SALT_DNS_SHAKER=on as well.
What the customer does. One record at their own DNS host:
CNAME www.customer.example -> edge.example.org (a name of the proxy group)edge.example.org is an address name of the group (an extra address name, or a route
host in your zone, that Salt keeps the load balancers' addresses at). The console and
the API show the exact record for the group you choose. A bare domain cannot be a
CNAME: for customer.example itself the customer asks their DNS host for an ALIAS or
ANAME record to the same name, or creates A and AAAA records with the load balancers'
addresses (shown too). A host that already points at the load balancers needs nothing.
What you do, in this order.
- Switch on "Answer HTTP-01 challenges" in the settings of the proxy group and choose the provider it answers for (a provider of your own organisation).
- Add the route for the host to the group, as for any other host. The route must exist before the certificate is ordered: it is what ties the host to this group. A host that lies in no zone of Salt can be routed by one group only (first come; the refusal does not say who holds it), and the certificate is only ordered, and only renewed, for a host the group routes.
- Tell the customer the record to create (the console and the API show it).
- Wait until the host resolves to the load balancers (the console shows the result of the check).
- Request the certificate in the console (Certificates, "External host") or with
POST /api/v1/certificates(hostandproxy_group_id). It belongs to the organisation and to that group, which serves it without being told to. No address record is kept for the host.
The rules.
One host, no wildcard. HTTP-01 cannot prove a wildcard; a wildcard is refused with that reason.
The host must lie in no active zone of this installation. In a zone of the same organisation it is refused and you are sent to the normal certificate (DNS-01 needs no group). In a zone Salt serves for another organisation it is refused, and the message does not say whose zone it is. Zones that are not active do not count.
One provider per group, and it is your own. The group answers for one account, so an external certificate is ordered at that provider only (no fall back list). A group's provider cannot be deleted while the group uses it. The provider must belong to the group's organisation. A provider that belongs to no organisation (shared by the whole installation) is refused, because one account means one thumbprint for everybody: an organisation whose group serves a host that points at another organisation's load balancer could then obtain a certificate for it. The operator can allow it with
SALT_DNS_CERT_HTTP01_SHARED_PROVIDERS=on(default off); only do that when one operator organisation owns every group. One operator organisation with one group and one provider of its own, routing hosts for many customers, is the normal hosted case and needs no switch.Host names. At least two labels; not
localhost; not an IP address; no trailing dot; the usual length limits. Salt has no public suffix list (and none among its dependencies), so a name such asco.ukis not recognised as a suffix here; the provider refuses it.A customer's own HTTP-01 on port 80 behind the load balancers is not possible while the group setting is on: the load balancer answers
/.well-known/acme-challenge/itself, before routing, for every host. Use the DNS challenge for that, or a group that has the setting off.A host inside another organisation's zone cannot be routed. A route for a host inside an active zone of another organisation is refused ("is not available", without saying whose zone), because when that organisation later moves its DNS out of Salt the host would become external with two holders. A zone of a direct child organisation counts as the group's own (
parent_organisation_id): the group of a provider organisation may route the hosts of its customers' zones, exact or wildcard. One level only: not grandchildren, never the other direction (a child's group may not route the parent's zones), and siblings are strangers. This is about who may route and order for a host; which certificates the group serves is below. The rule has limits you should know:- Routes made before the rule, or before a zone became active, may break it. Nothing can
prevent the second kind: activating a zone takes the same database lock as every route
change (route changes share it, the activation holds it alone), so a route is never
checked against zones that are about to change, but a route that was already there when
the zone became active stays. Such routes are listed, not deleted:
SaltDns.Release.duplicate_outside_routes/0. Zones that are not active give no protection. - A wildcard route above another organisation's zone is allowed (
*.example.comwhile somebody else holdssub.example.com): the rule looks at the zone the wildcard's base lies in, andexample.comitself is in none. HAProxy's exact route forsub.example.comstill wins over the wildcard for that host.
Bulk replacements take the host locks in sorted order, so two overlapping replacements do not deadlock.
- Routes made before the rule, or before a zone became active, may break it. Nothing can
prevent the second kind: activating a zone takes the same database lock as every route
change (route changes share it, the activation holds it alone), so a route is never
checked against zones that are about to change, but a route that was already there when
the zone became active stays. Such routes are listed, not deleted:
A host can be reserved by routing it first. Routing is first come, so whoever routes a host outside your zones first holds it, and nobody else can route or order for it (the refusal does not say who holds it). The operator's remedy for a host held by mistake is to remove that route. The rule is serialised in the database (a lock on the host name for the length of the change), so two requests at the same moment cannot both win. Routes made before the rule existed may be duplicated: Salt refuses to order or renew for a host that another group routes as well, the migration prints such hosts when it runs, and
bin/salt_dns eval 'SaltDns.Release.duplicate_outside_routes'lists them at any time. The operator must resolve them by removing all but one route. Until then the certificate shows an eventroute_conflict(at most daily), and the operator gets a warning in the log and a telemetry event ([:salt_dns, :certificates, :route_conflict]).Activating a zone that covers an external host retires the certificates for it. When a zone that contains the host becomes active, the next order or renewal of every external certificate for that host, in any organisation, finds the host inside a zone and disables the certificate with the reason (an organisation that adds the zone to Salt is expected to use a normal certificate there).
The host must reach the load balancers on port 80, by the name, from the provider's validators: no firewall, no redirect to another host before the challenge path.
Before every order and every renewal Salt checks, in this order: the group still exists and is the organisation's; the group still has a route for the host; the host is still inside no active zone of any organisation; the group answers for this provider and the provider is allowed; the organisation is under its limit of failed orders (below); and the host points at the group's load balancers. It looks the host up (the lookup the Name servers page uses, with a time limit): every address the host resolves to must be one of the group's confirmed addresses, so a CNAME to a name of the group, or A and AAAA records that are some of the load balancers' addresses, pass. A CNAME is followed to its addresses, so the check reads where the name ends up rather than each hop. An address of a node counts only when the node has reported (its last signed status is recent), and when several organisations claim the same address the precedence is:
- an address the operator assigned to a group goes to that group;
- otherwise the oldest corroborated claim wins. A claim is corroborated when the address Salt itself saw that node connect from, recently, is the typed-in address (a signed status proves the node holds its key, not where it is). A corroborated claim always beats an uncorroborated one, so typing in the public address of somebody else's load balancer first gains nothing once the real node connects from it. Two corroborated claims (the same egress address behind NAT) fall back to older-first; the age is when the address was first typed in for that node, and an address typed in before that was recorded counts as made at the migration, never at enrolment;
- otherwise, with only uncorroborated claims of two or more organisations, the address is disputed and nobody keeps it, until a claim is corroborated or the operator assigns it. An uncorroborated address that nobody else claims is kept.
The time Salt saw the node at the address is kept fresh: it is refreshed on connect and by
every verified status of the connected node (written at most every 5 minutes, or every
quarter of the group's status_max_age when that is shorter: min(300, status_max_age / 4),
so a group with the smallest window of 60 seconds refreshes every 15 seconds and the
corroboration does not flap between two refreshes), so a node
that stays connected from its address stays corroborated for as long as it reports. The
address Salt saw a node connect from is not a claim by itself (it must be typed in
too), so two organisations behind one egress address do not contest each other. A node
whose connection address differs from its public service address (behind NAT, or over a
tunnel) can never corroborate: in a dispute the operator's assignment is the remedy
(bin/salt_dns eval 'SaltDns.Release.assign_address("203.0.113.7", 12, "your name")', audited
in the group's change history, with the address and both groups when it moves;
unassign_address/2 takes it back, audited the same way). The operator name is a plain string
the person at the shell types in, "operator" when left out; it is recorded as written and not
checked against any account, and the audit entry's actor is system. These are shell
commands on the server, not an API: whoever may run them already holds the database and the
vault key, so the name says who to ask, not who was authorised. The refused side is told
plainly ("also claimed by another organisation ... Ask the operator", never which one),
gets a certificate event address_contested (at most daily) and, once a day, a row in the
group's change history; the operator gets a warning in the log, a telemetry event and
SaltDns.Release.address_collisions/0. Names the
organisation controls are not used as evidence. The self-fetch below proves that the address answers
with this group's key authorisation.
If the host does not resolve, or resolves anywhere else, no order is placed (a provider limits failed validations per account and domain): the certificate shows what the host resolves to and what it should be, and Salt tries again by the usual schedule (1, 10, 100 minutes, then daily; "Renew now" tries at once). A certificate in use keeps being served while a renewal waits.
If the group was deleted, its route was removed, or a zone now covers the host, the
certificate can never be ordered again: Salt disables it with the reason (event retired,
and the reason in the error) instead of failing every day.
Failed orders. One organisation may have at most 5 failed HTTP-01 orders in 24 hours; then new orders and new external certificates are refused with the time they are allowed again, so one customer cannot use up the provider's failure limits for everybody.
Then the order. Salt asks the provider for the http-01 challenge (no DNS record is
written, no CAA record either), and before it tells the provider to validate it asks for
http://<host>/.well-known/acme-challenge/<token> itself. The host is resolved once;
every address must be one of the group's confirmed addresses and a public one (never
loopback, private, link-local, unique-local, carrier-grade NAT or multicast, even if a
group claims it); The allowlist of SaltDns.AddressFilter (internal ranges a deployment lets zone transfers
use) is ignored here: only public addresses are asked, always. The HTTP client does not
read proxy environment variables. Salt connects to exactly that address with the host name in the Host
header, follows no redirect, reads a few hundred bytes at most and stops after a few
seconds. If the answer is not the key authorisation, the order fails there, and the message
says only the status and that it did not match, never the body.
Then the provider validates, the certificate is stored as any other and delivered to the
group, and renewed by the same scheduler with the same checks.
CAA. Salt does not read the host's CAA records (its lookup only returns addresses). A
CAA record at the customer's DNS that leaves out the provider makes the provider refuse
the order, and the provider's message is shown as the error. The customer must allow the
provider (issue), as for any certificate.
Limits. The provider limits certificates and failed validations per registered domain; Salt has no public suffix list, so the weekly budget of new certificates per registered domain that applies in your own zones does not apply to external hosts (the existing limit of orders per certificate per day does). The load balancers answer the challenge path for every host (see the security note in shaker.md). No audit entry is made in a zone (there is none): the certificate's events record the request, each order and each failure, and the group's change history records the setting.
Rolling deploy. While the previous release still runs, a node whose addresses are edited by it gets no claim time, and an address without one counts as the latest claim: an honest claim then loses to one with a time, which cannot be abused to take an address but may need the operator's assignment. It resolves itself when the old release is gone (the next edit records the time).
Rolling back the migration deletes external certificates (certificates.zone_id becomes
required again, and an external certificate has no zone).
Not yet seen against a real certificate authority or a real outside domain: see status-and-roadmap.md.
Set-up
Switch it on and give it a store (configuration):
SALT_DNS_CERTIFICATES=on SALT_DNS_CERT_STORE_KEY=$(openssl rand -base64 32) # not the vault key; back it up SALT_DNS_CERT_STORE=s3 SALT_DNS_CERT_STORE_ENDPOINT=https://garage.example.org:3900 SALT_DNS_CERT_STORE_BUCKET=salt-certificates SALT_DNS_CERT_STORE_ACCESS_KEY_ID=... SALT_DNS_CERT_STORE_SECRET_ACCESS_KEY=...Run the migrations (
bin/migrate) after upgrading: the module has its own tables.Add a provider in the console (Providers) or through the API. A provider is an ACME directory address; nothing about any particular certificate authority is built in. The console offers a pick-list of well-known addresses as a convenience only. Salt reads from the directory what the provider supports: whether it needs a binding key, its profiles, renewal information, CAA identity and terms of service.
Register the account. This creates the account key and registers it (agreeing to the provider's terms of service). Some providers want an external account binding first: you get a key id and an HMAC key from the provider's dashboard (for some, with a command line tool; the key is often valid only a few days and for one account), enter both when you add the provider, then register. The HMAC key and the account key are stored encrypted.
Request a certificate (Certificates, or
POST /api/v1/certificates). Name one provider, optionally a second to fall back on. "For a zone" is the default; "Custom" takes a host and a wildcard checkbox. Through the API give eitherzone, orhostwithwildcard(boolean):curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \ https://salt.example.org/api/v1/certificates \ -d '{"host":"deep.er.example.org","wildcard":true,"provider_ids":[1]}'Change the providers (their order), the profile or the CAA option later on the certificate's page ("Change providers") or with
PATCH /api/v1/certificates/:id; it is recorded as an event, uses the checks of the request, and a different list of providers restarts at the first.
A provider added by an organisation belongs to it. The operator of the installation can add one that every organisation may use (the Providers page lists it as Shared, read only: it can be chosen for certificates but only the operator changes it):
bin/salt_dns eval 'SaltDns.Release.certificate_provider("main", "https://ca.example/directory", contact: "ops@example.org")'
The DNS requirement
The zone (for a custom certificate, the most specific zone that contains the host)
must be active (verified, ownership) and
served by Salt: the provider validates by asking the zone's public
nameservers. A zone only delegated through a CNAME of _acme-challenge to
another zone is not supported in this version, and neither is a host below a
delegation inside a zone (order that certificate in the zone it is delegated to).
Providers and fall back
A certificate has an ordered list of providers. After three failures in a row
at one provider the next is used; after the last the first again. Failures are
retried after 1, 10 and 100 minutes, then once a day. The list can be changed
afterwards (console or PATCH); that restarts at the first provider.
If a provider has CAA identities, the CAA records name all providers of the certificate's list, so a fall back is not locked out by Salt's own records.
Renewal
- With renewal information (RFC 9773, if the provider offers it) Salt asks
at least twice a day and renews inside the window the provider gives, at a point
fixed per certificate; a window in the past means now. The new order names the
certificate it replaces (
replaces). Information older than two days is ignored. - Without it: when one third of the lifetime is left, half for lifetimes of ten days or less.
- Renew now in the console (or
POST /api/v1/certificates/:id/renew) orders a new version at once. Every version has a new ECDSA P-256 key. - Guard. At most
SALT_DNS_CERT_MAX_ORDERS_PER_DAY(5) orders per certificate in 24 hours, whatever asks. A second guard limits new certificates per registered domain per week (SALT_DNS_CERT_MAX_NEW_PER_DOMAIN_PER_WEEK, default 30), because a provider limits the certificates it issues per registered domain and custom certificates make that reachable. Salt has no public suffix list, so the "domain" is the least specific zone of the organisation that contains the certificate's zone (zones belowexample.orgcount with it); disabled certificates count, renewals do not.
Storage and keys
- Objects are named
certificates/<certificate id>/<serial>, written once and never overwritten. The content (names, chain, private key) is encrypted by Salt with AES-256-GCM before it leaves, withSALT_DNS_CERT_STORE_KEY; the object name is part of the authentication, so a copied object does not decrypt. The service only ever sees ciphertext. - The key of an order that has not yielded a certificate yet is kept in the
store as a short-lived object (
certificates/<id>/pending/<order id>) from before the signing request is sent, and deleted once the version is stored, so a restart cannot lose a certificate that was just issued. - The store key is separate from the vault key, so losing one does not open the other. Back it up away from the store. Without it the stored keys are gone; the fix is to order new versions.
- Rotating the store key: put the old key in
SALT_DNS_CERT_STORE_RETIRED_KEYSunder its id, set a new key andSALT_DNS_CERT_STORE_KEY_ID. New versions use the new key; stored objects are immutable and stay readable with the retired key. Drop the retired key when the certificates it protects have expired. - The provider keys in Postgres (account key, binding HMAC key) use the vault
key and are re-encrypted by
SaltDns.Release.rotate_vault. - Any replica can read the store, so a replica compromise exposes every key (the same as for the vault key).
Delivery to load balancers
With SALT_DNS_SHAKER=on the certificates are delivered to Shaker nodes
(shaker.md): a proxy group serves every certificate of the
organisation that covers one of its route hosts, plus those attached by hand
(its own or a direct child's, see below),
and a new version reaches the nodes as soon as it is current. The rest of this
section is the interface the delivery uses.
A provider group serves its children's certificates
A proxy group can serve the certificates of the organisations directly below its own
(parent_organisation_id), for the provider that terminates TLS for its customers' zones. The
certificate is ordered in the child (a wildcard by DNS-01, with the child's provider and zone),
and attached by hand to the parent's group; it is never served by itself, not even when it
covers a route of the group. The rules:
- One level down. Not upward (a child's group cannot use its parent's certificates), not siblings, not grandchildren, not strangers. Anything else is refused as "not found".
- Who may attach. An owner or admin of the parent organisation, or a parent credential with a
certificatesgrant covering the certificate's zone (and theproxygrant every attachment needs), can attach a direct child's certificate to the parent's group; the child organisation is not asked. Aproxygrant alone is not enough, because the certificate comes with its private key on the group's nodes. One level down, explicit attach only. A refusal looks like a missing certificate, so ids of other organisations are not confirmed. Detaching needs only the right to manage routing in the group. - Audit in both organisations. Attach and detach write the group's change entry in the
group's organisation and a second entry in the child's audit trail (
Proxy.list_foreign_changes/2: the group's name and the parent organisation's name, the certificate, nothing else of the parent). The group's own history (Proxy.list_changes/2) lists each change once. No screen shows the child's trail yet. - Renewal, detach, withdrawal. A new version of the child's certificate raises the generation of
the parent's group and is delivered like any other. Detaching, disabling the certificate, or
deleting it (with its zone, or with the child organisation) also raises the generation of every
group that had it attached, so the nodes drop the key at once.
parent_organisation_idis fixed at creation (no application path changes it): an operator who re-parents an organisation in SQL must detach its certificates from the old parent's groups first, or the old parent's nodes keep them until the next change. - A zone that is disabled (ownership lost) stops its child certificates from being served by the parent's group; the group's generation is raised when the zone is disabled and again when it is re-activated, which brings them back. An own certificate of a disabled zone is served as before: nothing in the certificate module looks at the zone's status.
- Documented limits. An expired version is served until it is renewed (nothing sweeps it). Own-organisation certificates served by route coverage rather than by attachment are not withdrawn from the nodes by a generation bump when they are disabled (as before this change).
- Console and API. The group page lists the children's certificates beside its own in the
attach list, labelled with the organisation's name, and shows the owner of a served certificate
from another organisation. The API is the same endpoints as before
(
PUT/DELETE /api/v1/proxy/groups/{group}/certificates/{id}); the listing gainsorganisation_id.
For whatever delivers the certificates
SaltDns.Certificates.current_bundle(certificate_id) returns the names,
serial, validity, chain and private key of the current version, decrypted from
the store. SaltDns.Certificates.subscribe/0 delivers
{:certificate_current_version, info} on Phoenix PubSub whenever a certificate
gets a new current version. Nothing in the REST API returns a private key.
Access
Console: every member can see certificates, owners and admins request, renew and
disable them and manage providers. API: the certificates grant action (a
custom credential with that action; zone any for providers and for all zones),
which no DNS grant implies, so a DNS token, even one that manages every zone,
cannot read or change certificates. Routing has its own grant action,
proxy (see shaker.md); it does not imply certificates either.
Monitoring
Metrics (configuration): certificate expiry
timestamp, consecutive failures and renewal overdue seconds per certificate (the label
is the host, host (no wildcard) for a custom certificate without the wildcard, or host (external) for an external one; the
series of a certificate that is deleted or disabled leave the scrape within a minute);
renewals and failures by provider; histograms for the order duration and the
wait for the challenge records; provider request errors; store errors;
certificates by status. The alert rules in
deploy/examples/prometheus/alerts.yml warn under 10 days to expiry, go
critical under 5, warn after two failures in a row, and go critical when the
provider asked for a renewal and none happened within six hours.
Limits and what is not built
- One host (with or without its wildcard) or the zone and its wildcard; no free lists of names, no hosts below a delegation. DNS-01 only for names in your zones; for a host outside every zone Salt serves, HTTP-01 through a proxy group, one host, no wildcard, one provider per group (see above). No TLS-ALPN-01.
- ECDSA P-256 only.
- Delivery to servers is Shaker's (shaker.md), built on
current_bundle/1and the PubSub message; the module itself issues, renews and stores. - No revocation, no account key rotation, no deactivation of accounts from the console.
- The local store is for one node; replicas need S3.
- A deleted certificate's stored objects are not deleted.
- Only one issuer is built (ACME);
SaltDns.Certificates.Issueris the behaviour for others.