Help

How to secure API keys in Airtable Block Code

Topic Labels: Custom Extensions
Solved
Jump to Solution
8115 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Bryan_Lopez
4 - Data Explorer
4 - Data Explorer

Not sure if I understand the use cases for Blocks but I am trying to create a little mini GUI to pull data from Google and save into Airtable. How do I go about securing my API key? Is it secure to bundle with code that gets released to Airtable?

1 Solution

Accepted Solutions
Dru_Knox
5 - Automation Enthusiast
5 - Automation Enthusiast

Hi Bryan,

With the blocks that Airtable builds, we ask users for credentials and store it in globalConfig, which is a key-value store that’s scoped to that block installation. If API key won’t change, you could also include it directly in the Block code, which only you (or anyone with access to the source repo) can view.

Note that the credential will still be accessible by all base collaborators since the API requests are made client-side.

See Solution in Thread

1 Reply 1
Dru_Knox
5 - Automation Enthusiast
5 - Automation Enthusiast

Hi Bryan,

With the blocks that Airtable builds, we ask users for credentials and store it in globalConfig, which is a key-value store that’s scoped to that block installation. If API key won’t change, you could also include it directly in the Block code, which only you (or anyone with access to the source repo) can view.

Note that the credential will still be accessible by all base collaborators since the API requests are made client-side.