Skip to content

Remove revealSensitiveConfig() - #1268

Open
theoephraim wants to merge 1 commit into
mainfrom
remove-reveal-sensitive-config
Open

theoephraim wants to merge 1 commit into
mainfrom
remove-reveal-sensitive-config

Conversation

@theoephraim

@theoephraim theoephraim commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Removes revealSensitiveConfig() from varlock/env, varlock/auto-init and @varlock/cloudflare-integration/init.

It marked a value as revealed by wrapping it in a fixed 👁 marker, and redaction skipped any match with those characters on either side. Text logged next to a secret could supply the same characters and switch off redaction for it. Rather than make the marker unguessable, this drops the helper and the marker handling it needed (marker stripping at the last output layer, holding back partial markers in stream redaction).

To print a sensitive value on purpose, use varlock reveal rather than logging in code.

Merge with the next major.

Its in-band unmask marker was a fixed string, so text logged next to a secret
could forge it and switch off redaction for that value. Use
@sensitive={redact=false} to print a value on purpose.
@theoephraim theoephraim added the BREAKING This is a breaking change in varlock core - merge when doing a new major release label Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

bumpy-frog

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

major Major releases

  • @varlock/1password-plugin 2.0.6 → 3.0.0 (dep)
  • @varlock/akeyless-plugin 2.0.1 → 3.0.0 (dep)
  • @varlock/astro-integration 1.4.5 → 2.0.0 (dep)
  • @varlock/aws-secrets-plugin 1.2.5 → 2.0.0 (dep)
  • @varlock/aws-sigv4-plugin 0.1.2 → 1.0.0 (dep)
  • @varlock/azure-key-vault-plugin 1.3.1 → 2.0.0 (dep)
  • @varlock/bitwarden-plugin 2.0.2 → 3.0.0 (dep)
  • @varlock/cloudflare-integration 1.6.3 → 2.0.0
  • @varlock/dashlane-plugin 2.1.2 → 3.0.0 (dep)
  • @varlock/doppler-plugin 2.0.2 → 3.0.0 (dep)
  • @varlock/effect-plugin 0.1.0 → 1.0.0 (dep)
  • @varlock/expo-integration 1.2.2 → 2.0.0 (dep)
  • @varlock/google-secret-manager-plugin 1.2.4 → 2.0.0 (dep)
  • @varlock/hashicorp-vault-plugin 2.1.2 → 3.0.0 (dep)
  • @varlock/infisical-plugin 2.1.3 → 3.0.0 (dep)
  • @varlock/keepass-plugin 2.0.4 → 3.0.0 (dep)
  • @varlock/keeper-plugin 2.0.2 → 3.0.0 (dep)
  • @varlock/kubernetes-plugin 1.0.2 → 2.0.0 (dep)
  • @varlock/native-helper-darwin 1.24.0 → 2.0.0
  • @varlock/native-helper-linux-arm64 1.24.0 → 2.0.0
  • @varlock/native-helper-linux-x64 1.24.0 → 2.0.0
  • @varlock/native-helper-win32-x64 1.24.0 → 2.0.0
  • @varlock/nextjs-integration 2.0.0 → 3.0.0 (dep)
  • @varlock/nuxt-integration 0.1.5 → 1.0.0 (dep)
  • @varlock/pass-plugin 1.0.3 → 2.0.0 (dep)
  • @varlock/passbolt-plugin 2.0.2 → 3.0.0 (dep)
  • @varlock/proton-pass-plugin 2.0.2 → 3.0.0 (dep)
  • @varlock/vite-integration 1.5.5 → 2.0.0 (dep)
  • varlock 1.24.0 → 2.0.0

Bump files in this PR

Click here if you want to add another bump file to this PR


This comment is maintained by bumpy.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

📦 Bundle size

✅ shrinks the bundle by 19.2 KB (−0.4%)

Metric main This PR Δ
Total dist 5176.1 KB 5156.8 KB −19.2 KB (−0.4%)
JS 1976.4 KB 1968.3 KB −8.2 KB (−0.4%)
Sourcemaps 3062.5 KB 3053.6 KB −9.0 KB (−0.3%)
Type defs 137.1 KB 135.0 KB −2.1 KB (−1.6%)
Other 0.0 KB 0.0 KB —

