Implement lab4 private S3 attachments, safe reconciliation and defense guide

This commit is contained in:
2026-10-29 21:36:49 +03:00
parent ec540a1a72
commit 6039524214
61 changed files with 5029 additions and 23 deletions
@@ -0,0 +1,10 @@
CREATE TABLE message_requests (
user_id uuid NOT NULL REFERENCES users(id),
chat_id uuid NOT NULL REFERENCES chats(id),
key text NOT NULL,
body_hash bytea NOT NULL,
response jsonb NOT NULL,
expires_at timestamptz NOT NULL,
PRIMARY KEY(user_id,chat_id,key)
);
CREATE INDEX message_requests_expiry_idx ON message_requests(expires_at);