refactor(validation): unify UI and identity layer validation as SSoT#396
Conversation
UI layer had separate validation logic (SAFE_TEXT_REGEX) from identity layer (DANGEROUS_PATTERNS), risking divergence. Delegate all UI validators to inputValidator.ts functions. Add hasDangerousChars() check to validateFieldForDangerousPatterns and isShellSafePath for control character detection. Add consistency tests. 🖥️ IDE: [Cursor](https://cursor.sh) 🔌 Extension: [Claude Code](https://claude.ai/download) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Model-Raw: claude-opus-4-6
🐰 Mimi's Validation Report ✅All checks are looking good! Great job! 🎉 ⏳ Some checks are still running. I will keep watching!
This report was carefully prepared by nullvariant-mimi[bot] |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. Scanned FilesNone |
🦥 Slow's Code Review 😩...yawn... Do I really have to review this?
| Split it up... reading long files is exhausting.
This review was reluctantly filed by nullvariant-slow[bot] |
🕊️ Ciel's Mediation 🌤️*~~ floating down from the clouds ~~ The zoo seems a bit noisy today...* 2 zoo members have reviewed this PR.
⚖️ The zoo has mixed opinions. Some are concerned, some are fine with it. Please review each comment carefully and make the final call.
This mediation was peacefully delivered by nullvariant-ciel[bot] |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…ation Service and description fields now use validateFieldForDangerousPatterns (SAFE_TEXT_REGEX) instead of hasDangerousCharsForText, which rejects ampersand and angle brackets as shell metacharacters. 🖥️ IDE: [Cursor](https://cursor.sh) 🔌 Extension: [Claude Code](https://claude.ai/download) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Model-Raw: claude-opus-4-6
|



Summary
validateNameInput,validateEmailInput,validateGpgKeyIdInput,validateSshHostInput,validateFieldInputdefault case) to identity-layer functions ininputValidator.ts, establishing it as the SSoT for validation logichasDangerousChars()(SAFE_TEXT_REGEX) check tovalidateFieldForDangerousPatternsandisShellSafePath, closing a gap where control characters (0x02-0x09, 0x7F) were not detected by the identity layerTest plan
npx tsc --noEmit)--max-warnings=0🤖 Generated with Claude Code