davsclaus opened a new pull request, #30366:
URL: https://github.com/apache/camel/pull/30366

   [CAMEL-27223](https://issues.apache.org/jira/browse/CAMEL-27223)
   
   ## What changed
   - The listings of the Camel CLI mask endpoint URIs the way Camel logs them 
(`URISupport.sanitizeUri`), in the table and in `--json`.
     - Commands: `camel get endpoint`, `consumer`, `producer`, `route`, 
`processor`, `service`, `kafka`, `timeline` and `sql-trace` (the endpoint only, 
not the SQL), `camel top route`, `camel top processor` and `camel status`.
     - The new helper is `ListingFormat.masked(...)`.
   - A new `--mask` option (default `true`): set it to `false` to see the URIs 
as configured.
   - `--filter` on `camel get endpoint` now matches the masked URI.
   - The dev consoles still give the URIs as configured, because `cmd send`, 
`cmd browse` and the matching of routes and endpoints need them (see 
CAMEL-25446). The TUI already masks them on its screens.
   - The command docs, the command metadata and the golden help file are 
regenerated.
   
   ## Upgrade note
   New 4.24 entry: the listings show `xxxxxx` for passwords, keys and the user 
name in the URI. Use `--mask=false` for the old output.
   
   ## Tests
   - New unit tests for the helper, and for `get endpoint` (table, JSON and 
`--mask=false`), `consumer`, `producer`, `service`, `route` and `status`.
   - All 8 fail when the helper does not mask.
   - The camel-jbang-core unit tests pass.
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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