All Projects → gordalina → hush_gcp_secret_manager

gordalina / hush_gcp_secret_manager

Licence: other
A Google Secret Manager Provider for Hush

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to hush gcp secret manager

sops-operator
A Kubernetes operator for Mozilla SOPS
Stars: ✭ 23 (+35.29%)
Mutual labels:  gcp, secrets-management
kube-secrets-init
Kubernetes mutating webhook for `secrets-init` injection
Stars: ✭ 106 (+523.53%)
Mutual labels:  gcp, secrets-management
drone-gcloud-helm
Drone 0.5 plugin to create and deploy Helm charts for Kubernetes in Google Cloud.
Stars: ✭ 13 (-23.53%)
Mutual labels:  gcp
pubsub cli
super handy google cloud Pub/Sub CLI
Stars: ✭ 32 (+88.24%)
Mutual labels:  gcp
collie-cli
Collie CLI allows you to manage your AWS, Azure & GCP cloud landscape through a single view.
Stars: ✭ 152 (+794.12%)
Mutual labels:  gcp
augle
Auth + Google = Augle
Stars: ✭ 22 (+29.41%)
Mutual labels:  gcp
webping.cloud
Test your network latency to the nearest cloud provider in AWS, Azure, GCP, Alibaba Cloud, IBM Cloud, Oracle Cloud and DigitalOcean directly from your browser.
Stars: ✭ 60 (+252.94%)
Mutual labels:  gcp
qhub
🪴 Nebari - your open source data science platform
Stars: ✭ 175 (+929.41%)
Mutual labels:  gcp
devrel
Common solutions and tools developed for Apigee
Stars: ✭ 121 (+611.76%)
Mutual labels:  gcp
tfeel
Twitter sentiment analysis
Stars: ✭ 22 (+29.41%)
Mutual labels:  gcp
bigtable-autoscaler-operator
Kubernetes operator to autoscale Google's Cloud Bigtable clusters
Stars: ✭ 22 (+29.41%)
Mutual labels:  gcp
runiac
Run IaC Anywhere With Ease
Stars: ✭ 18 (+5.88%)
Mutual labels:  gcp
grucloud
Generate diagrams and code from cloud infrastructures: AWS, Azure,GCP, Kubernetes
Stars: ✭ 76 (+347.06%)
Mutual labels:  gcp
Everything-Tech
A collection of online resources to help you on your Tech journey.
Stars: ✭ 396 (+2229.41%)
Mutual labels:  gcp
gisjogja
GISJOGJA - aplikasi web based sistem informasi geografis (SIG) / GIS wisata kota JOGJA - www.firstplato.com
Stars: ✭ 17 (+0%)
Mutual labels:  gcp
gke-anthos-holistic-demo
This repository guides you through deploying a private GKE cluster and provides a base platform for hands-on exploration of several GKE related topics which leverage or integrate with that infrastructure. After completing the exercises in all topic areas, you will have a deeper understanding of several core components of GKE and GCP as configure…
Stars: ✭ 55 (+223.53%)
Mutual labels:  gcp
paving
Terraform templates for paving infrastructure to deploy the Pivotal Platform.
Stars: ✭ 43 (+152.94%)
Mutual labels:  gcp
cloud-pricing-api
GraphQL API for cloud pricing. Contains over 3M public prices from AWS, Azure and GCP. Self-updates prices via an automated weekly job.
Stars: ✭ 281 (+1552.94%)
Mutual labels:  gcp
cli
The universal GraphQL API and CSPM tool for AWS, Azure, GCP, K8s, and tencent.
Stars: ✭ 811 (+4670.59%)
Mutual labels:  gcp
awesome-bigquery-views
Useful SQL queries for Blockchain ETL datasets in BigQuery.
Stars: ✭ 325 (+1811.76%)
Mutual labels:  gcp

GCP Secret Manager Hush Provider

Build Status Coverage Status hex.pm version hex.pm downloads

This package provides a Hush Provider to resolve Google Cloud Platform's Secret Manager secrets.

Documentation can be found at https://hexdocs.pm/hush_gcp_secret_manager.

Installation

The package can be installed by adding hush_gcp_secret_manager to your list of dependencies in mix.exs:

def deps do
  [
    {:hush, "~> 1.0"},
    {:hush_gcp_secret_manager, "~> 1.0.2"}
  ]
end

This module relies on goth to fetch secrets from the Google Cloud Platform API. As such you need to configure goth which is used in hush_gcp_secret_manager, the configuration is the same as if you were to configure a child_spec as per their documentation.

As the provider needs to start both applications, it needs to registered as a provider in hush, so that it gets loaded during startup.

# config/config.exs

alias Hush.Provider.GcpSecretManager

# ensure hush loads GcpSecretManager during startup
config :hush,
  providers: [GcpSecretManager]

config :hush_gcp_secret_manager,
  project_id: "my_project_id",
  goth: [name: MyApp.Goth, source: ...],
  goth_timeout: 5_000 # milliseconds

GCP Authorization

In order to retrieve secrets from GCP, ensure the service account you use has the Secret Manager Secret Accessor role (roles/secretmanager.secretAccessor).

Usage

The following example reads the password and the pool size for CloudSQL from secret manager into the ecto repo configuration.

# config/prod.exs

alias Hush.Provider.GcpSecretManager

config :app, App.Repo,
  password: {:hush, GcpSecretManager, "CLOUDSQL_PASSWORD"},
  pool_size: {:hush, GcpSecretManager, "ECTO_POOL_SIZE", cast: :integer, default: 10}

License

Hush is released under the Apache License 2.0 - see the LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].