feat: add direct upload to 5 track

This commit is contained in:
TAskMAster339
2026-10-18 23:13:35 +03:00
parent 4d91357932
commit d7e7ea93f1
30 changed files with 2942 additions and 580 deletions
+5 -3
View File
@@ -22,12 +22,14 @@ def main():
if mount["Type"] == "bind"
]
if service == "s3":
assert not info["HostConfig"]["PortBindings"], "S3 ports are published"
assert info["HostConfig"]["PortBindings"] == {
"9000/tcp": [{"HostIp": "127.0.0.1", "HostPort": "9000"}]
}, "only loopback S3 port may be published"
assert "MINIO_BROWSER=off" in info["Config"]["Env"], (
"MinIO console is enabled"
)
assert set(info["NetworkSettings"]["Networks"]) == {
"highload-lab4_data"
"highload-lab4_data", "highload-lab4_edge"
}
else:
assert (
@@ -56,7 +58,7 @@ def main():
directory.mkdir(parents=True, exist_ok=True)
(directory / "isolation.json").write_text(json.dumps(evidence, indent=2) + "\n")
print(
"PASS: private S3 network, disabled console, restricted API mounts, bounded tmpfs"
"PASS: loopback-only private S3, disabled console, restricted API mounts, bounded tmpfs"
)