some docs
This commit is contained in:
37
secutity architecture.md
Normal file
37
secutity architecture.md
Normal file
@@ -0,0 +1,37 @@
|
||||
┌─────────────────────────────┐
|
||||
│ Browser │
|
||||
│ HTML + HTMX + UI Kit │
|
||||
└──────────────┬──────────────┘
|
||||
│
|
||||
HTTPS (TLS)
|
||||
│
|
||||
┌──────────────▼──────────────┐
|
||||
│ GoFiber App │
|
||||
├─────────────────────────────┤
|
||||
│ CORS Middleware │
|
||||
│ Session Middleware │
|
||||
│ CSRF (optional) │
|
||||
│ Rate Limiter (Auth) │
|
||||
└──────────────┬──────────────┘
|
||||
│
|
||||
┌───────────────────▼───────────────────┐
|
||||
│ Auth & Authorization │
|
||||
│ - RequireAuth │
|
||||
│ - RequireAdmin │
|
||||
│ - Role validation │
|
||||
└───────────────────┬───────────────────┘
|
||||
│
|
||||
┌───────────────────▼───────────────────┐
|
||||
│ Business Layer (Services) │
|
||||
└───────────────────┬───────────────────┘
|
||||
│
|
||||
┌───────────────────▼───────────────────┐
|
||||
│ Repository Layer (GORM) │
|
||||
└───────────────────┬───────────────────┘
|
||||
│
|
||||
┌───────────────────▼───────────────────┐
|
||||
│ Database │
|
||||
│ - Users (bcrypt passwords) │
|
||||
│ - Token hashes (SHA-256) │
|
||||
│ - AuditLog │
|
||||
└───────────────────────────────────────┘
|
||||
Reference in New Issue
Block a user