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
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:
1 parent
7509b8c429
commit
db36d918fe
18 files changed
+787
-161
No files matched your search
@@ -119,6 +119,12 @@ func TestAllowCertificate(t *testing.T) {
|
||||
t.Error("AllowCertificate(unknown name) = nil, want refusal")
|
||||
}
|
||||
verifyDomain(t, owner, pageID, record)
|
||||
// A name just found without a page is not asked about again for a
|
||||
// while; the sync picks the newly verified domain up.
|
||||
if err := srv.AllowCertificate(ctx, domain); err == nil {
|
||||
t.Error("AllowCertificate(domain just found missing) = nil, want the miss remembered")
|
||||
}
|
||||
srv.Sync(ctx)
|
||||
if err := srv.AllowCertificate(ctx, domain); err != nil {
|
||||
t.Errorf("AllowCertificate(verified domain) = %v", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user