Ho Ngoc Hai
99385d8263
feat(auth): validate KYC image URL hosts match MinIO bucket
Closes TEC-2725. Backend KYC presign + submit endpoints already landed in
8f8e20f; this adds the remaining acceptance criterion — host validation on
presigned URLs accepted via /auth/kyc/submit.
- Add IMediaStorageService.isTrustedUrl(url) — host+bucket check, supports
MINIO_TRUSTED_HOSTS for CDN aliases
- SubmitKycHandler rejects imageUrls pointing outside our MinIO bucket
- Update handler specs with mock + new untrusted-host test
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-18 00:32:02 +07:00
..
2026-04-18 00:32:02 +07:00
2026-04-09 01:23:06 +07:00
2026-04-14 14:57:59 +07:00
2026-04-07 23:52:33 +07:00
2026-04-16 09:11:16 +07:00
2026-04-08 13:15:36 +07:00
2026-04-10 23:26:43 +07:00
2026-04-08 00:24:42 +07:00