How to secure API keys within a Chrome Extension - AWS Lambda

Published: 11 March 2021
on channel: Rusty Zone
7,151
141

Outdated video - Please see the updated video on this topic for 2025    • Securing API Keys in Chrome Extensions - U...  

Hey! In this video we take a look how to protect your Chrome Extension source code & specifically your API Keys. Including why minifying your code can help but also how to use a Lambda function to ensure your API Keys are not written in your extension source code for anyone to view.

The methods shown are not 100% secure but are good steps to take to begin to secure your extension. As mentioned the best method is to have any external calls go through your own server to ensure you only return data to authenticated users.


RELATED LINKS:
Fetch Call to Lambda: https://gist.github.com/rustyzone/a03...
Lambda Function: https://gist.github.com/rustyzone/fc1...


TIMESTAMPS:
0:00 Intro
0:30 Minify JS
01:30 Secure API Keys
02:25 AWS Lambda
04:30 Use Origin not Referrer
05:00 Lambda Function Code
07:00 Call Lambda
08:12 Firebase Security Rules
09:10 GET / POST Request



MY ONLINE COURSE:
⛏ My Chrome Extension Course: https://skl.sh/2Xcr9Va
** Join my community on Skillshare by starting any of my classes or following my profile for the latest classes & updates, this is also the best place to get more in-depth content & development support **
** Get a free trial of Skillshare Premium Membership - https://www.skillshare.com/r/user/rus... **


FIND ME ONLINE:
📨 Sign up to my email newsletter - https://rustyzone.substack.com
🌍 My website / blog - https://russellr.co.uk
🐦 Twitter -   / russellbarnard  
📺 Subscribe -    / @rustyzone  


MY MINIMAL SETUP:
💡 Lights https://amzn.to/2X2rkl6
📷 Tripod https://amzn.to/350b3S1
🕹 USB-C Adaptor https://amzn.to/3rEDVsZ
👁 iPhone Lens https://amzn.to/3qHzgFI


On this page of the site you can watch the video online How to secure API keys within a Chrome Extension - AWS Lambda with a duration of hours minute second in good quality, which was uploaded by the user Rusty Zone 11 March 2021, share the link with friends and acquaintances, this video has already been watched 7,151 times on youtube and it was liked by 141 viewers. Enjoy your viewing!