mirror of
https://github.com/corda/corda.git
synced 2025-01-01 18:56:44 +00:00
Add a TODO referencing PLT-147 to NodeAttachmentService (randomise attachment JARs)
This commit is contained in:
parent
283d9a031c
commit
bfa5e2091c
@ -101,6 +101,7 @@ class NodeAttachmentService(val storePath: Path, val metrics: MetricRegistry) :
|
|||||||
return AttachmentImpl(id, path, checkAttachmentsOnLoad)
|
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 {
|
override fun importAttachment(jar: InputStream): SecureHash {
|
||||||
require(jar !is JarInputStream)
|
require(jar !is JarInputStream)
|
||||||
val hs = HashingInputStream(Hashing.sha256(), jar)
|
val hs = HashingInputStream(Hashing.sha256(), jar)
|
||||||
|
Loading…
Reference in New Issue
Block a user