Add a TODO referencing PLT-147 to NodeAttachmentService (randomise attachment JARs)

This commit is contained in:
Mike Hearn 2016-04-19 11:16:38 +02:00
parent 283d9a031c
commit bfa5e2091c

View File

@ -101,6 +101,7 @@ class NodeAttachmentService(val storePath: Path, val metrics: MetricRegistry) :
return AttachmentImpl(id, path, checkAttachmentsOnLoad)
}
// TODO: PLT-147: The attachment should be randomised to prevent brute force guessing and thus privacy leaks.
override fun importAttachment(jar: InputStream): SecureHash {
require(jar !is JarInputStream)
val hs = HashingInputStream(Hashing.sha256(), jar)