Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .bumpy/run-redaction-tty-auto-detect.md

This file was deleted.

2 changes: 1 addition & 1 deletion bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions packages/varlock/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@




## 1.6.1
<sub>2026-06-11</sub>

- [#770](https://github.com/dmno-dev/varlock/pull/770) *(patch)* - **Fix:** `varlock run` no longer breaks interactive TTY tools (`psql`, `claude`, etc.). Previously redaction always piped stdout/stderr, which broke raw-TTY behavior unless you passed `--no-redact-stdout`.
Redaction is now auto-detected per stream: output attached to an interactive terminal passes through directly (preserving raw TTY behavior), while piped or redirected output (CI logs, files, pipes) is still redacted — that's where leaked secrets actually persist. Detection is per stream, so `varlock run -- app | tee log.txt` redacts stdout while stderr (still on the terminal) passes through.
- Add `--redact-stdout` / `_VARLOCK_REDACT_STDOUT` to override the auto-detection: force redaction of piped output (e.g. to override `@redactLogs=false`). Forcing redaction while attached to an interactive terminal errors, since it isn't possible without breaking TTY behavior. The flag takes precedence over the env var.
- Fix a leak where a secret split across stream chunk boundaries escaped redaction.
- Exclude all reserved `_VARLOCK_*` keys from the injected env blob, generated types, and override provenance (previously only `_VARLOCK_ENV_KEY` / `_VARLOCK_CACHE_KEY` were excluded), and scope override provenance to actual schema config keys instead of mirroring every `process.env` key. Warn when a user defines a config item using the reserved `_VARLOCK_` prefix.

## 1.6.0
<sub>2026-06-10</sub>

Expand Down
2 changes: 1 addition & 1 deletion packages/varlock/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "varlock",
"version": "1.6.0",
"version": "1.6.1",
"description": "AI-safe .env files: Schemas for agents, Secrets for humans.",
"main": "index.js",
"type": "module",
Expand Down
Loading