CNF-19629: T159: Follow best practices for secure error and exception handling#195
Conversation
|
@aabughosh: This pull request references CNF-19629 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the sub-task to target the "4.21.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aabughosh, greyerof, SchSeba The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
2 similar comments
|
/retest |
|
/retest |
This PR aligns the code with the best practices for secure error handling, as part of CNF-19629
Added a centralized error handler in main to ensure consistent and secure error reporting.
Updated functions to return errors instead of exposing sensitive details or performing direct logging.
Ensured that sensitive information is not leaked through logs or error messages.
This improves both security and maintainability of the code by standardizing how errors are propagated and handled.