forked from mtusi2026/mtusi2026lab4
Добавить прямую загрузку по короткой подписи.
Proxy endpoint сохранён. Complete сверяет владельца, размер и checksum, а сравнение трафика API на двух размерах лежит в evidence.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user