HabrSeptember 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

HabrOther

Durev VPN Accused of Plagiarizing Independent Researchers' Articles for Commercial YouTube Promotion

Independent Russian cybersecurity researcher zarazaexe has publicly accused the commercial VPN service Durev VPN of systematically copying technical articles about Russian internet censorship systems, messenger analysis, and government-issued certificates. The team behind Durev VPN allegedly rewrote the original research into YouTube video scripts, replaced first-person statements with references to their own specialists, and removed all attribution to the source author or project. One video titled СРОЧНО УДАЛИ СЕРТИФИКАТ МИНЦИФРЫ reportedly gained 795,000 views in two days, while the service's Telegram bot shows 260,000 users and charges a minimum subscription of 313 rubles per month. Specific copied elements include scanning results of 46 million Russian IP addresses that yielded 63,000 entries in TSPU whitelists, architectural descriptions of default-deny and fail-closed policies, ECH handling by DPI systems, and detailed reverse-engineering findings from the MAX messenger client. The researcher documented the reuse of his earlier errors about UDP blocking inside whitelists and identical analogies comparing root certificates to apartment keys. When confronted, the Durev VPN representative initially demanded patents, invoked fair use, and later claimed the matter would be reviewed by their lawyer within a week. The researcher published the full chat logs and removed the disputed segment from one video after the complaint.

AntiMalwareOther

Russia's Rassvet LEO Satellite System Enters Real-World Testing Phase

The Russian low-orbit satellite constellation Rassvet has moved from laboratory development into active field trials with real consumers across multiple regions. Bureau 1440, part of IKS Holding, has begun delivering satellite internet services and installed the first user terminal on a long-distance Russian Railways train. CEO Alexey Shelobkov stated that the project advanced to service validation in 2026, ahead of schedule, and will now test performance over large territories and in motion. The initiative aims to provide high-speed connectivity to remote areas, reduce the digital divide, and create an independent Russian hybrid communications system. Shelobkov emphasized that Rassvet is not merely a response to Starlink but a strategic necessity for sovereign infrastructure free from foreign hardware and policy dependencies. Roscosmos is simultaneously increasing engagement with private companies to commercialize space activities.

AntiMalwareOther

Putin Calls Rumors of Russian Bank Deposit Freeze 'Stupid Fakes'

Russian President Vladimir Putin dismissed rumors about a possible freeze on citizens' bank deposits, describing them as rather stupid fakes during a plenary session at the Eastern Economic Forum on September 3. He stated that there are no grounds for such concerns and recalled the events of 2022 when citizens rushed to withdraw funds amid anxious sentiments. The financial system handled the situation without closing cash desks, allowing all requested amounts to be disbursed calmly. Putin emphasized that Russians continue to keep money in the financial system and are increasingly directing it to the stock market. According to the Central Bank of Russia, net inflows to private investors' brokerage accounts in the second quarter of 2026 exceeded 1 trillion rubles, marking a 19% increase from the previous quarter and a record since observations began in 2021.

HabrOther

Building a Cybersecurity News Aggregator: Story Clustering, Seven Importance Signals and Strict Filtering Thresholds

The idea for an information security news aggregator emerged years ago with the goal of delivering only the most relevant stories while eliminating noise. Early versions relied on the rut5_base_sum_gazeta summarization model and TextRank for importance scoring, but performance remained unsatisfactory. The current system processes roughly one thousand items daily from more than 200 sources and publishes only about 0.5 percent of them. A hybrid approach now combines a transparent seven-feature formula that scores story importance with an LLM that removes irrelevant content and generates concise summaries. The formula incorporates signals such as confirmation count, CVSS severity, exploitation status from KEV, source tier, proximity to Russian readers, depth of analysis, and publication speed. Penalties are applied for vendor self-promotion, webinars, and job postings. Stories are clustered using CVE identifiers, shared trigrams, and named entities to avoid duplicate posts while preserving original reporting.