Добавить прямую загрузку по короткой подписи.

Proxy endpoint сохранён. Complete сверяет владельца, размер и checksum, а сравнение трафика API на двух размерах лежит в evidence.
This commit is contained in:
2026-11-09 00:36:52 +03:00
parent 8faf08d8eb
commit 4654de5837
18 changed files with 812 additions and 11 deletions
+4 -3
View File
@@ -211,13 +211,14 @@ def main():
capture_output=True,
text=True,
)
if published.returncode == 0 and published.stdout.strip():
raise SystemExit("s3 port is published: " + published.stdout.strip())
binding = published.stdout.strip()
if published.returncode == 0 and binding and not binding.startswith("127.0.0.1:"):
raise SystemExit("s3 port is published outside loopback: " + binding)
summary = {
"anonymous_bucket_status": anonymous_status(),
"second_bucket": other_bucket_denied(),
"sweep": plant_and_sweep(),
"s3_port_published": False,
"s3_port_published": binding or False,
"memory": memory_sample(),
}
OUT.parent.mkdir(exist_ok=True)