Skip to content

Commit

Permalink
bandit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed Nov 25, 2022
1 parent de7f8fe commit 7183a5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/defaults.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ client_id =
client_secret =
application_id = fig-default-app-id
reconnect_retry_count = 36
rtr_quarantine_keyword = 'infected'

[gcp]
# Use GOOGLE_APPLICATION_CREDENTIALS env variable
Expand Down
2 changes: 1 addition & 1 deletion fig/falcon/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def rtr_fetch_file(self, device_id, filepath):
import py7zr # pylint: disable=C0415

flo = io.BytesIO(z7pack)
with py7zr.SevenZipFile(flo, password='infected') as archive:
with py7zr.SevenZipFile(flo, password=config.get('falcon', 'rtr_quarantine_keyword')) as archive:
content = archive.readall()
if len(content) != 1:
raise ApiError('Cannot extract RTR file from 7z')
Expand Down

0 comments on commit 7183a5b

Please sign in to comment.