Google Secrets Manager
Prerequisite
Install External Secret Operator (ESO).
To add secrets from Google Secrets Manager, follow the steps mentioned below :
Go to Google cloud console and create a Service Account.
Figure 1: Create Service Account Figure 2: Service Account Creation Assign roles to the service account.
Figure 3: Assign Service Account Roles Add and create a new key.
Figure 4a: Add Service Account Key Figure 4b: Create Service Account Key Create a Kubernetes secret in the namespace in which the application is to be deployed using base64 encoded service account key.
You can use devtron generic chart for this.
Figure 5: Create Kubernetes Secret After creating the generic secret, navigate to
Secrets
section of the application and clickAdd Secret
to add a new secret.Figure 6: Add New Secret Select
Google Secrets Manager
underExternal Secret Operator
(ESO) from the dropdown ofData type
.Figure 7: Select Google Secrets Manager Configure secret.
Figure 8: Configure Secret Settings KeyDescriptionsecretAccessKeySecretRef.name
Name of secret created that would be used for authentication.
secretAccessKeySecretRef.key
In generic secret created for GCP authentication, variable name in which base64 encoded service account key is stored.
ProjectID
GCP Project ID where secret is created.
secretKey
Key name to store secret.
key
GCP Secrets Manager secret name.
Figure 9: Google Secret Example Save secret.
Last updated
Was this helpful?