Habr•September 4, 2026•🇷🇺Translated from Russian

Secure Custom Domain Setup for Client Status Pages Using CNAME, Certbot and Go Instead of ACME On-Demand

A monitoring service needed to offer public status pages on customer domains for white-label use by web studios. Clients add a CNAME record pointing their subdomain to the service endpoint, after which the platform must serve the page over HTTPS with a valid certificate.

The team rejected ACME on-demand solutions such as Caddy or OpenResty auto-SSL for three reasons. Private keys would reside inside the application process or require an additional stateful component. Any attacker could point arbitrary domains at the IP and trigger Let's Encrypt issuance, exhausting the 300-order rate limit per account. Issuing certificates during the TLS handshake also imposes latency on the first visitor and risks connection drops if the CA is unreachable.

Instead, domains are stored in the database when users enter them in settings. A four-stage pipeline handles the rest: input normalization and validation in Go, periodic DNS verification by a background goroutine, certificate issuance and nginx configuration by a privileged helper script, and request routing inside the application.

Validation rejects empty strings only when removing a domain, blocks the service's own domains to prevent takeover of internal pages, and requires Punycode for internationalized names so users see exactly what they must configure at their registrar. After saving, the domain enters pending status.

The DNS verifier runs every five minutes. It first checks for a matching CNAME and falls back to comparing A records for apex domains where CNAME is prohibited by RFC. Temporary DNS failures do not downgrade an already verified or active domain; only a warning is recorded. This hysteresis avoids random outages for customers whose pages are already live.

A systemd-timer script running as root queries the application over loopback, runs certbot with the webroot challenge, writes per-domain nginx server blocks from a template, and notifies the application when a domain becomes active. Certificates for removed domains are left untouched and simply expire naturally. The script always validates input with a regex and runs nginx -t before reloading.

Inside the Go application a HostRouter middleware maps verified custom hosts to the corresponding status page while returning 404 for all other paths, preventing exposure of dashboards or APIs. Internal endpoints used by the helper are protected by checking for the absence of X-Forwarded-For and X-Real-IP headers in addition to loopback address validation.

The scheme works well for hundreds of domains on a single server. It avoids rate-limit exhaustion because issuance occurs only after confirmed DNS ownership, keeps certificate handling outside the application, and ensures that failure of any single component does not affect already-active customer pages.

Related articles

BoletimSec•Other

CrowdStrike in Advanced Talks to Acquire Zscaler in Potential Multi-Billion Dollar Cybersecurity Deal

Bloomberg reported on November 20 that CrowdStrike is negotiating to purchase Zscaler in a deal that could rank among the largest in cybersecurity history. Sources familiar with the matter described the discussions as ongoing, though no agreement has been announced and the talks could still collapse without a signed deal. Zscaler shares rose 18 percent in after-hours trading while CrowdStrike shares fell more than 8 percent following the report. At regular close, Zscaler carried a market capitalization of approximately 32 billion dollars. The two companies already collaborate on security integrations, including a recent expansion announced in September that links CrowdStrike Falcon risk signals to Zscaler Adaptive Access Engine. CrowdStrike previously pursued similar access-control technology through its acquisition of SGNL. The potential deal follows other major sector transactions, including Google’s 32 billion dollar purchase of Wiz and Palo Alto Networks’ 25 billion dollar acquisition of CyberArk.

AntiMalware•Other

AI Assistant Approves Rent Delay for North Carolina Tenant, Triggering Eviction Notice and Court Dispute

An AI-powered virtual assistant named Olivia, deployed by Colony Townhome Apartments, approved a tenant's request to postpone rent payment until November 30 after she fell behind by $3,934.17. The tenant, Laura Mack of Raleigh, relied on the approval because the messages included her personal details and referenced a recent bathroom leak repair. Days later, the same management company issued an eviction notice, with staff later explaining that the AI had made an unauthorized commitment. Mack has taken the matter to Wake County court seeking to overturn the eviction filing. The incident highlights risks when property management companies deploy generative AI tools for tenant communications without clear disclosure or oversight mechanisms.

AntiMalware•Other

Former Smolensk Digital Development Minister Andrey Rudometkin Charged with Large-Scale Fraud and Abuse of Office

Andrey Rudometkin, who served as head of the Ministry of Digital Development of Smolensk Oblast from 2023 until his dismissal in October 2025, now faces criminal charges including fraud on an especially large scale and multiple counts of exceeding official authority. The regional Ministry of Digital Development is listed as the injured party in the case. Prosecutors allege two episodes of power abuse, one committed as part of a group and motivated by personal gain, along with fraud under Part 4 of Article 159 of the Russian Criminal Code. Four individuals are named in the proceedings, including former information security department head Artem Kalugin, who is accused of abuse of office, and two additional defendants charged with large-scale fraud. Rudometkin has remained in custody since late 2025 despite repeated defense requests for release citing his three minor children and difficult family finances. The Smolensk court is scheduled to begin hearings on the case in the near future.

AntiMalware•Other

Minpromtorg Demands 138.97 Million Rubles in Penalties from ZNTC for Delays in 130 nm Russian Lithograph Project

The Russian Ministry of Industry and Trade has issued a claim against the Zelenograd Nanotechnology Center for 138.97 million rubles in penalties over missed deadlines in the development of a domestic 130 nm lithography system. The 5.55 billion ruble state contract was signed in December 2021 and requires completion by the end of 2026. The third stage, originally due on 31 March 2024, was only submitted in July, with acceptance signed in August. Company head Anatoly Kovalev attributed the delay to sanctions that complicated cooperation with foreign suppliers. Despite the penalty claim, the project is still expected to finish on schedule, with serial equipment deliveries planned for 2027. The stage included production of two 193 nm excimer laser prototypes, photomasks, test structures, and an objective measurement stand.