Skip to main content

SFTP

SFTP (Secure File Transfer Protocol) is a secure way to transfer files over the internet using an encrypted connection between a client and a server. It’s commonly used to exchange data between systems, especially in enterprise environments where security and reliability are critical.

In Prophecy, you can use an SFTP connection to read from and write to remote file systems directly in your data pipelines. This is useful when your data is stored outside cloud storage or databases, such as in on-premise servers or partner systems.

Feature support

The table below outlines whether the connection supports certain Prophecy features.

FeatureSupported
Read data with a Source gemYes
Write data with a Target gemYes
Browse data in the Environment browserYes

Limitations

Keep in mind the following limitations when using an SFTP connection.

  • Simultaneous writes can cause file corruption. If multiple processes—such as different Prophecy jobs—try to write to the same file at the same time using the same SFTP connection details, it can result in race conditions or corrupted files. This happens because the connector doesn't perform any client-side locking to coordinate access.

  • Network latency affects transfer performance. The speed and reliability of SFTP transfers depend on the physical distance between the SFTP server and Prophecy’s infrastructure. Servers that are geographically closer to your Prophecy environment will generally provide faster, more stable performance. Servers located farther away may introduce higher latency, leading to slower or less consistent data transfers. For best results, use SFTP servers in the same region as your Prophecy environment.

Parameters

To configure an SFTP connection in Prophecy, enter the following parameters:

ParameterDescription
Connection NameUnique name for the connection
HostHostname or IP address of the SFTP server
PortPort number for SFTP (default is 22)
UsernameYour SFTP username
Authentication MethodChoice between Password or Private Key authentication

Authentication methods

You can configure your SFTP connection with one of the following authentication methods:

  • Password. Use a secret to enter your SFTP password.
  • Private key. Upload a file that contains your SFTP private key.

SFTP permissions

When you use an SFTP connection in Prophecy, permissions depend on the underlying SSH server and filesystem permissions on the server.

Sharing connections within teams

Connections in Prophecy are stored within fabrics, which are assigned to specific teams. Once an SFTP connection is added to a fabric, all team members that have access to the fabric can use the connection in their projects. No additional authentication is required—team members automatically inherit the access and permissions of the original connection.

caution

Be mindful of the access level granted by the stored credentials. Anyone on the team will have the same permissions—including access to sensitive data if allowed.

To manage this securely, consider creating a dedicated fabric and team for high-sensitivity connections. This way, only approved users have access to those credentials.

Fetching data

Prophecy fetches data from SFTP connections in the following ways:

  • When you browse an SFTP connection in the Environment browser, Prophecy fetches data on demand as you expand folders. You can manually refresh the Environment browser to see updated files.

  • When a pipeline runs, Source gems will read the latest available version of the data. If the schema changes in the external connection, you will need to re-infer the schema in Prophecy.