Skip to content

PowerGSLB 2.0.0

Choose a tag to compare

@acudovs acudovs released this 16 Jun 15:27
· 75 commits to master since this release
4f1b23c

PowerGSLB 2.0.0 is a rewrite of the 1.x line. The DNS-based GSLB feature set is preserved (health-checked records, weighted priorities, DNS views, client-IP subnet persistence, fallback), but the language, packaging, database schema, container base, and configuration format have all changed. This is a breaking release, see Breaking changes below.

Highlights

  • Python 3.12 rewrite. Fully type-annotated and shipped with py.typed (PEP 561), under strict mypy and pylint at 10/10.
  • New two-level schema. Seven normalized tables: an rrset is one (domain, name, type) owning ttl + persistence, and records are the individual answers inside it. Names are stored relative to the zone (@ at the apex), so the FQDN is derived on the read path and never stored.
  • DNS invariants enforced in the database. SOA cardinality, CNAME exclusivity, answer uniqueness, and monitor_json validity are CHECK constraints and triggers, which also garbage-collect an rrset when its last record leaves. This is why MySQL 8 / MariaDB 10.5+ is required.
  • Per-type health checks. Each monitor type (icmp, tcp, http, exec) is a dataclass owning its fields, validation, and execution. The new none type marks a record always-live instead of implicitly unchecked.
  • Handler-per-role security boundary. The DNS backend and the admin interface are separate handler classes on separate ports, so neither surface is reachable on the other. The DNS backend honors PowerDNS X-Remotebackend-Real-Remote and the admin port does not, so it cannot be source-IP-spoofed.
  • Hardened by default. Admin passwords are crypt(3) SHA-512, verified in constant time and re-validated on every request, under a systemd unit with Type=notify, capability drops, namespacing, and watchdog integration.
  • TOML configuration, parsed with stdlib tomllib and natively typed, with POWERGSLB_<SECTION>_<OPTION> environment overrides coerced to each option's type.
  • Modern packaging and container. pyproject.toml (PEP 517/518) builds a wheel and sdist with a powergslb console entry point, and a multi-stage image on RHEL UBI 10 bundles PowerDNS Authoritative 5.1, MariaDB 12.3, and systemd. Frontend refreshed to jQuery 3.7.1 and w2ui 1.4.3.

Breaking changes

  • No automated database migration. The two-level rrset schema with relative record names is incompatible with 1.x. Existing databases must be recreated from scheme.sql + data.sql or migrated by hand.
  • Configuration is TOML, not INI, and -c/--config is now mandatory. Existing .conf files must be rewritten.
  • Python 2.7 is no longer supported. Python 3.12+ is required.
  • Packaging changed. No setup.py and no RPM spec: install the wheel or sdist, or use the Docker image.
  • Runtime dependencies changed. subprocess32 and pyping are dropped in favor of icmplib, and legacycrypt is added for password hashing.

Dependencies

  • Runtime: mysql-connector-python, netaddr, icmplib, legacycrypt, systemd-python. Requires Python >= 3.12 and MySQL 8 / MariaDB 10.5+.