Skip to content

Latest commit

 

History

History
61 lines (52 loc) · 1.7 KB

DOPPLER.md

File metadata and controls

61 lines (52 loc) · 1.7 KB

Doppler

Doppler is a secrets management tool that has been used extensively with this project.

Development

Running locally

doppler run -- deno run --allow-net --allow-env --allow-read=./src main.ts

Kubernetes

Prerequisites

  • Kubernetes cluster with the Doppler operator installed
  • A doppler configuration has been created for the environment you are deploying to (in this case we will refer to it as stg but it could be anything)
  • A service token has been created for the doppler configuration

Steps

  1. Create a new namespace in your cluster for the test
    kubectl create namespace keys-test
  2. Create the doppler access token secret Replace dp.st.dev.XXXX with the service token for the target doppler environment
    kubectl create secret generic keys-local-helm-test \
     --namespace doppler-operator-system \
     --from-literal=serviceToken=dp.st.dev.XXXX
  3. Create the secret mapping
    kubectl apply -f - <<EOF
    apiVersion: secrets.doppler.com/v1alpha1
    kind: DopplerSecret
    metadata:
      name: local-helm-test
      namespace: doppler-operator-system
    spec:
      tokenSecret:
        name: keys-local-helm-test
      managedSecret:
        name: keys-secret
        namespace: keys-test
        type: Opaque
    EOF
  4. The doppler operator should now automatically create a secret called keys-secret. You can confirm this with the following command:
    kubectl describe -n keys-test secret keys-secret
  5. You can now deploy the application using helm as documented in the README