Posts

Showing posts with the label Google Cloud Secret Manager

Integrate Google Cloud Secret Manager with Django

Image
To integrate Google Cloud Secret Manager with Django, follow these steps: 1. Set Up Google Cloud Secret Manager Enable Secret Manager API : Go to the Google Cloud Console . Enable the Secret Manager API for your project. Create a Secret : In the Secret Manager section, click on Create Secret . Give it a name (e.g., my_database_password ) and input the secret value (e.g., an API key, database password, etc.). Click Create . Set Permissions : Make sure your service account (used by your Django app) has the Secret Manager Secret Accessor role, which allows it to access the secrets. 2. Install Google Cloud SDK and Required Libraries You need to install the Google Cloud SDK and libraries for Python. pip install google-cloud-secret-manager 3. Configure Authentication Ensure that your Django application has access to Google Cloud. You can authenticate using a service account key. Create a service account : Go to the IAM & Admin section . Create a service account with the Secret Manager ...

Integrate Google Cloud Secret Manager with Spring Boot

Image
In this section, we will learn how to i ntegrate Google Secret Manager with Spring Boot. 1.  A little bit of Background Google Cloud Secret Manager Secret Manager is a secure and convenient storage system for API keys, passwords, certificates, and other sensitive data. Secret Manager provides a central place and single source of truth to manage, access, and audit secrets across Google Cloud. More Info - click here! Spring Boot Spring Boot makes it easy to create stand-alone, production-grade Spring-based Applications that you can "just run".  More Info - click here! 2. Create a GCP Project We will need to create or select a GCP project.  First, Sign into the Google console at  https://console.cloud.google.com . You can create a new project by first selecting the project dropdown in the top left and selecting " New Project ".  Next, specify your GCP Project name and Project ID. Then  Click on the " CREATE " button. 3. Enable Secret Manager and Configure a S...