feat(db): add translator2 credentials to .env.example and setup script#218
Conversation
Add SEED_TRANSLATOR2_EMAIL and SEED_TRANSLATOR2_PASSWORD to .env.example and surface them in the setup.ts credential summary. Fix default password for translator2 in dev-users seed (was 't2@123456', now 't@123456' to match the .env.example default and the other translator account).
📝 WalkthroughWalkthroughAdds environment variables ChangesTranslator2 Seed Credentials
Estimated code review effort: 1 (Trivial) | ~3 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/db/scripts/setup.ts`:
- Around line 61-66: The setup summary in the seeding script is printing
cleartext passwords for Manager, Translator, and Translator2, which should be
removed or redacted. Update the logging in the setup routine to omit password
values entirely or replace them with a masked placeholder while still keeping
the email/username identifiers visible. Use the existing seed variables in the
setup flow to locate the affected console.log statements and keep the summary
safe for stdout and CI logs.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 8493f56b-f128-4996-b35c-a91e63d0cecc
📒 Files selected for processing (3)
.env.examplesrc/db/scripts/setup.tssrc/db/seeds/dev-users.ts
Add SEED_TRANSLATOR2_EMAIL and SEED_TRANSLATOR2_PASSWORD to .env.example and surface them in the setup.ts credential summary. Fix default password for translator2 in dev-users seed (was 't2@123456', now 't@123456' to match the .env.example default and the other translator account).
Summary by CodeRabbit