Keep the BIND catalog accessible under a restrictive umask #320

Open
parkel wants to merge 1 commits from fix/dns-catalog-directory into main
pull from: fix/dns-catalog-directory
Owner

Closes #319.

Bug fixes

  • Set the managed primary's root-controlled catalog directory to root:bind and mode 2750, independent of the installer's umask.
  • Repair existing directory ownership and access on rerun without rewriting the catalog, managed zones, or transfer key.

Verification

  • All 38 installer tests passed, including fresh catalog creation with umask 077 and repair without replacing the existing catalog.
  • On Ubuntu 26.04, verified that the install command restored BIND read access while preserving the original catalog. Both the primary and a separate secondary returned the same authoritative SOA.
  • Ruff and Git whitespace checks passed.

Upgrade impact

Existing installations already serving their catalog need no action. For an affected primary, rerun the documented catalog setup using the same peer from the fixed release.

Closes #319. ## Bug fixes - Set the managed primary's root-controlled catalog directory to `root:bind` and mode `2750`, independent of the installer's umask. - Repair existing directory ownership and access on rerun without rewriting the catalog, managed zones, or transfer key. ## Verification - All 38 installer tests passed, including fresh catalog creation with `umask 077` and repair without replacing the existing catalog. - On Ubuntu 26.04, verified that the install command restored BIND read access while preserving the original catalog. Both the primary and a separate secondary returned the same authoritative SOA. - Ruff and Git whitespace checks passed. ## Upgrade impact Existing installations already serving their catalog need no action. For an affected primary, rerun the documented catalog setup using the same peer from the fixed release.
parkel added 1 commit 2026-12-05 01:28:29 +01:00
Keep the BIND catalog accessible under a restrictive umask
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Successful in 2m3s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Successful in 2m16s
491c5900cb
All checks were successful
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Successful in 2m3s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Successful in 2m16s
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/dns-catalog-directory:fix/dns-catalog-directory
git checkout fix/dns-catalog-directory
Sign in to join this conversation.