mirror of
https://github.com/EZ-Api/ez-api.git
synced 2026-01-13 17:47:51 +00:00
feat(auth): enhance security with token hashing and sync integration
- Add token hash fields to Master and Key models for indexed lookups - Implement SyncService integration in admin and master handlers - Update master key validation with backward-compatible digest lookup - Hash child keys in database and store token digests for Redis sync - Add master metadata sync to Redis for balancer validation - Ensure backward compatibility with legacy rows during migration
This commit is contained in:
@@ -77,8 +77,8 @@ func main() {
|
||||
healthService := service.NewHealthCheckService(db, rdb)
|
||||
|
||||
handler := api.NewHandler(db, syncService, logWriter)
|
||||
adminHandler := api.NewAdminHandler(masterService)
|
||||
masterHandler := api.NewMasterHandler(masterService)
|
||||
adminHandler := api.NewAdminHandler(masterService, syncService)
|
||||
masterHandler := api.NewMasterHandler(masterService, syncService)
|
||||
|
||||
// 4.1 Prime Redis snapshots so DP can start with data
|
||||
if err := syncService.SyncAll(db); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user