Habr•October 6, 2026•🇷🇺Translated from Russian

How a Node.js Bridge Connects MAX and VK Messengers to Chatwoot with Secure Bidirectional Sync

A technical walkthrough details the construction of a bidirectional bridge that integrates the MAX messenger and VK communities into Chatwoot as separate API inboxes. The solution avoids web scraping and personal account automation by relying exclusively on official bot endpoints and community callback mechanisms.

The architecture consists of a minimal Node.js service exposing four webhook routes: incoming events from MAX, VK Callback API confirmations and messages, plus protected outgoing routes triggered by Chatwoot message_created events. All traffic terminates at a reverse proxy while the container itself remains isolated on an internal Docker network.

Contacts are created with stable identifiers prefixed by channel (max: or vk:) to prevent cross-platform collisions. Conversations are then linked via source_id returned by the Chatwoot Application API, and mappings are persisted in a JSON file inside a named Docker volume to survive container restarts.

Incoming MAX messages are authenticated using the X-Max-Bot-Api-Secret header and filtered to exclude bot-generated updates. VK events undergo group_id and secret validation, with only message_new events processed. Photographs from VK are downloaded at maximum resolution and forwarded as multipart attachments.

Outbound messages from Chatwoot are filtered to ensure only genuine operator replies are relayed. MAX messages use the platform-api2 endpoint with Authorization tokens supplied via mounted secrets. VK image uploads follow the three-step photos.getMessagesUploadServer, upload, and photos.saveMessagesPhoto flow.

Deduplication relies on message IDs stored in limited ring buffers of the last 2000 events. The author notes that this provides protection against duplicate webhooks but does not guarantee exactly-once semantics. SSRF risks are mitigated by enforcing HTTPS, exact origin matching for Chatwoot URLs, MIME-type restrictions, size limits, and redirect validation.

The implementation is packaged as a minimal Alpine-based Docker image running as an unprivileged user. Production recommendations include replacing the JSON state file with a transactional database, adding a durable queue with dead-letter handling, and implementing structured logging plus rate-limit awareness.

Related articles

AntiMalware•Other

RBC Restores News Portal After DDoS Attack as Russian Organizations Face Rising Cyber Threats

RBC's news website was hit by a DDoS attack on December 4, disrupting normal operations and forcing the outlet to publish updates via Telegram. Technical teams worked to restore full functionality after users saw only a simplified technical page instead of regular sections and articles. No evidence of infrastructure compromise or data leaks has been reported. The incident follows similar attacks in November 2026, including a 2.1 Tbit/s DDoS on hosting provider Beget that interrupted client FTP and SSH connections, and earlier strikes on Rosstat's resources. Roskomnadzor recorded 3,478 DDoS incidents in November, up from 2,500 in October, with the longest attack lasting over 20 days and targeting telecom companies mainly in the Central Federal District.

AntiMalware•Other

Russia's NTI Fund Exits Natalia Kasperskaya's SOVA Open AI Platform Project

The National Technology Initiative fund has fully exited the capital of Virtual Assistants, the company behind the open conversational AI platform SOVA. Structures linked to founders Natalia Kasperskaya and Stanislav Ashmanov repurchased the stake, with changes registered in the Unified State Register of Legal Entities on December 1, 2026. The fund had entered the project in 2022 and later increased its share to 49.4 percent, following earlier state plans to allocate 300 million rubles toward a 400 million ruble project. Laboratory Nanosemantics now holds 59.65 percent while Ashmanov directly controls the remaining 40.35 percent. Although SOVA was positioned as an open-source ecosystem for building voice assistants and chatbots, its GitHub repositories have seen no updates since April 2023. The company continues to collect user feedback for future modernization while experts note growing competition from technologies such as Whisper, GigaAM, and Yandex SpeechKit.

AntiMalware•Other

Incident at Sarov Nuclear Center Triggers Wave of Disinformation on Social Media

An industrial accident at the Russian Federal Nuclear Center in Sarov on December 3, 2026, led to the rapid spread of false claims about nuclear material fires and potential Chernobyl-scale consequences across social networks and messengers. Official statements from RFNC-VNIIEF confirmed the event occurred during scheduled non-nuclear production work, resulting in five fatalities with additional injuries under investigation, while emphasizing that the site was localized and no threat existed to facilities holding fissile materials. Radiation levels remain within normal limits according to both the institute and the Main Directorate of EMERCOM for Nizhny Novgorod Region, with no danger to the public or environment. The limited official information released so far has fueled further misinformation, prompting Lapsha Media to warn of additional fakes and advise verification against authoritative sources. Specialists continue damage assessment and repairs at the affected industrial site, with the exact cause of the incident still undisclosed.

Habr•Other

SpaceVM Border Firewall Configuration Guide Restricts SSH and Web Access to Specific Subnets

SpaceVM has published a detailed tutorial on configuring its border firewall using a three-node cluster example. The guide demonstrates how to allow SSH and HTTP/HTTPS access exclusively from the 172.22.21.0/24 subnet while disabling default system rules that permit broader access. It explains rule processing order, where lower index values take precedence, and shows how to apply traffic shaping limits. Administrators must activate rules after creation and verify connectivity from allowed and disallowed hosts. The instructions cover both incoming filter rules and shaping policies for management networks without affecting virtual machine traffic.