SFTP adapter
A send-side adapter that drops files onto an SFTP server. Path and filename are templatable; the response is an acknowledgement only.
The SFTP adapter takes a message off the bus and writes its body to a file on an SFTP server. The destination directory, filename, and write behaviour are all configurable on the send port; the SFTP Authentication paired with the adapter carries host, port, credentials, and the expected host key fingerprint.
Where the file lands is computed at runtime by templating the directory and filename against the message and Application variables. Two patterns dominate: predictable filenames (good for downstream pickers that look for a specific name) and unique filenames (good for high-volume streams where collisions would be a problem).
The SFTP adapter pairs with an SFTP Authentication. Two credential shapes are supported:
Both shapes require the host key fingerprint to be configured on the Authentication. The adapter will refuse to connect to a server whose host key does not match. This is the SFTP equivalent of certificate pinning — if the partner changes their server key without telling you, the connection fails rather than trusting blindly.
Placeholder field set — verify against the running product.
Filename — required; the file name to write. Templatable.
Overwrite Policy — required; one of Fail if exists, Overwrite, or Append suffix (appends an incrementing suffix to avoid collision).
Create Missing Directories — optional toggle; default off. When on, parent directories are
mkdir -p'd on demand.Temp Filename Suffix — optional; the suffix used during atomic write (default
.tmp).Content Encoding — optional; UTF-8, ASCII, Binary, etc. Drives how the message body is serialised before upload.
Permissions (chmod) — optional; numeric mode (e.g.
0640) applied after rename. Off by default.Connection Timeout — optional; how long the adapter will wait to establish the SSH session.
Authentication — required; picker filtered to SFTP Authentication objects in the same Application.
That is the SFTP adapter
File drop over SSH. Path and filename templated, atomic write on by default, host key pinned. Acknowledgement-only response. Back to Adapters.