feat: guard certificate orders for custom domains and explain the setup
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / test (pull_request) Successful in 8m21s
ci / lint (pull_request) Successful in 11m0s
ci / build (pull_request) Canceled after 8m49s
ci / image (pull_request) Canceled after 0s

Status page servers order certificates on demand. Verified domains were
already the only ones they would order for, but nothing bounded how many:
an organization switching domains, or many organizations at once, could use
up the CA's rate limits that all servers sharing an ACME account depend on,
and every handshake or request for a made-up name was passed on to the API.

- Before a new order (not a renewal) the server asks the API
  (POST /agent/v1/certificates). It allows verified domains of pages that
  server serves, within limits per domain and day, per organization and
  day, and per ACME account owner and hour (UPTIME_CERTS_*), counted
  across all instances.
- An organization can set a new custom domain at most 10 times a day.
- The server remembers names without a page for a minute and passes at
  most 20 unknown names a second on to the API; pages the sync cached are
  not affected. Only real pages are recorded as visited.
- The page editor explains the three steps: the TXT record, the CNAME
  record with the platform's status page host as its target (or the
  organization's own servers), apex domains, and when HTTPS follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-25 22:39:01 +01:00
1 parent 7509b8c429
commit db36d918fe
18 files changed
+787 -161

No files matched your search

+9 -2
View File
@@ -543,6 +543,7 @@
"error.confirmation_failed": "Die Bestätigung stimmt nicht.",
"error.consent_outdated": "Die Dokumente haben sich inzwischen geändert. Lade die Seite neu und stimme der aktuellen Fassung zu.",
"error.consent_required": "Bitte stimme zuerst Datenschutz und AGB zu.",
"error.domain_changes_exceeded": "Die eigene Domain wurde heute schon {{.Count}}-mal geändert. Versuch es morgen wieder.",
"error.domain_not_verified": "Der TXT-Eintrag wurde noch nicht gefunden. DNS-Änderungen brauchen manchmal etwas Zeit.",
"error.domain_taken": "Diese Domain nutzt bereits eine andere Statuspage.",
"error.email_not_configured": "E-Mail ist auf diesem Server nicht verfügbar.",
@@ -1249,9 +1250,15 @@
"pages.delete_confirm": "Diese Statuspage löschen?",
"pages.description": "Beschreibung",
"pages.domain": "Eigene Domain",
"pages.domain_cname": "Richte die Domain (CNAME oder A-Record) auf deinen Statuspage-Server; er holt sich automatisch ein Zertifikat, wenn TLS aktiviert ist.",
"pages.domain_instructions": "Lege diesen DNS-Eintrag an und prüfe ihn dann. Nur geprüfte Domains werden ausgeliefert.",
"pages.domain_apex": "Eine Domain ohne Subdomain (example.com) kann keinen CNAME-Eintrag haben. Nutze stattdessen den ALIAS- oder ANAME-Eintrag deines DNS-Anbieters oder A/AAAA-Einträge.",
"pages.domain_intro": "Liefere diese Seite unter einer eigenen Domain aus, z. B. status.example.com. Drei Schritte: Nachweisen, dass die Domain dir gehört, sie auf die Statusseiten-Server zeigen lassen, und HTTPS kommt von selbst.",
"pages.domain_name": "Domain",
"pages.domain_step_cname": "2. Lass die Domain mit diesem CNAME-Eintrag auf die Statusseiten-Server zeigen:",
"pages.domain_step_cname_own": "2. Lass die Domain auf die eigenen Statusseiten-Server deiner Organisation zeigen: per CNAME-Eintrag auf deren Hostnamen oder per A/AAAA-Eintrag auf deren Adressen.",
"pages.domain_step_cname_unknown": "2. Lass die Domain per CNAME-Eintrag auf die Statusseiten-Server der Plattform zeigen; das Ziel nennt dir der Betreiber dieser Installation.",
"pages.domain_step_tls": "3. HTTPS: Das Zertifikat wird beim ersten Aufruf über HTTPS automatisch geholt, das kann bis zu einer Minute dauern. Zum Schutz der Limits der Zertifizierungsstelle, die sich alle Organisationen teilen, sind neue Zertifikate pro Tag begrenzt, und die Domain lässt sich höchstens {{.Count}}-mal am Tag ändern.",
"pages.domain_step_verified": "1. Domain geprüft.",
"pages.domain_step_verify": "1. Weise mit diesem TXT-Eintrag nach, dass die Domain dir gehört, und prüfe ihn dann. Bis dahin wird die Domain weder ausgeliefert noch bekommt sie ein Zertifikat.",
"pages.domain_verified": "Domain geprüft.",
"pages.draft": "Entwurf",
"pages.export": "Als HTML exportieren",
+9 -2
View File
@@ -543,6 +543,7 @@
"error.confirmation_failed": "The confirmation does not match.",
"error.consent_outdated": "The documents changed in the meantime. Reload the page and accept the current version.",
"error.consent_required": "Please accept the privacy policy and terms first.",
"error.domain_changes_exceeded": "The custom domain was changed {{.Count}} times today already. Try again tomorrow.",
"error.domain_not_verified": "The TXT record was not found yet. DNS changes can take a while to appear.",
"error.domain_taken": "This domain is already used by another status page.",
"error.email_not_configured": "Email is not available on this server.",
@@ -1249,9 +1250,15 @@
"pages.delete_confirm": "Delete this status page?",
"pages.description": "Description",
"pages.domain": "Custom domain",
"pages.domain_cname": "Point the domain (CNAME or A record) at your status page server; it obtains a certificate automatically when TLS is enabled.",
"pages.domain_instructions": "Create this DNS record, then verify. Only verified domains are served.",
"pages.domain_apex": "A domain without a subdomain (example.com) cannot have a CNAME record. Use your DNS provider's ALIAS or ANAME record, or A/AAAA records, instead.",
"pages.domain_intro": "Serve this page under a domain of your own, e.g. status.example.com. Three steps: prove the domain is yours, point it at the status page servers, and HTTPS follows by itself.",
"pages.domain_name": "Domain",
"pages.domain_step_cname": "2. Point the domain at the status page servers with this CNAME record:",
"pages.domain_step_cname_own": "2. Point the domain at your organization's own status page servers: a CNAME record to their host name, or A/AAAA records to their addresses.",
"pages.domain_step_cname_unknown": "2. Point the domain at the platform's status page servers with a CNAME record; the operator of this installation tells you its target.",
"pages.domain_step_tls": "3. HTTPS: the certificate is obtained automatically on the first visit over HTTPS, which can take up to a minute. To protect the certificate authority's limits that all organizations share, new certificates are limited per day, and the domain can be changed at most {{.Count}} times a day.",
"pages.domain_step_verified": "1. Domain verified.",
"pages.domain_step_verify": "1. Prove the domain is yours with this TXT record, then verify. Until then the domain is neither served nor given a certificate.",
"pages.domain_verified": "Domain verified.",
"pages.draft": "draft",
"pages.export": "Export as HTML",