FiloSottile / age

A simple, modern and secure encryption tool (and Go library) with small explicit keys, no config options, and UNIX-style composability.
https://age-encryption.org
BSD 3-Clause "New" or "Revised" License
15.75k stars 475 forks source link

cmd/age: print a better error message when plugins are missing #486

Open FiloSottile opened 1 year ago

FiloSottile commented 1 year ago

If we choose to print the first argument of unrecognized stanzas, we should update the plugin spec to mention authors should put something recognizable and not sensitive in there, as in theory it's not special.

See #443 for a use case.

FiloSottile commented 1 year ago

Alternatively, we could define a stanza type specifically for user hints. Plugins could produce

-> hint
download plugin from example.com

based on which we could print

age: hint: the file includes a suggestion: download plugin from example.com

These stanzas would not count for exclusive types like scrypt.

AnomalRoil commented 2 weeks ago

I think the hint approach seems like a better option, but means "bulkier" stanzas. Not sure "how cheap" we consider storage?