docs: Routing Appender security considerations for high-cardinality keys#4217
Open
SebTardif wants to merge 1 commit into
Open
docs: Routing Appender security considerations for high-cardinality keys#4217SebTardif wants to merge 1 commit into
SebTardif wants to merge 1 commit into
Conversation
…ty keys Document that default Route appender definitions create one appender per routing key value, which can exhaust file descriptors when the key is untrusted or high-cardinality. Recommend purge policies and low-cardinality keys. Fixes apache#4181 Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
When a default
Routeembeds an appender definition, the Routing Appender creates one subordinate appender per distinct routing key. If the key comes from untrusted or high-cardinality data (for example${ctx:userId}), that can exhaust file descriptors and memory.Evidence
Issue #4181 describes FD exhaustion with a user-controlled routing key and file-backed routes. This PR documents the risk and mitigations (
IdlePurgePolicy, low-cardinality keys, prefer appender references).Summary
Adds a Security considerations section to the Routing Appender manual page, linked from the existing purge-policy discussion.
Fixes #4181
Validation
Documentation-only change under
src/site/antora/.../appenders/delegating.adocplus changelog entry.