Secure your credentials in Google Cloud Functions with Secret Manager

Tobi Sam
Geek Culture
Published in
3 min readNov 26, 2021

--

Image source

We know hard-coding credentials in our source code isn’t safe, but the thing that isn’t safe about using them in environment variables is that third party dependencies or libraries have access to these variables during runtime. Also, the use of some frameworks can result in the contents of environment variables being sent to logs.

--

--