﻿# Приватность бакета и права ключа API вне API
# python scripts/ops.py s3-check
# 2026-11-18T00:03:24.3699830+03:00
 Container messenger-lab7-api-run-25e8a0a5666b Creating 
 Container messenger-lab7-api-run-25e8a0a5666b Created 
{
  "endpoint_host": "s3",
  "bucket": "messenger-attachments",
  "checks": [
    {
      "check": "api credentials: put/get staging/",
      "ok": true,
      "detail": ""
    },
    {
      "check": "api credentials cannot write final/ (worker prefix)",
      "ok": true,
      "detail": "AccessDenied"
    },
    {
      "check": "api credentials cannot list the bucket",
      "ok": true,
      "detail": "AccessDenied"
    },
    {
      "check": "anonymous GET object is denied",
      "ok": true,
      "detail": "HTTP 403"
    },
    {
      "check": "anonymous list bucket is denied",
      "ok": true,
      "detail": "HTTP 403"
    },
    {
      "check": "anonymous list buckets is denied",
      "ok": true,
      "detail": "HTTP 403"
    },
    {
      "check": "api credentials cannot create buckets",
      "ok": true,
      "detail": "AccessDenied"
    },
    {
      "check": "api credentials cannot delete the bucket",
      "ok": true,
      "detail": "AccessDenied"
    },
    {
      "check": "SeaweedFS admin/UI ports are not reachable on the shared network",
      "ok": true,
      "detail": "checked [9333, 8888, 8080, 19333, 18888, 8334, 18333, 18334]"
    },
    {
      "check": "anonymous GET of a real attachment object is denied",
      "ok": true,
      "detail": "HTTP 403"
    },
    {
      "check": "same object is readable with API credentials and matches sha256",
      "ok": true,
      "detail": "93 bytes"
    }
  ],
  "ok": true
}
