Closed jherrflexion closed 3 weeks ago
Here are some key observations to aid the review process:
**🎫 Ticket compliance analysis 🔶** **[1399](https://github.com/CDCgov/trusted-intermediary/issues/1399) - Partially compliant** Fully compliant requirements: - Alert on high memory usage for CDC TI. Not compliant requirements: - Alert specifically on high CPU usage. - Alerts for SFTP and database not addressed. |
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪ |
🧪 No relevant tests |
🔒 No security concerns identified |
⚡ Recommended focus areas for review Possible Misconfiguration The memory threshold values are hardcoded. Consider making them configurable to adapt to different environments. Resource Duplication There are two similar alert resources defined. Check if they can be combined or if the differentiation is necessary. |
Explore these optional code suggestions:
Category | Suggestion | Score |
Maintainability |
Use a variable for memory thresholds to enhance maintainability___ **Consider using a variable for the memory threshold values in theti_memory_alert resource to maintain consistency and ease of configuration changes.** [operations/template/alert.tf [276]](https://github.com/CDCgov/trusted-intermediary/pull/1546/files#diff-ea7b0de5fd253c48860400c7536561ab82d76414012b803eeb3a2cb75d8a439aR276-R276) ```diff -threshold = local.higher_environment_level ? 4000000000 : 2000000000 +threshold = var.memory_threshold ``` Suggestion importance[1-10]: 7Why: Using a variable for memory thresholds in the 'ti_memory_alert' resource would improve maintainability and ease future configuration changes. This is a practical suggestion that enhances the code's flexibility. | 7 |
Best practice |
Implement validation for the
___
**Add validation for the | 6 |
Verify and update the
___
**Ensure that the | 5 | |
Enhancement |
Use a variable for
___
**Consider adding more granularity to the | 6 |
Added memory usage alerts for TI - web app only.
Issue
1399 #1399
This card is for high CPU usage, but the alert is for high memory. Should it link to a different card?
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Added memory usage alerts for TI - web app only.
Issue
1401
https://github.com/CDCgov/trusted-intermediary/issues/1401