Something I've been wondering for awhile: while innovation for per-file-level encryption is useful, is there a clean way to run encrypted docker volumes for achieving containerized encryption-at-rest? In particularly, a portable docker-only way (ex: docker-compose containers / users on the network get access and that's it), with no host linux FS / k8s extensions?
I think this is dangerous to use for many of the use cases that it would appear useful for, especially for any form of backups. By design, it protects the confidentiality of encrypted files but not the integrity, and in almost every real threat model this is a serious flaw. The authors are not interested in changing this (they have closed various issues asking for it and clearly documented their position) so you should probably not use it unless you understand the issues well enough to be confident that is safe for you or can solve the problem using a second tool for signing (which will also cost you streaming).
I am not any kind of expert in this field, so you are not obligated to listen to me... but I am still right.
calling this format "secure" is not sufficient, here is a review that asked the right questions.
https://neilmadden.blog/2019/12/30/a-few-comments-on-age/
Unfortunately, the age spec doesn’t document its threat model or the security goals it is intended to achieve so I’m having to read between the lines to work out what was intended.
Yeah it's definitely not cutting edge on all fronts. Another issue is that the length of the plaintext is being exposed. Simple padding would help mask that in most, if not all, instances.
It's for the case where you are concerned about malicious modification and the user is expected to not deal with the ramifications of the error message. This case in particular:
$ gpg2 -d backup.tgz.pgp | tar xz
So the modified backup file can do bad things before anyone can stop it because gpg will complete the operation before warning of the modification.
It doesn't have integrated signature support so that in most cases an attacker can use the public key to entirely replace the file and avoid the bother of some sort of known text attack in the first place. So I think that the use case is so narrow as to disappear. The linked article covers this. That is really all there is. It serves best as a demonstration of what an encryption utility would be like that blows up and errors out on a possible modification, as opposed to completing the operation and returning the error at the end.
I much look forward to: hardware key support, password store, mount and integration with back up software (and perhaps rclone which is for data movement). I am pretty happy with GPG, which supports most of these features and more (sometimes via third parties that use it), but also appreciate Age and may play with it, once it’s more useful. I like that it’s, apparently, easier for applications to interface with it, particularly in the large and growing Go ecosystem. One complaint: It’s hard to find Age by Google search!
Comments (88) 23 threads
Earlier commentsI am not any kind of expert in this field, so you are not obligated to listen to me... but I am still right.
https://neilmadden.blog/2019/12/30/a-few-comments-on-age/ Unfortunately, the age spec doesn’t document its threat model or the security goals it is intended to achieve so I’m having to read between the lines to work out what was intended.
It doesn't have integrated signature support so that in most cases an attacker can use the public key to entirely replace the file and avoid the bother of some sort of known text attack in the first place. So I think that the use case is so narrow as to disappear.
The linked article covers this. That is really all there is.
It serves best as a demonstration of what an encryption utility would be like that blows up and errors out on a possible modification, as opposed to completing the operation and returning the error at the end.
https://news.ycombinator.com/item?id=27433186
This is, to put it charitably, an idiosyncratic argument about how data encryption is supposed to work.
Continue this thread — 1 reply
I think if we did that, the stupid discussion about GPG and framing its lack of IND-CCA2 as a "recoverability feature" would become moot.
Continue this thread — 2 replies
I much look forward to: hardware key support, password store, mount and integration with back up software (and perhaps rclone which is for data movement).
I am pretty happy with GPG, which supports most of these features and more (sometimes via third parties that use it), but also appreciate Age and may play with it, once it’s more useful.
I like that it’s, apparently, easier for applications to interface with it, particularly in the large and growing Go ecosystem.
One complaint: It’s hard to find Age by Google search!
All comments shown.
Couldn't load more comments. Check your connection and try again.