Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.56 KB

secure_files.adoc

File metadata and controls

53 lines (36 loc) · 1.56 KB
titletext description
Use secure files for file-based secrets; passwords, API tokens, etc.
Store secrets such as API Keys and passwords in secure files that are not checked into your repository, but are available during the build.

Secure files

Secure files allow you to specify API keys, access tokens, or other secrets that your build requires, without having them checked into your repository.

Secure files are made available during a build to any process that can use them, including custom build steps.

Step 1: Upload a Secure File to buddybuild

Launch the buddybuild dashboard and select App Settings.

The buddybuild dashboard

In the left navigation, select Build settings, then Secure files.

The Secure files button

Select the file you would like to upload and select Upload file. Note that files are limited to a maximum of 50 MiB.

The Secure files screen

Your file is now ready to be consumed by your app.

Step 2: Consume the secure file in your build

Your secure files are automatically consumed by tools that are expecting them.

If you would like to access them in your custom build scripts, use the bash variable expansion syntax.

./Example.framework/run ${BUDDYBUILD_SECURE_FILES}/file.txt

That’s it! For more details, refer to our SDK API guide.