assemblyline-v4-service 4.4.2.dev4__py3-none-any.whl → 4.4.2.dev5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of assemblyline-v4-service might be problematic. Click here for more details.
- assemblyline_v4_service/VERSION +1 -1
- assemblyline_v4_service/updater/updater.py +5 -3
- {assemblyline_v4_service-4.4.2.dev4.dist-info → assemblyline_v4_service-4.4.2.dev5.dist-info}/METADATA +1 -1
- {assemblyline_v4_service-4.4.2.dev4.dist-info → assemblyline_v4_service-4.4.2.dev5.dist-info}/RECORD +7 -7
- {assemblyline_v4_service-4.4.2.dev4.dist-info → assemblyline_v4_service-4.4.2.dev5.dist-info}/LICENCE.md +0 -0
- {assemblyline_v4_service-4.4.2.dev4.dist-info → assemblyline_v4_service-4.4.2.dev5.dist-info}/WHEEL +0 -0
- {assemblyline_v4_service-4.4.2.dev4.dist-info → assemblyline_v4_service-4.4.2.dev5.dist-info}/top_level.txt +0 -0
assemblyline_v4_service/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.4.2.
|
|
1
|
+
4.4.2.dev5
|
|
@@ -14,13 +14,13 @@ import threading
|
|
|
14
14
|
import subprocess
|
|
15
15
|
import hashlib
|
|
16
16
|
from contextlib import contextmanager
|
|
17
|
-
from passlib.hash import bcrypt
|
|
18
17
|
from queue import Queue
|
|
19
18
|
from zipfile import ZipFile, BadZipFile
|
|
20
19
|
|
|
21
20
|
from assemblyline.common import forge, log as al_log
|
|
22
21
|
from assemblyline.common.isotime import epoch_to_iso, now_as_iso
|
|
23
22
|
from assemblyline.common.identify import zip_ident
|
|
23
|
+
from assemblyline.common.security import get_password_hash
|
|
24
24
|
from assemblyline.odm.messages.changes import Operation, ServiceChange, SignatureChange
|
|
25
25
|
from assemblyline.remote.datatypes.events import EventSender, EventWatcher
|
|
26
26
|
|
|
@@ -71,7 +71,7 @@ def temporary_api_key(ds: AssemblylineDatastore, user_name: str, permissions=('R
|
|
|
71
71
|
random_pass = get_random_password(length=48)
|
|
72
72
|
user = ds.user.get(user_name)
|
|
73
73
|
user.apikeys[name] = {
|
|
74
|
-
"password":
|
|
74
|
+
"password": get_password_hash(random_pass),
|
|
75
75
|
"acl": permissions,
|
|
76
76
|
"roles": UPDATER_API_ROLES
|
|
77
77
|
}
|
|
@@ -493,7 +493,9 @@ class ServiceUpdater(ThreadedCoreBase):
|
|
|
493
493
|
validated_files = list()
|
|
494
494
|
for file, sha256 in files:
|
|
495
495
|
files_sha256.setdefault(source_name, {})
|
|
496
|
-
if previous_hashes.get(
|
|
496
|
+
if previous_hashes.get(
|
|
497
|
+
source_name, {}).get(
|
|
498
|
+
file, None) != sha256 and self.is_valid(file):
|
|
497
499
|
files_sha256[source_name][file] = sha256
|
|
498
500
|
validated_files.append((file, sha256))
|
|
499
501
|
|
{assemblyline_v4_service-4.4.2.dev4.dist-info → assemblyline_v4_service-4.4.2.dev5.dist-info}/RECORD
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
assemblyline_v4_service/VERSION,sha256=
|
|
1
|
+
assemblyline_v4_service/VERSION,sha256=skaIBVIi_VYHIp2ZGb80fexrlfYQDXbQceIonmMaaz0,11
|
|
2
2
|
assemblyline_v4_service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
assemblyline_v4_service/healthz.py,sha256=sS1cFkDLw8hUPMpj7tbHXFv8ZmHcazrwZ0l6oQDwwkQ,1575
|
|
4
4
|
assemblyline_v4_service/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -22,7 +22,7 @@ assemblyline_v4_service/updater/app.py,sha256=Mtmx4bkXfP4nFqqa5q15jW8QIXr4JK84lC
|
|
|
22
22
|
assemblyline_v4_service/updater/client.py,sha256=VKmkiDz3klvMzXiGSQTH7QN-MfHuJnwaIR7BaXy9aZM,5156
|
|
23
23
|
assemblyline_v4_service/updater/gunicorn_config.py,sha256=p3j2KPBeD5jvMw9O5i7vAtlRgPSVVxIG9AO0DfN82J8,1247
|
|
24
24
|
assemblyline_v4_service/updater/helper.py,sha256=HbH5p6UTdHyIgoctF1c1pQkoqTtzaxfHOi9KXGwn0eM,9435
|
|
25
|
-
assemblyline_v4_service/updater/updater.py,sha256=
|
|
25
|
+
assemblyline_v4_service/updater/updater.py,sha256=V0pFwevPYf2ZMfhLajIRP2S-DanHx-ZDK89SmUNR_Fc,34701
|
|
26
26
|
test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
27
|
test/test_healthz.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
|
|
28
28
|
test/test_run_privileged_service.py,sha256=DkeLUlrb7rGx3nZ04aADU9HXXu5mZTf_DBwT0xhzIv4,7
|
|
@@ -37,8 +37,8 @@ test/test_common/test_request.py,sha256=wxSwnOj-_YOv2SuZjOJsw09q8A7p8GJmJuK4vozq
|
|
|
37
37
|
test/test_common/test_result.py,sha256=Wm0Cs5kZRzlZr0jL-l8OTsYAvkoN2eaB3NkeXzvyssI,42208
|
|
38
38
|
test/test_common/test_task.py,sha256=jnfF68EgJIu30Pz_4jiJHkncfI-3XpGaut5r79KIXOA,18718
|
|
39
39
|
test/test_common/test_utils.py,sha256=TbnBxqpS_ZC5ptXR9XJX3xtbItD0mTbtiBxxdyP8J5k,5904
|
|
40
|
-
assemblyline_v4_service-4.4.2.
|
|
41
|
-
assemblyline_v4_service-4.4.2.
|
|
42
|
-
assemblyline_v4_service-4.4.2.
|
|
43
|
-
assemblyline_v4_service-4.4.2.
|
|
44
|
-
assemblyline_v4_service-4.4.2.
|
|
40
|
+
assemblyline_v4_service-4.4.2.dev5.dist-info/LICENCE.md,sha256=NSkYo9EH8h5oOkzg4VhjAHF4339MqPP2cQ8msTPgl-c,1396
|
|
41
|
+
assemblyline_v4_service-4.4.2.dev5.dist-info/METADATA,sha256=GrrWQ1xyn0v4OpKwGRHqop_Xgr8wYnpQhutJphXsukQ,9794
|
|
42
|
+
assemblyline_v4_service-4.4.2.dev5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
43
|
+
assemblyline_v4_service-4.4.2.dev5.dist-info/top_level.txt,sha256=LpTOEaVCatkrvbVq3EZseMSIa2PQZU-2rhuO_FTpZgY,29
|
|
44
|
+
assemblyline_v4_service-4.4.2.dev5.dist-info/RECORD,,
|
|
File without changes
|
{assemblyline_v4_service-4.4.2.dev4.dist-info → assemblyline_v4_service-4.4.2.dev5.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|