Skip to content

Add Doppler plugin for loading secrets#530

Open
Copilot wants to merge 2 commits intomainfrom
copilot/add-doppler-plugin
Open

Add Doppler plugin for loading secrets#530
Copilot wants to merge 2 commits intomainfrom
copilot/add-doppler-plugin

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 1, 2026

Adds @varlock/doppler-plugin — a new secret backend plugin for Doppler. Uses the Doppler API v3 directly via ky (no SDK/CLI dependency).

Plugin (packages/plugins/doppler/)

  • @initDoppler(project, config, serviceToken) — root decorator, supports multiple named instances
  • doppler() / doppler("SECRET_NAME") — single secret resolver, auto-infers name from variable key when called with no args
  • dopplerBulk() — bulk resolver for @setValuesBulk
  • dopplerServiceToken — sensitive data type for service tokens
  • Fetches all secrets in one API call and caches, so multiple doppler() calls share a single request per config
  • Detailed error handling with actionable tips for 401/403/404

Docs

  • Full plugin docs page at plugins/doppler.mdx (setup steps, usage patterns, reference, troubleshooting)
  • Added to plugins overview table and sidebar

Usage

# @plugin(@varlock/doppler-plugin)
# @initDoppler(project=my-app, config=dev, serviceToken=$DOPPLER_TOKEN)
# ---
# @type=dopplerServiceToken @sensitive
DOPPLER_TOKEN=

DATABASE_URL=doppler()
API_KEY=doppler("STRIPE_SECRET_KEY")

Copilot AI and others added 2 commits April 1, 2026 17:12
Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/7dabcebc-20b0-4524-b2d0-de54045a7d88

Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/7dabcebc-20b0-4524-b2d0-de54045a7d88

Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 1, 2026

🦋 Changeset detected

Latest commit: 9f3df10

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@varlock/doppler-plugin Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@theoephraim theoephraim marked this pull request as ready for review April 1, 2026 22:44
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 1, 2026

Open in StackBlitz

npm i https://pkg.pr.new/dmno-dev/varlock/@varlock/doppler-plugin@530

commit: 9f3df10

Copy link
Copy Markdown
Member

@philmillman philmillman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, as discussed we should consider at least supporting auth via the CLI even if the assumption is that the onus is on the user to have it installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants