Skip to content

age: include stderr when identity commands fail - #2316

Draft
armarquez wants to merge 1 commit into
getsops:mainfrom
armarquez:fix/age-key-command-stderr
Draft

armarquez wants to merge 1 commit into
getsops:mainfrom
armarquez:fix/age-key-command-stderr

Conversation

@armarquez

Copy link
Copy Markdown

Summary

  • Include stderr in errors from failed age identity commands so credential-provider diagnostics reach SOPS users.
  • Preserve wrapped command errors and keep stdout out of error messages, including when a command emits key material before failing.

Test plan

  • Regression test fails against the original implementation.
  • Age package tests pass on upstream main and v3.13.3.
  • Cover diagnostic, empty, padded, and whitespace stderr; successful commands; exit status preservation; and stdout isolation.
  • CLI decryption with a disposable age key verifies successful reads and credential-provider failures.

Signed-off-by: Anthony Marquez <armarquez@gmail.com>
@armarquez
armarquez force-pushed the fix/age-key-command-stderr branch from 1a49e6f to 4a96b1c Compare October 12, 2026 03:51
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