Skip to content

Commit

Permalink
Increase ALIASES_LIMIT to 100 for YamlConfig (#5986)
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico committed Apr 12, 2023
1 parent f7a4593 commit 5cc033c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class YamlConfig internal constructor(
private const val YAML_DOC_LIMIT = 102_400 // limit the YAML size to 100 kB

// limit the anchors/aliases for collections to prevent attacks from for untrusted sources
private const val ALIASES_LIMIT = 10
private const val ALIASES_LIMIT = 100

/**
* Factory method to load a yaml configuration. Given path must exist and point to a readable file.
Expand Down

0 comments on commit 5cc033c

Please sign in to comment.