You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "tomaioo (via GitHub)" <gi...@apache.org> on 2026/06/21 00:20:56 UTC

[PR] Security: Use of panic in doc-gen main.go [camel-k]

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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Move from panic to error in doc-gen main.go [camel-k]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on PR #6694:
URL: https://github.com/apache/camel-k/pull/6694#issuecomment-4768000106

   please rebase, there was some issue on `main`


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org