Skip to content

Automate your Doppler secrets & use them in your developer workflow on a Cloud Dev Environment - Gitpod

Notifications You must be signed in to change notification settings

gitpod-samples/demo-secrets-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Secrets management using Doppler on Gitpod

Automate your Doppler secrets & use them in your developer workflow on a Cloud Dev Environment - Gitpod

Setting it up

Doppler Service Token

  1. Create a Doppler account and a project.

  2. Create a Doppler service token and add it to Gitpod Environment variables.

  3. Start a Gitpod workspace:

    Open in Gitpod

Doppler CLI

Gitpod is an ephemeral environment, so we need to install the Doppler CLI on every workspace start, but we can do it more smartly with Gitpod init tasks & Gitpod Dockerfile.

Example of a .gitpod.Dockerfile file

FROM gitpod/workspace-full:latest

# Install & configure Doppler CLI
RUN (curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) | sudo sh

Example of a .gitpod.yml file

image:
  file: .gitpod.Dockerfile

tasks:
  - name: Doppler
    command: |
      doppler setup

Note: To speed up Gitpod workspace startup times, you can configure Gitpod prebuilds to build the Docker image before the first workspace start.

Add Secrets to Doppler

Doppler setup

doppler setup

Doppler Setup Output

Add Doppler secrets to your project


Add Doppler Secrets

Use Doppler secrets in your Gitpod workspace

Print all Doppler secrets

doppler secrets --raw

Print All Doppler Secrets

Print a specific Doppler secret

doppler run --command='echo $SENDGRID_API_KEY'

Print a specific Doppler secret

Recommended Doppler Resources

Recommended Gitpod Resources

About

Automate your Doppler secrets & use them in your developer workflow on a Cloud Dev Environment - Gitpod

Topics

Resources

Code of conduct

Stars

Watchers

Forks