Skip to content

Store bên ngoài / không phải DB nghiệp vụ ​

Version: 0.2
Date: 2026-11-16
Status: Working baseline (skeleton)

Các store này không thiết kế như schema Application MINAP. Ghi lại để Owner thấy ranh giới và mapping ID.

1. Keycloak ​

Chủ đềGhi chú
Sở hữuLogin, mật khẩu, OIDC token, SoT email auth; mọi federated IdP (Google MVP; sau này Apple / Microsoft / GitHub / …)
Federated reference idsApple sub, GitHub user id, Microsoft oid, … — Keycloak quản lý (Federated Identity / broker link trên user IdP). Platform Core không nhân bản từng provider id
List / revoke linked IdPsCó — qua Keycloak Account Console hoặc Account/Admin API (xem journey J2 §5.6). Timestamp “lúc link” phụ thuộc API Keycloak
Phiên đa thiết bị / logout từng máyKeycloak user sessions = SoT; list + delete session qua Account Console hoặc API (journey J2 §5.7). Hủy session = gọi IdP, không bảng session trên Core
Lịch sử login dài hạnKeycloak Events và/hoặc Core audit_events — OPEN retention; không nhầm với session store đang active
MINAP lưuChỉ accounts.keycloak_subject (+ mirror email, optional last_login_at); không password; không bảng IdP đã link; không SoT danh sách phiên thiết bị
Thêm provider mớiCấu hình Identity Provider trên Keycloak + client secrets trong Infisical — không migration bảng Core cho từng mạng xã hội
SchemaVendor/IdP — ngoài phạm vi thiết kế bảng MINAP
JourneyJ1 / J1b / J2 — /architecture/database/20-user-journey-data-ownership

2. Object store S3-compatible (bytes) ​

Chủ đềGhi chú
Sở hữuBytes file (object key mờ)
SoT tên / authz / đăng ký kết nốiFile Service DB (storage_connections + files) — không listing object
Credential per connectionTrong DB (secret ciphertext); Infisical chỉ KEK — xem 02
MinIO CommunityKhông dùng triển khai mới (archived) — xem 92
Ứng viênMọi store S3-compatible đăng ký như một connection: RustFS / Garage / SeaweedFS / S3 / R2
Tài liệu/architecture/05-storage-and-file-service · 02 · 92

3. Matrix / Synapse (Chat) ​

Chủ đềGhi chú
Sở hữuRoom, message, map Matrix account
MINAPMột MINAP Account ↔ một Matrix Account (D-010)
Business ChatDEFERRED cluster DB riêng (D-013)
Tài liệu/architecture/06-minap-chat-architecture

4. Infisical ​

Chủ đềGhi chú
Sở hữuSecrets và ENV (D-016)
Không phảiDữ liệu giao dịch nghiệp vụ

5. Variant local disk ​

Chủ đềGhi chú
Sở hữuCache WebP multi-size trên disk (FS_VARIANT_ROOT/…); first-frame video; tái tạo được
Metadata GCBảng variant_cache trong File Service DB + job variant.cleanup_cron
ConfigRoot = ENV/Infisical; TTL/allowlist = config.variant.*
Không phảiSoT của bản gốc; không dựa systemd-tmpfiles làm GC chính

docs/ = SoT duy nhất · văn xuôi tiếng Việt + thuật ngữ chuyên ngành English