Skip to content

Take over maintenance and catch up to upstream v1.22.0 - #33

Open
watsonian wants to merge 10 commits into
mainfrom
watsonian/doppler-maintenance-takeover
Open

watsonian wants to merge 10 commits into
mainfrom
watsonian/doppler-maintenance-takeover

Conversation

@watsonian

Copy link
Copy Markdown
Member

This brings the provider back into maintenance after the transfer from Pulumiverse. CI is regenerated with pulumi-labs/ci-mgmt and builds with mise, building on #29 from @ringods. The old hand-written workflows had stopped running entirely. Upstream moves from v1.10.0 to v1.22.0, adding 51 resources and 3 functions, on terraform bridge v3.141.0 and Pulumi v3.270.0. There are no breaking schema changes compared with v0.9.0.

The SDKs now publish under Doppler names: @dopplerhq/pulumi-doppler on npm (Node.js), pulumi_doppler on PyPI (Python), DopplerHQ.Doppler on NuGet (.NET), and github.com/DopplerHQ/pulumi-doppler/sdk for Go. Resource types are unchanged, so existing stacks only need to switch packages. The CHANGELOG has a migration table.

Other changes:

  • New upstream resources are mapped, including a rotatedSecret module.
  • dopplerToken is now a secret, so it's no longer stored in plaintext state.
  • The provider identifies itself to the Doppler API as pulumi-doppler/<version>, alongside the upstream Terraform provider.
  • The docs are rewritten to the Pulumi Registry's format.
  • Integration tests in all four languages run against a test workplace on PRs and nightly, and skip when DOPPLER_TOKEN isn't set.

Merging to main publishes alpha SDKs to npm, PyPI and NuGet, so the secrets below need to be in place first.

Before merging

  • Replace PULUMI_PROVIDER_AUTOMATION_TOKEN with a fine-grained token. Scope it to this repo with read/write on contents, pull requests and workflows, ideally owned by a bot account. The current value doesn't work as a token.
  • Add the NPM_TOKEN (for the @dopplerhq scope), PYPI_API_TOKEN and NUGET_PUBLISH_KEY secrets.
  • Add the DOPPLER_TOKEN secret: a service account token for a test workplace with workplace admin access.
  • Optionally, add a DOPPLER_TEST_MEMBER_EMAIL repository variable: an existing user in that workplace.

After merging, before releasing

After releasing

ringods and others added 10 commits October 20, 2026 13:50
Set up .ci-mgmt.yaml to generate CI from the tf-provider-boilerplate,
generate the Python SDK with pyproject.toml instead of setup.py, rename
Go paths from github.com/pulumiverse to github.com/DopplerHQ, fix lint
findings, and remove go.work so the license check passes.

Originally PR #29 (three commits, squashed here).
pulumi/ci-mgmt no longer generates workflows for third-party providers;
pulumi-labs/ci-mgmt is the supported generator for them. Its workflows
and Makefile install the toolchain with mise.

mise.toml overrides the generated .config/mise.toml:
- Install the terraform converter and the random and aws plugins tfgen
  uses for the docs examples. ci-mgmt no longer installs plugins from
  .ci-mgmt.yaml, so that list is gone.
- Pin Node 24: @pulumi/pulumi 3.270+ requires Node 22 or newer.
- Pin golangci-lint 2.13.2: 2.5.0 is built with Go 1.25 and refuses to
  lint a Go 1.26 module.
- Skip Java and Gradle; the Java SDK is not built or published.

Workflows authenticate with the PULUMI_PROVIDER_AUTOMATION_TOKEN secret
instead of minting GitHub App tokens (github-app disabled), like other
vendor-maintained providers. The same token opens upgrade and resync
PRs, so CI runs on them. Upstream upgrade PRs from the daily
upgrade-provider job wait for review instead of auto-merging.
…lumi to v3.270.0

The bridge now builds on upstream terraform-plugin-sdk/v2, so the
pulumi/terraform-plugin-sdk fork replace is dropped. The stale
pulumi-java/pkg requirement is removed; it shadowed the pulumi-java
module the bridge needs.

The Go SDK and examples modules move to pulumi v3.270.0 too: the
generated Go SDK calls ctx.InvokeOutput, which v3.129.0 lacks. Go
1.26.6 is the Pulumi SDK's minimum.
npm: @dopplerhq/pulumi-doppler, PyPI: pulumi_doppler, NuGet:
DopplerHQ.Doppler. The registry publisher is "Doppler", which has to be
added to pulumi/registry's publisher-names.json before the first
release. npm dependencies now come from bridge defaults instead of
stale pins.
- doppler_rotated_secret_* (11 resources) map to a rotatedSecret module
  like the integration and secretsSync families, e.g.
  doppler:rotatedSecret/awsMysql:AwsMysql.
