Sending Feed Data via SFTP
Last updated: January 24, 2025
How do I send feed data via SFTP?
Takt's SFTP Server is designed for security and scalability.
The SFTP service enables customers to upload files to feeds within the Takt system. Customers can authenticate using API keys generated within the system. The service is designed to be a thin layer on top of the Takt system and not a fully-featured SFTP server.
The SFTP Service has been tested with the following SFTP Clients:
Upload Process
The user authenticates using API Keys generated within the Takt Platform. By default, the user will be landed in the home directory with the path
/home/<organizationd uuid>/.The user navigates to a feed folder at
/home/<organization uuid>/<feed uuid>.The user uploads a CSV file matching the configuration in the feed to the feed folder.
The file is written to a local cache, then uploaded to the GCS. A Feed Import record is created in Spanner with the corresponding metadata.
A PubSub message is sent to the Feed Imports Topic that a new import is available.
Server Authentication
The server uses Password-based authentication with API Keys serving as the credentials. The server uses the API Key as the username and API Key Secret as the password. The API Key Secret is only shown to the customer once during creation, then hashed using the bcrypt algorithm. The password is never decrypted only validated during authentication.
Server Key Exchange Algorithms
The server supports the following key exchange algorithms:
curve25519-sha256curve25519-sha256@libssh.orgecdh-sha2-nistp256ecdh-sha2-nistp384ecdh-sha2-nistp521diffie-hellman-group14-sha256diffie-hellman-group16-sha512diffie-hellman-group18-sha512diffie-hellman-group14-sha1
Server Folder Structure
The server folder structure is designed to follow /home/<organization uuid>/<feed uuid>/<feed import uuid>.
Server Information
EnvironmentURLIP AddressPort | |||
Production | 34.72.218.19 | 2222 | |
Alpha | 35.239.30.181 | 2222 |
Support SFTP Methods
LSTAT(Specification Link) - Stat a file on the server. This will return permission denied unless they are attempting list a file in the feed folder, then it returns not found.STAT(Specification Link) - Stat a file on the server. This will return permission denied unless it is the organization directory, feed directory, or a file that has been uploaded during the session.REALPATH(Specification Link) - Get the file or folder handle from the path on the server.OPENDIR(Specification Link) - Open a directory on the server. Will fail unless it is the organization or feed folder.READDIR(Specification Link) - List the feed folders within the organization folder and uploaded files during this session in the feed folder.OPEN(Specification Link) - Open a file on the server. Usually used during the upload process. This will create a new feed import record and temporary file to write.WRITE(Specification Link) - Write data to the feed import.CLOSE(Specification Link) - Close the feed import writing to the local file, then trigger the upload to GCS. Once upload is complete, fire an event to PubSub.
Unsupported SFTP Methods
REMOVE(Specification Link) - Deleting FilesRENAME(Specification Link) - Renaming FilesSYMLINK(Specification Link) - Symlinking FilesREADLINK(Specification Link) - Reading Symbolic LinksMKDIR(Specification Link) - Creating a New DirectoryRMDIR(Specification Link) - Deleting a Directory