tomaioo opened a new pull request, #6694:
URL: https://github.com/apache/camel-k/pull/6694

   ## Summary
   
   Security: Use of panic in doc-gen main.go
   
   ## Problem
   
   **Severity**: `Low` | **File**: `cmd/util/doc-gen/main.go:L42`
   
   The `main.go` in `cmd/util/doc-gen` uses `panic(err)` for error handling, 
which can cause abrupt program termination and may leak sensitive information 
in stack traces if the error contains internal paths or configuration details.
   
   ## Solution
   
   Replace `panic(err)` with proper error handling that logs the error and 
exits gracefully with a non-zero status code, avoiding stack trace exposure.
   
   ## Changes
   
   - `cmd/util/doc-gen/main.go` (modified)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to