Skip to main content

Speech Insights SFTP

Speech Insights SFTP is the WinnerWare ingestion-source module for teams that receive call recordings through SFTP.

Overview​

This module is used when call recordings must be collected through a more locked-down file-transfer path. It extends Speech Insights by adding an SFTP connection option inside the Ingestion Sources area.

Key Features​

  • Adds SFTP as an available Speech Insights ingestion-source type.
  • Supports both password-based and key-file-based login.
  • Checks the server host key on every connection. It trusts the key on first use, saves its fingerprint, and refuses a different key later.
  • Supports server-type and proxy-bypass options.
  • Stores sensitive credentials and keys securely.

How It Works​

Add an SFTP source to Speech Insights​

After the module is enabled, admins can create a new ingestion source and choose SFTP as the source type. That source then becomes part of the standard Speech Insights ingestion workflow.

Choose the login approach that fits the environment​

The editor supports either a traditional username-and-password login or a key-file-based login. This makes the module flexible enough for environments with stricter security requirements.

Keep source mapping aligned with the incoming data​

Like other Speech Insights source types, the SFTP source depends on the shared source field map so WinnerWare can correctly interpret the recording file name, call date, and other incoming call metadata.

Configuration​

Enable the source module​

Turn on this module after the main Speech Insights feature is enabled.

Common source fields​

Every SFTP source also uses the shared Speech Insights source fields:

  • Name
  • Client
  • Locale
  • Candidate locales (optional, for calls in more than one language)
  • Active?
  • the Metadata File Map for recording and call metadata

See Speech Insights for what each field does.

SFTP connection settings​

The SFTP editor adds these connection fields:

SettingPurpose
SFTP hostServer name or IP address.
SFTP portConnection port. The default is 22.
Login typeChoose Normal or Key file authentication.
UsernameAccount name for the SFTP connection.
PasswordUsed when Normal login is selected. After you save, the password is stored securely. Enter a new value only to replace it.
Private key (PEM/OpenSSH)Used when Key file login is selected.
Private key passphraseOptional passphrase for the private key.
Root pathLimits ingestion to a specific server folder.
Server typeLets the connection adapt to the target server: Auto, Unix, or Windows.
Bypass proxyControls whether the connection should skip a proxy path.
Ignore certificate errorsTurns off the host key check. The connection trusts any server key and saves no fingerprint. Use it only for tests. See Server host key.
Host key fingerprintThe fingerprint that the server key must match. Leave it empty to trust the server key on the first successful connection and save its fingerprint here. See Server host key.

Server host key​

The server host key identifies the SFTP server. WinnerWare checks it on every connection, before it sends the password or the private key. A different key can mean that another server intercepts the connection to read the credentials and the recordings.

SituationWhat happens
Host key fingerprint is emptyTrust on first use. The first successful connection (a Test connection, Get statistics, or an ingestion run) trusts the server key and saves its fingerprint in the SHA256:<base64> format. The log shows the saved fingerprint. All later connections must present the same key.
Host key fingerprint is setThe server key must match it. The field accepts the OpenSSH SHA256:<base64> format and the MD5 format (MD5:aa:bb:..., with or without colons).
Ignore certificate errors is onThe key is not checked and no fingerprint is saved. Each connection writes a warning to the log.

To be sure that you trust the correct server on first use, compare the fingerprint that Test connection shows with the fingerprint that the server administrator gives you (for example from ssh-keygen -lf on the server key file). You can also paste that fingerprint into Host key fingerprint before the first connection.

If the server sends a different key, the connection fails. Test connection shows the saved fingerprint and the new fingerprint, and an ingestion run shows the same message as Last error on the source. Recordings are not read until you act:

  • If the change is not expected, do not change the source. Ask the server administrator to confirm the new key.
  • If the change is expected (for example, a new server or a new host key), edit the source and paste the new fingerprint into Host key fingerprint, or clear the field to trust the server key on the next connection.

Usage​

Use SFTP when security policy requires it​

This module is a strong fit when recordings are delivered through an SFTP-controlled location and the environment requires stronger server validation or key-based authentication.

Check the source before you activate it​

On Speech Insights -> Ingestion Sources, open the Actions menu of the source:

  1. Click Test connection. WinnerWare connects with the saved settings and lists the root folder. The result shows on the source row, with the fingerprint of the server host key and the result of the host key check. If no fingerprint is saved, a successful test saves it. A failure usually means a wrong host, port, credential, key, host key fingerprint, or Root path. If the server closes the connection before the SSH handshake, the result also shows a Hint. This error comes before the host key check, so Ignore certificate errors has no effect on it. Make sure that the host and port are for an SFTP (SSH) server. Many servers also block an IP address for some time after too many failed logins, so do not test again and again with a wrong password. If the server blocked WinnerWare, ask the server administrator to remove the block. Other sources that use the same server are blocked too.
  2. Click Get statistics to see how many audio and metadata files are waiting and how many are Ready to ingest.
  3. Turn on Active? and click Ingest recordings, or wait for the hourly run.

To set up a similar server, use Clone. The copy keeps the connection settings and credentials (including the private key) and starts as inactive.

What happens when something fails​

  • If the server cannot be reached or refuses the login during a run, the run stops and shows the error as Last error on the source. If the server closes the connection before the SSH handshake, the error also tells you what to check. Many servers block an IP address for some time after too many failed logins.
  • A run that stops with an error starts the Ingestion Source Failed workflow event, so a workflow can email the error. See Get notified when a source fails.
  • If the server does not answer a request (a listing, a file check, a download, a delete or a move) in 2 minutes, the request fails. In most cases, the run then stops and shows the error as Last error on the source. If the download of one recording fails, the recording counts as failed and the run continues. The limit is for each request, not for the download of a whole file.
  • If the server host key does not match the saved fingerprint, the run stops and shows the error as Last error on the source. See Server host key.
  • An unexpected error that stops a run shows as Last error on the source until a later run completes.
  • A single recording that fails is left on the server and tried again on the next run.
  • A recording that cannot be decoded is moved to a failed folder next to it on the server and is not tried again.
  • Files changed in the last 2 minutes are left for the next run, so files that are still uploading are not read.
  • Recordings are downloaded to temporary disk storage instead of memory, so large recordings do not exhaust server memory.
  • Each download opens its own connection and closes it when the file is on disk. Each connection sends a keep-alive message every 30 seconds, so that a firewall does not drop it while it is idle.

Operational Notes​

  • The module registers SFTP as a Speech Insights recording provider.
  • Passwords, private keys, and key passphrases are protected before they are stored.
  • When a connection trusts a server key on first use, WinnerWare changes only the Host key fingerprint of the stored source. If the fingerprint cannot be saved, the connection continues, a warning is logged, and the next connection tries to save it again.
  • The editor supports both normal login and key-file login, and it can hide or show the relevant fields based on the selected authentication mode.