cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Branimir Lambov (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-6018) Add option to encrypt commitlog
Date Fri, 21 Aug 2015 09:24:46 GMT


Branimir Lambov commented on CASSANDRA-6018:

Patch looks good overall. The only issue I have is with the way the header parameters are
used by the descriptor-- they are on one hand part of it, on the other not written with it.
I don't think that's actually needed, as the use of this is to store the initialization vector,
which in part is determined at segment creation time, i.e. at the right moment for the descriptor
to be initialized with that data. Is there something I'm missing?

This will create an OFF_HEAP buffer (LZ4's preferred type). Since you are compressing to ON_HEAP,
I think it will help to use the same buffer type for the input as well. Perhaps {{FileDirectSegment.createBuffer}}
should take the preferred type as argument?

[The documentation of the encryption API|,%20java.nio.ByteBuffer)]
specifies that {{doFinal}} is copy-safe, which should mean that we can do encryption in-place
and do with just one buffer (improving cache efficiency). Have you tried that?

silent switch to ON_HEAP is not a very nice default action. I'd use {{BufferType.typeOf(buf)}}

should throw. If there's reason not to, could that be put in comment?

Style issue [here|].

The tests will need some rebasing.

> Add option to encrypt commitlog 
> --------------------------------
>                 Key: CASSANDRA-6018
>                 URL:
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Jason Brown
>            Assignee: Jason Brown
>              Labels: commit_log, encryption, security
>             Fix For: 3.x
> We are going to start using cassandra for a billing system, and while I can encrypt sstables
at rest (via Datastax Enterprise), commit logs are more or less plain text. Thus, an attacker
would be able to easily read, for example, credit card numbers in the clear text commit log
(if the calling app does not encrypt the data itself before sending it to cassandra).
> I want to allow the option of encrypting the commit logs, most likely controlled by a
property in the yaml.

This message was sent by Atlassian JIRA

View raw message