forked from mtusi2026/mtusi2026lab4
feat: attachments over S3 (grade 3)
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
2026-11-20T03:53:23+03:00
|
||||
object bytes live in the RustFS volume, metadata in PostgreSQL
|
||||
|
||||
id | object_key | size_bytes | sha256
|
||||
--------------------------------------+---------------------------------------------------------------------------------+------------+------------------------------------------------------------------
|
||||
0df7c6fd-6ac6-488b-9803-73fee496586f | chats/70682cfc-bf33-4f15-8de6-e85972fc95e0/0df7c6fd-6ac6-488b-9803-73fee496586f | 111817 | 99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75
|
||||
(1 row)
|
||||
|
||||
|
||||
S3 volume listing for that object
|
||||
|
||||
/data/messenger-attachments/chats/70682cfc-bf33-4f15-8de6-e85972fc95e0/0df7c6fd-6ac6-488b-9803-73fee496586f:
|
||||
total 112
|
||||
-rw-r--r-- 1 rustfs rustfs 112398 Nov 20 00:52 xl.meta
|
||||
|
||||
attachments table columns (no binary content)
|
||||
|
||||
column_name | data_type
|
||||
--------------+--------------------------
|
||||
id | uuid
|
||||
chat_id | uuid
|
||||
owner_id | uuid
|
||||
filename | text
|
||||
content_type | text
|
||||
size_bytes | bigint
|
||||
sha256 | text
|
||||
object_key | text
|
||||
status | text
|
||||
error_code | text
|
||||
created_at | timestamp with time zone
|
||||
updated_at | timestamp with time zone
|
||||
(12 rows)
|
||||
|
||||
|
||||
anonymous S3 GET without credentials
|
||||
|
||||
Connecting to s3:9000 (10.89.5.10:9000)
|
||||
HTTP/1.1 403 Forbidden
|
||||
wget: server returned error: HTTP/1.1 403 Forbidden
|
||||
|
||||
admin console port (must be closed)
|
||||
|
||||
000
|
||||
console-closed
|
||||
Reference in New Issue
Block a user