fix(security): enforce HTTPS-only connections (MM-557)#3136
fix(security): enforce HTTPS-only connections (MM-557)#3136Ayush-Patel-56 wants to merge 1 commit intoopenMF:developmentfrom
Conversation
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe Android application enforces HTTPS communication by introducing a network security configuration that disables cleartext traffic and trusts system certificates. The manifest references this new configuration, and the network utility layer now normalizes endpoint URLs to use HTTPS scheme. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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. Review rate limit: 0/1 reviews remaining, refill in 50 minutes and 40 seconds.Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@core/network/src/commonMain/kotlin/org/mifos/mobile/core/network/utils/BaseURL.kt`:
- Around line 19-25: Remove the unused helper getUrl(endpoint: String) in
BaseURL (or mark it clearly) — locate the function named getUrl and either
delete its entire definition if it's not used anywhere, or retain it only after
adding documentation and unit tests that describe expected inputs and behavior
(including handling of http/https and appending API_PATH); update any callers if
you intend to keep it and run tests to ensure no regressions.
🪄 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: defaults
Review profile: CHILL
Plan: Pro
Run ID: 09e9a9ba-1a42-458d-a19b-f7828bb39252
📒 Files selected for processing (3)
cmp-android/src/main/AndroidManifest.xmlcmp-android/src/main/res/xml/network_security_config.xmlcore/network/src/commonMain/kotlin/org/mifos/mobile/core/network/utils/BaseURL.kt
d1f52b1 to
98a4884
Compare
Fixes - MM-557
No UI changes.
Run the static analysis check
./gradlew checkorci-prepush.shto make sure you didn't break anythingIf you have multiple commits please combine them into one commit by squashing them.
Summary by CodeRabbit