Alur Aktivitas & Pengarsipan
Setiap dokumen yang masuk ke dalam sistem melalui proses verifikasi, klasifikasi kategori, dan enkripsi sebelum diteruskan ke penyimpanan cloud.
graph TD
A[User Upload File] --> B{Storage Check}
B -- Local Only --> C[Local Storage /arsip/]
B -- Cloud Only --> D[Google Drive Microservice]
B -- Both --> E[Sync Binary]
D --> F[Register GDrive ID to MySQL]
C --> G[Register File Path to MySQL]
F --> H[Access via Reverse Proxy]
G --> H
H --> I[Public Preview /detail_dokumen.php]
Sistem Keamanan Microservice
Otentikasi Token
Setiap dokumen memiliki UUID Token unik yang mencegah akses langsung via ID numerik.
Cloud Proxying
File Google Drive diakses melalui proxy sistem sehingga link asli GDrive tidak terekspos.
Activity Log Tracking
Setiap download dan preview dicatat dalam log aktivitas untuk audit trail petugas.
sequenceDiagram
participant U as User
participant S as System Layer
participant DB as MySQL Database
participant GD as Google Drive API
U->>S: Request Document (Token)
S->>DB: Validate Token & Permission
DB-->>S: Valid (Return GDrive ID)
S->>GD: Authenticate Service Account
GD-->>S: Stream Content Binary
S-->>U: Secure Document Preview