Files
mtusi2026lab6-fork/docs/lab4/evidence/s3_private.txt
T

68 lines
2.4 KiB
Plaintext

# 2026-11-04 14:04:54 UTC | Приватный бакет вне API, права ключей, закрытые админ-порты | exit 0 | 2.3s
$ python scripts/ops.py s3-check
Container messenger-lab4-api-run-33922d9bc56f Creating
Container messenger-lab4-api-run-33922d9bc56f Created
{
"endpoint_host": "s3",
"bucket": "messenger-attachments",
"checks": [
{
"check": "api credentials: put/get own bucket",
"ok": true,
"detail": ""
},
{
"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]"
},
{
"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": "111817 bytes"
}
],
"ok": true
}
# 2026-11-04 14:04:54 UTC | На API нет хранилища оригиналов: read-only rootfs, только tmpfs, без volumes | exit 0 | 0.5s
$ python scripts/ops.py api-fs
messenger-lab4-api-1 ReadonlyRootfs=True Tmpfs={'/tmp': 'size=16m'} Mounts=['bind:/run/secrets/database_url', 'bind:/run/secrets/cache_url', 'bind:/run/secrets/s3_access_key_id', 'bind:/run/secrets/s3_secret_access_key']
messenger-lab4-api-2 ReadonlyRootfs=True Tmpfs={'/tmp': 'size=16m'} Mounts=['bind:/run/secrets/database_url', 'bind:/run/secrets/cache_url', 'bind:/run/secrets/s3_access_key_id', 'bind:/run/secrets/s3_secret_access_key']
# 2026-11-04 14:04:55 UTC | API: файлы в /tmp (tmpfs) после загрузок | exit 0 | 0.3s
$ docker compose --env-file .env exec -T api sh -c df -h /tmp; echo files_in_tmp=$(find /tmp -type f | wc -l)
Filesystem Size Used Avail Use% Mounted on
tmpfs 16M 0 16M 0% /tmp
files_in_tmp=0