Skip to content

crypto: bound age subprocess lifetime#66

Merged
fosskar merged 5 commits into
deployment-storage-hardeningfrom
age-subprocess-hardening
Jul 22, 2026
Merged

crypto: bound age subprocess lifetime#66
fosskar merged 5 commits into
deployment-storage-hardeningfrom
age-subprocess-hardening

Conversation

@fosskar

@fosskar fosskar commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • resolve age and age-keygen executable paths once when constructing AgeIdentity
  • drive child stdin/stdout asynchronously with an inactivity timeout and guaranteed child cleanup
  • preserve per-operation 0600 identity files while removing avoidable plaintext/ciphertext copies

Verification

  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace
  • focused injected-process tests cover empty environments, inactivity timeout, child reaping, executable resolution, and identity-file lifetime
  • release benchmark stayed within the 5% throughput gate with flat peak RSS

Stacked on deployment-storage-hardening.

@fosskar
fosskar merged commit f00b92a into deployment-storage-hardening Jul 22, 2026
2 checks passed
@fosskar
fosskar deleted the age-subprocess-hardening branch July 22, 2026 17:36
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