Closed douardda closed 1 week ago
The error does go away when there is a newline present, but it also goes away when the identity file contains its usual comment header (and no trailing newline). So I think the issue is that the identity file parser, which needs to distinguish between three different possible file types (encrypted identity, SSH identity and native age identity) tries to read an entire line, and in the case of your file that results in the entire file being read, which messes with the assumptions being made about the underlying buffer being larger than the read.
Environment
What were you trying to do
decrypt a test content using the following command line:
with an identity file like:
(so the actual key without any trailing character)
What happened
Following error message:
This used to work with rage < 0.10.
Thank you