Enhance Security Configuration Error Handling introducing Userfacing error utils
What does this MR do and why?
This MR is meant to solve: #386854 (closed)
It enhances the error-handling for the Sast configuration page and the security & compliance Configuration page to show a specific error-message when given a Userfacing error message from the Backend and a generic error-message when not given a userfacing Error message from the Backend.
To achieve this behaviour this MR introduces a Frontend- and a Backend-Util to make user-facing and non-user-facing Error messages distinguishable by adding and parsing a prefix.
Screenshots or screen recordings
SAST Configuration
before | after |
---|---|
![]() |
![]() |
Security & Compliance Configuration
No visual changes.
How to set up and validate locally
- create an empty repository (not even a readme-file)
- go to
Security & Compliance
->Configuration
-> Enable Depedency Scanning with a MR (See error alert in action) - go to
Security & Compliance
->Configuration
->Configure SAST
(See error alert in action)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jannik Lehmann