ЛР 7: TLS, mTLS, OpenBao и безопасность — на 3
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
GRANT SELECT, INSERT ON users, chats, chat_members, messages, message_attachments TO lab_api;
|
||||
-- FOR KEY SHARE needs an UPDATE privilege on at least one column.
|
||||
GRANT UPDATE (chat_id) ON chat_members TO lab_api;
|
||||
GRANT SELECT, INSERT, DELETE ON sessions TO lab_api;
|
||||
GRANT SELECT, INSERT, UPDATE ON message_idempotency TO lab_api;
|
||||
GRANT SELECT, INSERT ON attachments, attachment_jobs TO lab_api;
|
||||
GRANT SELECT ON attachment_variants TO lab_api;
|
||||
GRANT SELECT ON attachments, attachment_jobs, attachment_variants TO lab_worker;
|
||||
GRANT UPDATE (status, error_code, updated_at) ON attachments TO lab_worker;
|
||||
GRANT UPDATE (attempt, retry_at, last_error) ON attachment_jobs TO lab_worker;
|
||||
GRANT INSERT ON attachment_variants TO lab_worker;
|
||||
Reference in New Issue
Block a user