Skip to content

docs: recommend TransactionLimiter for bounding untrusted zone input#1281

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

docs: recommend TransactionLimiter for bounding untrusted zone input#1281
mohammedix88 wants to merge 1 commit 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.

Added a warning about handling untrusted input when building zones, including a code example for using TransactionLimiter.
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