Data Sources
Data storage methods supported by ByteNite
If your app needs data to function (which most do), it’s crucial to configure your data connections properly. This guide walks you through securely storing credentials, testing connections, and setting up your data sources.
ByteNite jobs can read and write from popular storage services, including Amazon S3 and Google Cloud Storage buckets.
How it works
Secrets handle external credentials securely.
Data Sources connect your storage options to your ByteNite jobs.
Once configured, secrets and data sources work seamlessly across any job.
🔐 Setting up secrets
If you’re using an authenticated service like S3, you’ll store your credentials securely in your ByteNite account—keeping them out of your code.
Steps:
Use the
secretType
field to select your secret provider (e.g., AWS, Google Cloud Storage).ByteNite supports multiple providers. See: ☁️ Supported data source options.
Send a request to the Secrets endpoint to securely create and store your secret in your account.
This unlocks access to your data sources without hardcoding credentials.
Configure your secret request with the following parameters:
Here's an example of a secret request body:
🔗 Setting up data sources
To enable input and output with your current storage provider, configure your data sources. You’ll provide a dataSource
object for both inputs (called Data Source) and outputs (called Data Destination). Once both are set, you can:
Test your
dataSource
object by sending a request to the /datasource/test endpoint.Attach a Data Source to a job via the
dataSource
field in the /jobs endpoint.Attach a Data Destination to a job via the
dataDestination
field in the /jobs endpoint.
About the dataSource Object
The fields below define the dataSource object. Please note:
The
params
object varies depending on the data source type.For data sources requiring authentication (like S3), provide the secret ID for the required credentials in the params body.
Use the
bypass
data source descriptor if your app doesn’t require input or output (e.g., no input data or output files).
Here is a full dataSource
object example:
☁️ Supported data source options
Below is a list of currently supported data source connections and parameters for both inputs and outputs.
I/O data sources
Input-only data sources
Output-only data sources
Last updated
Was this helpful?