[MNT-22392] (#1188)

added invariant configuration for backup location
This commit is contained in:
Elia Porciani
2021-06-07 18:27:45 +02:00
committed by GitHub
parent 61dd01d16e
commit cefc68f4df
2 changed files with 16 additions and 0 deletions
@@ -1176,6 +1176,15 @@
<str name="pollInterval">00:00:60</str>
</lst>
-->
<!--
This invariant is needed to prevent the usage of location parameter in the replication handler APIs.
There is no validation for location parameter. This results in a vulnerability described in https://nvd.nist.gov/vuln/detail/CVE-2020-13941
-->
<lst name="invariants">
<str name="location">${solr.backup.dir:.}</str>
</lst>
</requestHandler>
<!-- Search Components
@@ -234,6 +234,13 @@ solr.request.content.compress=false
#
solr.initial.transaction.range=0-2000
# Backup
# The path where the backup will be created.
# If the path is not absolute then the backup path will be relative to Solrs instance directory.
# By default, backups will be placed in the solr's instance directory.
# solr.backup.dir=./backup
#
# Start indexing from a given Transaction Id, skipping the previous ones
# WARNING: This is a DEVELOPMENT feature and it must not be used in PROD environments