forked from mtusi2026/mtusi2026lab4
ЛР4
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
python student-tests/s3_checks.py
|
||||
object key is server-generated: originals/<random uuid> (filename is not used in the key)
|
||||
anonymous_get_object: HTTP 403
|
||||
anonymous_list_bucket: HTTP 403
|
||||
anonymous_list_buckets: HTTP 403
|
||||
API key GetObject: same SHA-256 as uploaded (the bytes are in the bucket)
|
||||
API key list_buckets: ['messenger-attachments']
|
||||
API key create_bucket: AccessDenied
|
||||
API key make_bucket_public: AccessDenied
|
||||
API key delete_bucket: AccessDenied
|
||||
SeaweedFS admin/UI port 9333 inside the network: closed
|
||||
SeaweedFS admin/UI port 8888 inside the network: closed
|
||||
SeaweedFS admin/UI port 8080 inside the network: closed
|
||||
host 127.0.0.1:9000, :9333, :8888: closed (S3 is not published)
|
||||
attachments columns: id:uuid, chat_id:uuid, owner_id:uuid, filename:text, content_type:text, size_bytes:bigint, sha256:text, width:integer, height:integer, storage_key:text, status:text, created_at:timestamp with time zone, updated_at:timestamp with time zone
|
||||
api 81410605dad3: files with the same SHA-256 on disk: 0
|
||||
api ccaea065f01a: files with the same SHA-256 on disk: 0
|
||||
s3-init run 1: exit 0: s3-init: bucket messenger-attachments already exists; anonymous access: 403 (private)
|
||||
s3-init run 2: exit 0: s3-init: bucket messenger-attachments already exists; anonymous access: 403 (private)
|
||||
objects in bucket before/after bootstrap: 47/47; the file still downloads
|
||||
PASS: bucket is private outside the API, the API S3 user has least privilege, the console is closed, bytes are only in S3, bucket bootstrap is idempotent
|
||||
Reference in New Issue
Block a user