Skip to content

docs: recommend TransactionLimiter for bounding untrusted zone input - #1281

Open
mohammedix88 wants to merge 4 commits into
rthalley:limitingfrom
mohammedix88:mohammedix88-patch-1
Open

docs: recommend TransactionLimiter for bounding untrusted zone input#1281
mohammedix88 wants to merge 4 commits into
rthalley:limitingfrom
mohammedix88:mohammedix88-patch-1

Conversation

@mohammedix88

Copy link
Copy Markdown

Documentation-only follow-up to the limiting branch discussion.

Adds a note to doc/zone-make.rst: dns.zone.from_text / from_file apply every record as a transaction change with no default limit, so untrusted input (e.g. a large $GENERATE range or an oversized zone) can exhaust memory/CPU. Passing a dns.transaction.TransactionLimiter as transaction_setup bounds this, raising dns.transaction.TooManyChanges; the default stays unlimited for backwards compatibility.

No code changes; the example uses the API as it exists on the limiting branch. Happy to also add a short SECURITY.md note and/or API-reference entries for TransactionLimiter / TooManyChanges if you'd like.

rthalley and others added 4 commits July 18, 2026 09:08
Added a warning about handling untrusted input when building zones, including a code example for using TransactionLimiter.
@rthalley
rthalley force-pushed the limiting branch 2 times, most recently from 0e86979 to 5c4e5e1 Compare July 26, 2026 18:39
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.

2 participants