- doppler_trusted_ips.trusted_ips is TrustedIpList in .NET only: C#
  forbids a member named after its class (CS0542).
- getEnvironments returns environments, not the bridge's pluralized
  "lists".
- dopplerToken is a secret. Upstream doesn't mark it Sensitive, so
  Pulumi stored an explicit provider's token in plaintext state.

None of these resources or functions has been released, so none of
this is breaking.
- User-Agent: upstream sends "terraform-provider-doppler/<ProviderVersion>",
  with ProviderVersion left at "dev", so Pulumi traffic looked like a
  Terraform dev build. ProviderVersion is now "<upstream version>
  pulumi-doppler/<version>", making the header e.g.
  "terraform-provider-doppler/1.22.0 pulumi-doppler/0.10.0". The registry
  asks providers to identify themselves this way.
- Embed bridge-metadata.json and apply auto-aliases, like the boilerplate
  and other bridged providers, so future token renames get aliases.
- Declare the upstream license as Apache-2.0. Without it the bridge
  assumes MPL-2.0 and says so in every SDK readme.
- Homepage is doppler.com, the description names Doppler, and keywords
  include secrets for registry search.
The installation page described apiKey/accountId config from another
provider and claimed only JavaScript was supported; the README named the
token option doppler:token. docs/_index.md now follows the registry's
Overview page format (layout: package, Installation for every language,
Example Usage in five languages, Configuration with environment
variables and which options exclude each other), which makes the
separate installation page redundant. The README documents the same
configuration.

The changelog covers the package move and everything since v0.9.0.
core-ts, core-py, core-go and core-cs create about 24 Doppler-only
resources and call every function, update them in place, require
refreshes to find no changes, and destroy. Tests skip without
DOPPLER_TOKEN. Replaces the placeholder tests, which depended on a
nonexistent @pulumi/foo package.

CI passes the DOPPLER_TOKEN secret and DOPPLER_TEST_MEMBER_EMAIL
variable to the test jobs and runs them nightly too. Failed steps retry
up to three times: with one job per language running at once, the
Doppler API intermittently answers secret writes with a 500.
- Dependabot updates only the test modules. The upgrade workflows handle
  provider/ and sdk/ (with the regeneration Dependabot can't do), and
  ci-mgmt owns the action pins.
- CONTRIBUTING describes the mise-based build, regeneration order and
  ci-mgmt instead of boilerplate with a TODO.
- COPYRIGHT named the Terraform AWS provider under MPL-2.0; this work
  combines with terraform-provider-doppler, which is Apache-2.0.

- name: Check worktree clean
id: worktreeClean
uses: pulumi/git-status-check-action@v1
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: pulumi/license-check-action@main
Comment on lines +55 to +58
name: lint
uses: ./.github/workflows/lint.yml
secrets: inherit
license_check:
Comment on lines +59 to +63
name: License Check
uses: ./.github/workflows/license.yml
secrets: inherit

publish:
persist-credentials: false
- name: check if this commit needs release
if: ${{ env.RELEASE_BOT_ENDPOINT != '' }}
uses: pulumi/action-release-by-pr-label@main
Comment on lines +51 to +54
name: lint
uses: ./.github/workflows/lint.yml
secrets: inherit
license_check:
Comment on lines +55 to +59
name: License Check
uses: ./.github/workflows/license.yml
secrets: inherit

publish:
Comment on lines +93 to +98
if: github.event_name == 'repository_dispatch' ||
github.event.pull_request.head.repo.full_name == github.repository
name: lint
uses: ./.github/workflows/lint.yml
secrets: inherit
sentinel:
Comment on lines +139 to +141
name: License Check
uses: ./.github/workflows/license.yml
secrets: inherit
Comment on lines +57 to +92
name: verify-release
# We don't have any release verification configurations, so we never run this workflow.
# Configure your .ci-mgmt.yaml files to include the release verification configurations e.g.
# releaseVerification:
# nodejs: path/to/nodejs/project
# python: path/to/python/project
# dotnet: path/to/dotnet/project
# go: path/to/go/project
if: false
strategy:
matrix:
# We don't have any release verification configurations, so we only run on Linux to print warnings to help users configure the release verification.
runner: ["ubuntu-latest"]
runs-on: ${{ matrix.runner }}
steps:
- name: Configure Git to checkout files with long names
run: git config --global core.longpaths true
- name: Checkout Repo
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: Install mise
uses: jdx/mise-action@c1a019b8d2586943b4dbebc456323b516910e310
with:
version: 2026.3.7
github_token: ${{ secrets.GITHUB_TOKEN }}
cache_save: false
- name: Setup Go Cache
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
with:
cache-dependency-path: |
provider/*.sum
upstream/*.sum
sdk/go/*.sum
sdk/*.sum
*.sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants