Repository navigation
PowerGSLB 2.0.0
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 strictmypyandpylintat 10/10. - New two-level schema. Seven normalized tables: an rrset is one
(domain, name, type)owningttl+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_jsonvalidity 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 newnonetype 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-Remoteand 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
tomlliband natively typed, withPOWERGSLB_<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 apowergslbconsole 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.sqlor migrated by hand. - Configuration is TOML, not INI, and
-c/--configis now mandatory. Existing.conffiles must be rewritten. - Python 2.7 is no longer supported. Python 3.12+ is required.
- Packaging changed. No
setup.pyand no RPM spec: install the wheel or sdist, or use the Docker image. - Runtime dependencies changed.
subprocess32andpypingare dropped in favor oficmplib, andlegacycryptis added for password hashing.
Dependencies
- Runtime:
mysql-connector-python,netaddr,icmplib,legacycrypt,systemd-python. Requires Python >= 3.12 and MySQL 8 / MariaDB 10.5+.