Conversation
Reviewer's Guide by SourceryThis pull request introduces several enhancements and refactorings to the post-event system. It introduces generics to No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey @p14n - I've reviewed your changes and found some issues that need to be addressed.
Blocking issues:
Overall Comments:
- Consider providing a default implementation of the
convertmethod inDefaultMessageBrokerto avoid forcing subclasses to implement it when no conversion is needed. - It looks like Publisher is a utility class, so it should have a private constructor to prevent instantiation.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🔴 Security: 2 blocking issues
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| HikariDataSource ds = new HikariDataSource(); | ||
| ds.setJdbcUrl(cfg.jdbcUrl()); | ||
| ds.setUsername(cfg.dbUser()); | ||
| ds.setPassword(cfg.dbPassword()); |
There was a problem hiding this comment.
🚨 issue (security): Looks like a hardcoded database password.
Please ensure this password is not a production password and is properly secured.
| public static DataSource createPool(PostEventConfig cfg){ | ||
| HikariDataSource ds = new HikariDataSource(); | ||
| ds.setJdbcUrl(cfg.jdbcUrl()); | ||
| ds.setUsername(cfg.dbUser()); |
There was a problem hiding this comment.
🚨 issue (security): Looks like a hardcoded database username.
Please ensure this username is not a production username and is properly secured.
Also closes #32