refactor(shared): improve logger injection, env validation, and PII masking

Enhance shared infrastructure services with proper dependency injection,
stricter environment variable validation, and improved PII data masking.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Ho Ngoc Hai
2026-04-09 09:41:01 +07:00
parent 99fbc1aaca
commit 1e0436e95f
7 changed files with 55 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ const REQUIRED_IN_PRODUCTION: readonly string[] = [
'DATABASE_URL',
'CORS_ORIGINS',
'REDIS_HOST',
'KYC_ENCRYPTION_KEY',
];
const REQUIRED_WHEN_USED: ReadonlyMap<string, string> = new Map([