dist/ only; native binaries are versioned separately and not counted here.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ No new issues found.

Reviewed changes: Reviewed the API removal, redaction behavior, affected exports, documentation, and regression coverage.

  • API removal: Removes revealSensitiveConfig() from varlock/env, varlock/auto-init, and Cloudflare init, with major-version release entries.
  • Redaction simplification: Removes the fixed-marker bypass, output marker stripping, and marker-specific stream holdback while retaining secret redaction and split-value handling.
  • Docs and tests: Removes the documented helper opt-out and adds coverage confirming that surrounding marker text cannot disable redaction. All 236 runtime tests pass; varlock and Cloudflare integration builds pass.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

@pkg-pr-new

pkg-pr-new Bot commented Nov 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

varlock

npm i https://pkg.pr.new/varlock@1268

@varlock/astro-integration

npm i https://pkg.pr.new/@varlock/astro-integration@1268

@varlock/cloudflare-integration

npm i https://pkg.pr.new/@varlock/cloudflare-integration@1268

@varlock/expo-integration

npm i https://pkg.pr.new/@varlock/expo-integration@1268

@varlock/nextjs-integration

npm i https://pkg.pr.new/@varlock/nextjs-integration@1268

@varlock/nuxt-integration

npm i https://pkg.pr.new/@varlock/nuxt-integration@1268

@varlock/vite-integration

npm i https://pkg.pr.new/@varlock/vite-integration@1268

@varlock/native-helper-darwin

npm i https://pkg.pr.new/@varlock/native-helper-darwin@1268

@varlock/native-helper-linux-arm64

npm i https://pkg.pr.new/@varlock/native-helper-linux-arm64@1268

@varlock/native-helper-linux-x64

npm i https://pkg.pr.new/@varlock/native-helper-linux-x64@1268

@varlock/native-helper-win32-x64

npm i https://pkg.pr.new/@varlock/native-helper-win32-x64@1268

@varlock/1password-plugin

npm i https://pkg.pr.new/@varlock/1password-plugin@1268

@varlock/akeyless-plugin

npm i https://pkg.pr.new/@varlock/akeyless-plugin@1268

@varlock/aws-secrets-plugin

npm i https://pkg.pr.new/@varlock/aws-secrets-plugin@1268

@varlock/aws-sigv4-plugin

npm i https://pkg.pr.new/@varlock/aws-sigv4-plugin@1268

@varlock/azure-key-vault-plugin

npm i https://pkg.pr.new/@varlock/azure-key-vault-plugin@1268

@varlock/bitwarden-plugin

npm i https://pkg.pr.new/@varlock/bitwarden-plugin@1268

@varlock/dashlane-plugin

npm i https://pkg.pr.new/@varlock/dashlane-plugin@1268

@varlock/doppler-plugin

npm i https://pkg.pr.new/@varlock/doppler-plugin@1268

@varlock/effect-plugin

npm i https://pkg.pr.new/@varlock/effect-plugin@1268

@varlock/google-secret-manager-plugin

npm i https://pkg.pr.new/@varlock/google-secret-manager-plugin@1268

@varlock/hashicorp-vault-plugin

npm i https://pkg.pr.new/@varlock/hashicorp-vault-plugin@1268

@varlock/infisical-plugin

npm i https://pkg.pr.new/@varlock/infisical-plugin@1268

@varlock/keepass-plugin

npm i https://pkg.pr.new/@varlock/keepass-plugin@1268

@varlock/keeper-plugin

npm i https://pkg.pr.new/@varlock/keeper-plugin@1268

@varlock/kubernetes-plugin

npm i https://pkg.pr.new/@varlock/kubernetes-plugin@1268

@varlock/pass-plugin

npm i https://pkg.pr.new/@varlock/pass-plugin@1268

@varlock/passbolt-plugin

npm i https://pkg.pr.new/@varlock/passbolt-plugin@1268

@varlock/proton-pass-plugin

npm i https://pkg.pr.new/@varlock/proton-pass-plugin@1268

commit: 59542b1

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
varlock-website 59542b1 Commit Preview URL

Branch Preview URL
Nov 02 2026, 05:18 PM

This branch has not been deployed

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

Labels

BREAKING This is a breaking change in varlock core - merge when doing a new major release core:varlock core:website maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant