@@ -256,7 +256,7 @@ def submit_file(
256256
257257
258258def submit_to_strelka (
259- file , user , submitted_hash , submitted_description , submitted_type
259+ file , user , submitted_hash , submitted_description , submitted_type , bypass_gatekeeper = False
260260):
261261 """
262262 Submit file to Strelka for analysis and save results to the database.
@@ -266,7 +266,8 @@ def submit_to_strelka(
266266 user: User object representing the authenticated user.
267267 submitted_hash: Hash of the submitted file.
268268 submitted_description: Description of the submitted file.
269- submitted_type: Type of submission (e.g., 'api', 'virustotal').
269+ submitted_type: Type of submission (e.g., 'api', 'virustotal', 'resubmission').
270+ bypass_gatekeeper: If True, bypasses gatekeeper caching for this request.
270271
271272 Returns:
272273 Analysis results and a 200 status code if successful.
@@ -286,6 +287,7 @@ def submit_to_strelka(
286287 "client_user_name" : user .user_cn ,
287288 },
288289 submitted_hash ,
290+ bypass_gatekeeper = bypass_gatekeeper ,
289291 )
290292
291293 # If the Strelka submission was not successful, return an error message.
@@ -805,7 +807,8 @@ def read(self, *args, **kwargs):
805807 user ,
806808 "" , # No submitted_hash for resubmission
807809 new_description ,
808- "resubmission" # Mark as resubmission type
810+ "resubmission" , # Mark as resubmission type
811+ bypass_gatekeeper = True # Bypass gatekeeper for resubmissions
809812 )
810813
811814 # Add original submission ID to the response
0 commit comments