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

Keycloak Cluster on Three VMs: Engineers Detail Embedded Infinispan Setup, HA Testing Failures, and Bug Fix

A project required centralized authentication and authorization for 25,000–30,000 active users distributed nationwide, demanding strong scalability and reliability. The team selected Keycloak and rejected a single instance because it could not meet throughput or SLA targets. They therefore built a three-node cluster on isolated virtual machines using Embedded Infinispan and JGroups.

Kubernetes was considered excessive for the environment. The chosen architecture placed each Keycloak node in a separate data center, shared a PostgreSQL database clustered with Patroni, and enabled cache mode ispn so sessions replicate across nodes. TCP ports 7800 and 57800 were opened between the VMs for Infinispan communication and failure detection.

Each node registers its address in the JGROUPS_PING table at startup, allowing dynamic membership without static TCPPING lists. The JVM flag -Djgroups.external_addr and explicit node-name entries in cache-ispn.xml ensured correct visibility of external IPs and hostnames across data centers.

Failover tests included node restarts, database connectivity loss, and complete data-center isolation. When only Keycloak nodes lost connectivity while the database remained reachable, the cluster recovered automatically. Full data-center outages, however, produced split-brain states, multiple coordinators, and persistent 5xx errors. The built-in healthcheck did not detect the condition even after an upgrade that added cluster-specific checks.

A temporary Python watcher was deployed beside each container. It polled health endpoints and the JGROUPS_PING table, restarting any node that appeared as an extra coordinator. The root cause was reported in GitHub issue 45980; Keycloak developers acknowledged the bug and shipped a fix. After verification on test and staging environments, the production cluster was updated and now tolerates single data-center failure without session loss.

Related articles

Security NEXT•Vulnerabilities & Exploits

DoS Vulnerability in XML Parser Expat (libexpat) Allows Resource Exhaustion via CVE-2026-137992

A denial-of-service vulnerability has been identified in the widely used XML parsing library Expat, also known as libexpat. The flaw stems from the library's inability to properly detect duplicate attribute declarations within DTD structures, enabling crafted XML documents to trigger excessive CPU consumption. VulnCheck publicly disclosed the issue as CVE-2026-137992 on November 27, 2026, assigning a CVSS v4.0 base score of 8.7 and a CVSS v3.1 score of 7.5, classifying it as High severity. All versions prior to the November 23 release of Expat 2.11.0 are affected. Mitigation work is underway in the project's source repository, though no official patch has been finalized yet.

Security NEXT•Vulnerabilities & Exploits

US CISA Adds Drupal and GeoServer Flaws to KEV Catalog After Confirmed Exploitation

The US Cybersecurity and Infrastructure Security Agency has added one Drupal vulnerability and two GeoServer vulnerabilities to its Known Exploited Vulnerabilities catalog following confirmed attacks. The Drupal issue, tracked as CVE-2026-136716, allows unauthenticated takeover of sites when the installer remains accessible due to atypical or incomplete installations. GeoServer flaws CVE-2026-129243 and CVE-2026-120705 enable attackers to bypass authorization and read arbitrary files, and when chained with three additional vulnerabilities they permit remote code execution without authentication. CISA set a November 30 deadline for federal agencies to apply mitigations and urged all organizations to check for compromise. Drupal maintainers released updates for versions 11.4.14, 11.3.23, and 10.6.23 along with installer hardening guidance, while GeoServer users must upgrade to 3.0.2, 2.28.6, or 2.27.7.

Habr•Vulnerabilities & Exploits

Telegram Warns iPhone Users on Outdated iOS Versions of Mass Exploitation Risk

Telegram has started sending mass notifications to iPhone owners running older versions of iOS, alerting them to active exploitation campaigns that can compromise devices and personal data. Founder Pavel Durov shared a screenshot confirming the scale of the warnings and stated that outdated iOS versions contain vulnerabilities allowing attackers to gain access simply by having the user open a malicious website. The message emphasizes that all user data is at risk and urges immediate updates through the standard Settings menu. Durov noted that the campaign targets users of legacy iOS releases in a widespread manner. The advisory directs users to navigate to Settings, General, and Software Update to install the latest patches and restore device security.

BoletimSec•Vulnerabilities & Exploits

Cybercriminals Exploit Drupal Installer Flaw CVE-2026-136716 to Hijack Sites Without Authentication

Cybercriminals are actively exploiting a critical flaw in the Drupal core installer that allows unauthenticated attackers to fully compromise websites. The Drupal security team confirmed the attacks on November 25, 2026, and released patches for all supported core branches. The vulnerability, tracked as CVE-2026-136716, affects sites where the installer remains publicly accessible, including production instances that had applied earlier fixes. Successful exploitation grants complete control over the site, exposing private data and enabling modification or deletion of content. The issue follows a related November 18 advisory covering CVE-2026-132165, which was added to the CISA Known Exploited Vulnerabilities catalog. Administrators must run update.php after applying the new patches, review access logs for signs of prior compromise on user account 1, and ensure install.php is properly restricted.