Allow admins to bypass Direct Transfer download file size limit
What does this MR do and why?
This MR adds an ops feature flag that allows administrators to bypass the configured Direct Transfer download file size limit when enabled. It is not meant to be rolled out as a default feature and was created to facilitate large migrations on .com
. Additionally, downloaded files that exceeded the instance's configured download size are logged.
Screenshots or screen recordings
N/A
How to set up and validate locally
- Enable
import_admin_override_max_download_file_size
for an admin user - Lower the maximum download file size in direct transfer to something small, e.g. 1 MiB
- Perform an import as the admin user in step 1
- The import should complete successfully despite the low file size limit.
- The same import when imported as another admin, a non-admin user, or when the ops flag is disabled should have "file size exceeds limit" errors in the logs and should not complete successfully
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #519759 (closed)
Edited by Sam Word