Third party Credentials
Transloadit can export files to your cloud bucket or server. To authenticate, we'll need credentials
(write-only if possible).
You can set these directly in your import and export Robot
parameters (often via key and secret), but we recommend that you use Template Credentials
instead. With Template Credentials, you store the credentials separately, assign them a unique name,
and then refer to them by that name via the credentials
Robot Parameter. You can check the individual
Robot docs for more information.
Using Template Credentials is entirely optional.
We have created Template Credentials, so you can:
- Enjoy stronger encryption and protection (viewing credentials requires password re-entry).
- Easily reuse your credentials across several Templates.
- Easily share Templates with us without having to redact credentials each time.
- Be more liberal in sending Assembly Instructions directly (without using a Template). Even though Templates are recommended, this allows prototyping without transmitting secrets every time.
- Revoke leaked credentials and replace them without modifying all your Templates or code.
- Add tokens. Some cloud providers require an interactive "oAuth dance" in order to give Transloadit access. The web interface for Template Credentials allows for this.
Here are Assembly Instructions using Template
Credentials that were previously saved in your account as my_s3_credentials and
my_youtube_credentials. It imports videos from an S3 bucket and uploads them to YouTube:
{
"steps": {
"imported": {
"robot": "/s3/import",
"credentials": "my_s3_credentials",
"path": "/some/path"
},
"exported": {
"robot": "/youtube/store",
"use": "imported",
"credentials": "my_youtube_credentials"
}
}
}
How to create Template Credentials
- Go to your Workspace’s Credentials page.
- Choose your cloud provider from the dropdown menu at the top of the page and fill out all the fields for bucket names, keys and secrets.
- Give your Template Credentials a name for future reference in your Templates and hit save.
You can now set the name as the credentials property in your export
Robot.
Vimeo
Vimeo OAuth in the Console works with /vimeo/store for uploads. /vimeo/import requires a personal access token from your own Vimeo app. Vimeo only grants access to other members’ video files to partner OAuth apps, and Transloadit is not a Vimeo partner. Repeating OAuth will not add this permission.
- Sign in to developer.vimeo.com/apps with the Vimeo account that owns the videos, and create an app or select your own existing app.
- Under Authentication, open Generate Access Token and select Authenticated (you).
- Select Public, Private, and Video Files (
public,private, andvideo_files). To also use the token with/vimeo/store, select Upload, Edit, and Interact (upload,edit, andinteract) and ensure your app has Vimeo upload access. - Generate and copy the token. In the Console, create a Template Credential, select Vimeo, choose Paste a personal access token, and paste it into Vimeo Access Token.
- Save it with a recognizable name, and use that name as your Robot’s
credentialsvalue.
Saving verifies your Vimeo account and the token’s scopes. The token is stored as access_token and
is never displayed back in the Console. Video downloads still depend on your Vimeo plan and video
permissions. Original (source) downloads also require Vimeo to have retained the original upload.
See Vimeo’s token guide.
Reconnect Vimeo
Update does not start OAuth again or grant additional scopes. To reconnect, Remove the credential, then create it again using the same name so your Templates continue to reference it. Removing a Vimeo credential revokes its token at Vimeo, including any other use of the same token. Generate a new personal access token before pasting it again. If revocation fails, removal fails and you can retry. You can also replace a token through Update; leave the token field blank to keep the stored token.
Don't give us the keys to your everything
Taking a few security paradigms to heart, we'd like as little privileges as possible to do our work. If you export files to your Amazon S3 bucket, for instance, it's perfectly possible to create an IAM user that only has write access for that. In the unlikely case that Transloadit gets compromised, we would like the worst-case scenario to be that a few extra files are stored in your bucket by a hacker.