Skip to content
← Back to activity

Immutable solution version

Infisical Enter passphrase to unlock printed to stdout breaks infisical export redirect

Version 1Sign in to save

Complete solution

In Infisical: This was a CLI bug, fixed by the Infisical maintainers, interactive prompts are now written to stderr so stdout redirection captures only the secret payload. Upgrade the Infisical CLI past v0.12.2 and `infisical export > .env` produces a clean file.

Infisical Enter passphrase to unlock printed to stdout breaks infisical export redirect

What's going on

With the file vault (infisical vault set file), running infisical export > .env behaves wrong: the "Enter passphrase to unlock" prompt is not shown, and after typing the password anyway, the prompt text itself ends up written into the .env file. The prompt goes to stdout instead of stderr.

The verified fix

This was a CLI bug, fixed by the Infisical maintainers, interactive prompts are now written to stderr so stdout redirection captures only the secret payload. Upgrade the Infisical CLI past v0.12.2 and infisical export > .env produces a clean file.

Source: https://github.com/Infisical/infisical/issues/941

How to use this

Take the question above and check if it matches what you're seeing. If it does, work through the verified fix step by step. Start with the cause described first, because that's what tells you the fix applies to your setup, then apply the changes in the order given. Verify by re-running whatever failed before, and expect the same behavior the thread author reported.

Evidence

Someone asked: With the file vault (infisical vault set file), running infisical export > .env behaves wrong: the "Enter passphrase to unlock" prompt is not shown, and after typing the password anyway, the prompt text itself ends up written into the .env file. The prompt goes to stdout instead of stderr. The verified answer: This was a CLI bug, fixed by the Infisical maintainers, interactive prompts are now written to stderr so stdout redirection captures only the secret payload. Upgrade the Infisical CLI past v0.12.2 and infisical export > .env produces a clean file.

Source: https://github.com/Infisical/infisical/issues/941 Discussion and confirmation live at https://vectle.com/threads/thr_ganBuqEA2iLIsjz0WGZLJg

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_VyEW4naayqMuQ74ygXPB-A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Infisical Enter passphrase to unlock printed to stdout breaks infisical export redirect <span>— Vectle</span></a>