Skip to content

fix(doppler): reuse the doppler cli for authentication - #4

Merged
titan-ron merged 6 commits into
betafrom
titan/reuse-doppler-cli-auth
Oct 26, 2026
Merged

titan-ron merged 6 commits into
betafrom
titan/reuse-doppler-cli-auth

Conversation

@titan-ron

@titan-ron titan-ron commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Change

Delegate Doppler login, logout and token storage to the official Doppler CLI. At startup, resenv uses an explicit DOPPLER_TOKEN or reads the CLI identity selected by the application's working directory, then fetches only referenced secrets through HTTPS. CLI discovery covers standard macOS/Linux paths and default per-user WinGet/Scoop installations. Credential lookup retains fixed executable paths, captured output, a restricted environment and startup limits.

Beta migration: remove resenv login/logout, native browser authorization and direct OS credential-store adapters. Use doppler login/logout instead. Earlier resenv-managed credentials are ignored; the migration guide explains cleanup. Explicit tokens still support unattended runs without the CLI. Reference syntax, Node support, literal fetched values and atomic environment updates are unchanged.

Patch Vitest/coverage to 4.1.12 and the separately installed Undici copies. Remove the unused full release engine from direct dependencies and omit its inferred peer installation. Audit and release planning enforce the absence of the engine and publisher modules while retaining the two official analysis/notes plugins. No advisory exception or expiry is expanded; the existing November 9 platform review deadline remains.

Keep documentation focused on current contracts, tool choices and release procedures. Remove four historical audit/validation reports, condense dependency/security/maintainer guidance, fix stale build guidance and links, and keep per-run evidence in PRs and CI. The executable advisory policy, expiry and publisher guards are unchanged.

Known limits:

  • Windows discovery has injected coverage; native Windows execution remains unverified. Custom CLI installation locations require an explicit token.
  • npm ls reports the deliberately omitted engine peers. Their graph remains in the lockfile, so explicitly including uninstalled peers in an audit can still report those advisories. Guards prevent these modules from being restored to the installed planner.

Validation

  • Clean npm ci on pinned Node 24.19.0.

  • npm run audit: zero reported vulnerabilities in installed runtime/development dependencies.

  • npm audit signatures: 215 verified registry signatures and 69 attestations.

  • npm run verify: lint, strict implementation/spec types, build, 94 unit/tooling tests, coverage gate, 43 process tests, 16 packed runtime checks and two typed consumers passed.

  • Authentication tests use dummy CLI executables and mocked provider calls; no developer credentials or OS credential-store entries are used.

  • Documentation links and retained files checked in both source and generated distribution; final archive rebuilt and package checks rerun after the documentation edits.

@github-code-quality

github-code-quality Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/vitest

beta 3503859 titan/reuse-doppler-... 1f6c4db +/-
95% 94% -1%
View coverage of the 3 most impacted files.
File beta 3503859 titan/reuse-doppler-... 1f6c4db +/-
src/doppler/http.ts 100% 100% 0%
src/doppler/system.ts 100% 100% 0%
src/doppler/auth.ts 98% 100% +2%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated October 24, 2026 23:50 UTC

Reuse the CLI's directory-scoped identity for HTTPS secret reads and keep
explicit DOPPLER_TOKEN support for unattended environments. Remove native
browser authorization, OS credential adapters and their CI setup. Document
standard CLI locations, migration and the existing development audit blocker.

Migration: remove resenv login/logout and stop reading resenv-managed
OS credentials. Run doppler login in the application directory or supply
DOPPLER_TOKEN before starting the application.
Update the matching Vitest runner and coverage provider to 4.1.12 and the separately installed Undici copies to patched releases. Preserve unrelated locked versions and record the remaining bundled npm audit blockers without expanding exceptions.
Keep the two official standalone plugins and omit their unused engine peer so npm publisher bundles are not installed. Enforce absence before auditing and planning, retain import and braces guards, and document the existing review deadline without adding exceptions.
@titan-ron
titan-ron force-pushed the titan/reuse-doppler-cli-auth branch from 1573322 to d413bc1 Compare October 24, 2026 23:40
@titan-ron titan-ron changed the title refactor(doppler)!: reuse the doppler cli for authentication fix(doppler): reuse the doppler cli for authentication Oct 24, 2026
@titan-ron
titan-ron merged commit 57cef27 into beta Oct 26, 2026
8 checks passed
@titan-ron
titan-ron deleted the titan/reuse-doppler-cli-auth branch October 26, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant