Skip to content

Commit

Permalink
Increase max entry size for dynamic plugins (janus-idp#766)
Browse files Browse the repository at this point in the history
in order to avoid triggering a zip-bomb error during installation
for plugins delivered as part of the showcase docker image.

Signed-off-by: David Festal <dfestal@redhat.com>
  • Loading branch information
davidfestal committed Nov 13, 2023
1 parent cade7d1 commit 559f623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/install-dynamic-plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# the dynamic plugins will be installed.
#
# Additionally, the MAX_ENTRY_SIZE environment variable can be defined to set
# the maximum size of a file in the archive (default: 10MB).
# the maximum size of a file in the archive (default: 20MB).
#
# The SKIP_INTEGRITY_CHECK environment variable can be defined with ("true") to skip the integrity check of remote packages
#
Expand Down Expand Up @@ -112,7 +112,7 @@ def verify_package_integrity(plugin: dict, archive: str, working_directory: str)

def main():
dynamicPluginsRoot = sys.argv[1]
maxEntrySize = int(os.environ.get('MAX_ENTRY_SIZE', 10000000))
maxEntrySize = int(os.environ.get('MAX_ENTRY_SIZE', 20000000))
skipIntegrityCheck = os.environ.get("SKIP_INTEGRITY_CHECK", "").lower() == "true"

dynamicPluginsFile = 'dynamic-plugins.yaml'
Expand Down

0 comments on commit 559f623

Please sign in to comment.