Repository navigation
fix: 시드 username 검증을 생성 정책과 맞춤 - #528
Conversation
릴리즈 #527 Codex 리뷰 반영. #526에서 생성 정책에 대문자를 허용했는데 prisma/seed/credential-policy.ts는 소문자 전용 정규식을 따로 들고 있어 ADMIN_SEED_USERNAME=Ops.Admin 같은 값이 시드에서 거절됨. - 시드 검증이 USERNAME_PATTERN·MIN/MAX_USERNAME_LENGTH를 직접 쓰도록 변경(정책 사본 제거) - 위반 메시지: 소문자 → 영문 대소문자, 값은 계속 싣지 않음 테스트 - src/test/seed-credential-policy.spec.ts: username 10건을 시드 검증과 AdminCreateAdminInput이 같은 판정을 내리는지 표로 확인, 메시지에 값 미포함·password 위반 메시지 각 1건 - 반증: 수정 전 시드 정책으로 되돌리면 대문자 케이스 2건 실패
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🩺 NestJS Doctor — 90/100 (Excellent)진단 484건 (error 12).
architecture / security 상위 항목
|
🧹 knip — dead-code 리포트전체 리포트
|
Coverage report
Test suite run success4262 tests passing in 384 suites. Report generated by 🧪jest coverage report action from fbac569 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
요약
prisma/seed/credential-policy.ts는 소문자 전용 정규식 사본을 따로 들고 있었습니다.ADMIN_SEED_USERNAME=Ops.Admin처럼 생성 경로에서는 통과하는 값이 시드에서는 거절됩니다.USERNAME_PATTERN과MIN/MAX_USERNAME_LENGTH를 직접 쓰도록 바꿔 사본을 없앴습니다.테스트
src/test/seed-credential-policy.spec.ts를 추가했습니다.@·한글)에 대해 시드 검증과AdminCreateAdminInput이 같은 판정을 내리는지 표로 확인합니다.플랜 대조