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

   # Description
   
   Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). 
The umbrella ticket stays open.
   
   ## Summary
   
   New texts for the component description, the component option 
`verboseLogging` and 12 endpoint options of the SCP
   component (14 texts), checked against the Camel code (`ScpConfiguration`, 
`ScpOperations`, `ScpComponent`) and JSch
   2.28.8 (`com.github.mwiede:jsch`, its default configuration values).
   
   - The component description said "to/from", but the component is producer 
only.
   - `certUri` said the certificate is loaded from the classpath by default: it 
is loaded from the file system, and the
     `classpath:` prefix loads it from the classpath (like `certFile`).
   - The texts did not say which option takes precedence (`privateKeyFile` over 
`privateKeyBytes`; `certFile` over `certUri`
     over `certBytes`), that a certificate is only used together with a private 
key, that `privateKeyFilePassphrase` also
     applies to `privateKeyBytes`, what happens when the known hosts file of 
the user cannot be read, or that an invalid
     `chmod` value is replaced by 664.
   - `caSignatureAlgorithms`, `ciphers` and `preferredAuthentications` now say 
what the JSch default is, instead of an
     unchecked OpenSSH version claim and a cipher list with names that JSch no 
longer enables by default.
   
   `strictHostKeyChecking` was already correct and is unchanged. The options 
that come from `RemoteFileConfiguration` of
   camel-ftp are not touched.
   
   ### Found, not changed
   
   - Texts that come from camel-ftp (`RemoteFileConfiguration`) do not fit scp: 
`host` and `port` say "of the FTP server";
     `timeout` says "Used only by FTPClient", but the scp producer sets it as 
the timeout of the JSch session; `soTimeout`
     is not used by the scp producer.
   - `JSch.setLogger` in `ScpComponent` is static, so `verboseLogging` and the 
logger of the last started SCP component
     apply to every JSch user in the JVM, such as the sftp component.
   - `certFile` and `certUri` do the same thing (same loading, same precedence 
position). Only `certUri` and
     `knownHostsFile` have `supportFileReference = true`.
   - `knownHostsFile`, `certFile`, `certUri`, `certBytes` and 
`preferredAuthentications` are marked `secret`, though none
     holds a secret.
   - `verboseLogging` and `chmod` have no label.
   - With the default `useUserKnownHostsFile=true` and no `knownHostsFile`, the 
producer fails to connect when
     `~/.ssh/known_hosts` does not exist, even with the default 
`strictHostKeyChecking=no`.
   - `SessionUserInfo.promptKeyboardInteractive` returns `null`, so 
`keyboard-interactive` authentication with prompts
     does not succeed, although it is in the JSch default list.
   - An invalid `chmod` value is replaced by 664 without a log message.
   
   ## Tests
   
   - There is no new test, as only description text changes.
   - A script compared the component JSON with the parent commit: only 
`description` fields changed (14 texts: 1 component
     description, 1 component option, 12 endpoint options). The catalog copy is 
identical to the component JSON.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I ran the formatter and built the module, then regenerated the catalog 
copy, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl`, and committed all 
generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 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