Skip to content

Restore HubDNS packaging and preserve published records - #7

Open
lirazsiri wants to merge 3 commits into
masterfrom
fix/v19-packaging
Open

Restore HubDNS packaging and preserve published records#7
lirazsiri wants to merge 3 commits into
masterfrom
fix/v19-packaging

Conversation

@lirazsiri

Copy link
Copy Markdown
Member

Restores the executable entry points for the Python 3 port and keeps the one-shot systemd service active after publishing its record. Without RemainAfterExit, systemd immediately ran hubdns-release and removed the exact tklapp.com record, leaving clients on the wildcard Hub endpoint.

Verification: focused package tests pass, systemd-analyze verifies the installed unit, and a live v19 WordPress instance retained its exact Route53 record and valid Let’s Encrypt endpoint across reboot.

Correct the dh_link source and destination order and restore the historical hubdns command names consumed by inithooks, cron, and the systemd service. The v1.4 package had replaced its Python command modules with dangling links to nonexistent hub-* binaries, which prevented Hub DNS initialization on every v19 appliance.

Verified by building an unsigned Trixie package, extracting it, compiling all four command modules, and resolving each installed command symlink to its packaged module.
Import the installed py3curl-wrapper module and expose its current APIError class. HubDNS 1.4 depended on the Python 3 package but still imported the removed Python 2 module and exception name, so every command failed before contacting the Hub.

Verified by installing the rebuilt package on the live Hub-launched WordPress v19 instance, initializing its tklapp.com record, updating the address, and reading the registered address back successfully.
The one-shot systemd unit declared an ExecStop release action without remaining active after ExecStart. Systemd therefore released each DNS record immediately after a successful update, sending Hub hostnames back to the wildcard address and presenting the Hub certificate instead of the appliance certificate.

Keep the unit active after its update so release runs only during a real stop or shutdown. Verified with the focused service-unit test and systemd-analyze.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant