Back to articles
Managing Secret For Your Golang Apps With The GCP Secret Manager
NewsDevOps

Managing Secret For Your Golang Apps With The GCP Secret Manager

via Dev.toRazan Fawwaz

While developing a serverless application and having a secret key in JSON format, I always looked at how we store that file securely. We can’t save the JSON file in our public repository, right? ☠️ Since I plan to deploy the application using Google Cloud Run, I’ve found that Google Cloud has a Secret Manager service! Store API keys, passwords, certificates, and sensitive data Secret Manager is a secure and convenient storage system for API keys, passwords, certificates, and other sensitive data Google Cloud With Secret Manager, we can store the credentials to the Secret Manager and integrate our application to “take” the credentials from the Secret Manager. There are two ways to store the secret, we can use the console or CLI, for this time I will use the CLI. For example, I have a simple Golang app that has a file called secret-key.json for authentication to database services. I want to deploy the application using Cloud Run and using the secret key that is provided so the service ca

Continue reading on Dev.to

Opens in a new tab

Read Full Article
6 views

Related Articles