unbound icon indicating copy to clipboard operation
unbound copied to clipboard

RPZ feature request - zone transfer with hmac-sha256 key

Open bekreyev opened this issue 4 years ago • 9 comments

I can't transfer zone for RPZ without hmac-sha256 key, please add this auth functionality for slave zones.

Unfortunately they can only give me this zone as a slave.

In bind/named this feature is present, but I would like to stay on unbound.

bekreyev avatar Oct 31 '20 07:10 bekreyev

This feature seems to be on our planning for next year. In the meanwhile, it is possible to download the zone with dig, and then load it from a zonefile. Configure the zone with zonefile: "nameofzone" then use, dig -y "hmac-sha256:nameofkey:secret" @server zonename AXFR | head -n -6 > nameofzone The head statement is supposed to strip off the last SOA line. And then reload this with for example unbound-control auth_zone_reload nameofzone . You could run this from a timer with cron and get regular updates in that manner.

wcawijngaards avatar Nov 09 '20 13:11 wcawijngaards

Adding an option for hmac-sha256 keys similar to NSD would really facilitate RPZ sync in Unbound. Here's the current syntax for NSD:

key:
    name: "rpzkey"
    algorithm: hmac-sha256
    secret: "pGi0avNk2bND68cnJdFkYzGAbvQnQ7yY"
zone:
    name: example.rpz
    zonefile: example.rpz.zone
    provide-xfr: 1.2.3.4 rpzkey

Until this is available in unbound, we can sync with dig, using a script to remove the unwanted lines from the zonefile as described by wcawijngaards.

magl8 avatar Dec 22 '20 10:12 magl8

Any progress @wcawijngaards? Looks like nobody has been officially assigned as yet.

jeffgoh avatar Feb 21 '24 21:02 jeffgoh

Hi,

it seems that no one is interested in this request anymore. however, I think it could solve some specific use cases.

so I kindly ask for a response from the developers.

many thanks

Antonio-Prado avatar May 23 '24 12:05 Antonio-Prado

Hi,

it seems that no one is interested in this request anymore. however, I think it could solve some specific use cases.

so I kindly ask for a response from the developers.

many thanks

Sorry @Antonio-Prado , Maybe I didn't understand you before, but TSIG support for Unbound (for zone transfers) is still very much on the road map.

wtoorop avatar May 23 '24 13:05 wtoorop

FYI: We're also wanting/waiting for TSIG support for auth zone transfers 👍

pettai avatar Aug 20 '24 09:08 pettai

I know its not helping at all but same with us.

Any plans for the implementation @wcawijngaards ?

derhelge avatar Aug 23 '24 06:08 derhelge