Proposal: data-at-rest encryption
Hi all,
just as a quick preface:
I'm fairly new to ceph, so forgive me any blunders :) But back to the topic.
after following several discussions on how to implement data-at-rest encryption in ceph i want to add my two cents.
What is used:
a dedicated FTPS server for key-handling
How it will work:
Specify your key-server in ceph.conf.
Preparing and activating an OSD as usual via --dmcrypt. The newly created key will be uploaded and deleted locally. On the initial unlock it will already be retrieved via network.
Why is this a good way:
Taking in consideration that MONs are not the best place to put the keys imho, a dedicated machine is a good place to put them since you are able to take care of additional security arrangements.
What needs attention:
- The dedicated server is a single point of failure.
- If you add more servers, is rsync enough?
- Prevent swapping on key retrieval. (mlockall)
This is what i did so far:
https://github.com/jschmid1/ceph/commit/fee26890c24bd3a7b8865295546297e3f144e6d0?diff=unified
ANY feedback is welcome :)
Signature · 12 lines
Freundliche Grüße - Kind regards, Joshua Schmid Trainee - Storage SUSE Linux GmbH - Maxfeldstr. 5 - 90409 Nürnberg -------------------------------------------------------------------------------------------------------------------- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) -------------------------------------------------------------------------------------------------------------------- -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Joshua!
Quoted 39 lines · Joshua Schmid
Hi all,
just as a quick preface:
I'm fairly new to ceph, so forgive me any blunders :) But back to the topic.
after following several discussions on how to implement data-at-rest encryption in ceph i want to add my two cents.
What is used:
a dedicated FTPS server for key-handling
How it will work:
Specify your key-server in ceph.conf.
Preparing and activating an OSD as usual via --dmcrypt. The newly created key will be uploaded and deleted locally. On the initial unlock it will already be retrieved via network.Why is this a good way:
Taking in consideration that MONs are not the best place to put the keys imho, a dedicated machine is a good place to put them since you are able to take care of additional security arrangements.
What needs attention:
- The dedicated server is a single point of failure.
- If you add more servers, is rsync enough?
- Prevent swapping on key retrieval. (mlockall)
Quoted 6 lines
This is what i did so far:
https://github.com/jschmid1/ceph/commit/fee26890c24bd3a7b8865295546297e3f144e6d0?diff=unified
ANY feedback is welcome :)
Overall the ceph-disk changes look pretty good, and it looks like Andrew and David have both reviewed. My only real concern/request is that the key server be as pluggable as possible. You're using ftps here, but we'd also like to allow deo[1], or even the mon config-key service.
With the original mon proposal, we also wanted an additional layer of security (beyond simply access to the storage network) by storing some key-fetching-key on the disk. It looks like the ftps access is unauthenticated... is that right? I would assume (I'm not hte expert!) that most key management systems require some credentials to store/fetch keys?
sage
Quoted 2 lines · Sage Weil
Hi Joshua!
Hi Sage,
Quoted 4 lines
Overall the ceph-disk changes look pretty good, and it looks like Andrew and David have both reviewed. My only real concern/request is that the key server be as pluggable as possible. You're using ftps here, but we'd also like to allow deo[1], or even the mon config-key service.
Thank for having a look!
I think this should do:
https://github.com/jschmid1/ceph/commit/7dd64c70bcb8d986568d6f379a6fbf9a0e40a441
Service of choice can now be set in the ceph.conf and will be handled separately. This is currently only for unlocking/mapping but will be extended for locking/new if this solution is acceptable.
Quoted 4 lines
With the original mon proposal, we also wanted an additional layer of security (beyond simply access to the storage network) by storing some key-fetching-key on the disk.
Like deo does it? (From the deo README)
"""
Second, we will add a new random key to the pre-existing LUKS encrypted disk and then encrypt it using Deo in a known location.
"""
It looks like the ftps
Quoted 3 lines
access is unauthenticated... is that right? I would assume (I'm not hte expert!) that most key management systems require some credentials to store/fetch keys?
Its totally unauthenticated, thats right. It'd be possible to require USER/PASS for ftp.
Quoted 3 lines
sage
Signature · 12 lines
Freundliche Grüße - Kind regards, Joshua Schmid Trainee - Storage SUSE Linux GmbH - Maxfeldstr. 5 - 90409 Nürnberg -------------------------------------------------------------------------------------------------------------------- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) -------------------------------------------------------------------------------------------------------------------- -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 13 lines · Joshua Schmid
Quoted 2 lines · Sage Weil
Hi Joshua!
Hi Sage,
Quoted 4 lines
Overall the ceph-disk changes look pretty good, and it looks like Andrew and David have both reviewed. My only real concern/request is that the key server be as pluggable as possible. You're using ftps here, but we'd also like to allow deo[1], or even the mon config-key service.
Quoted 8 lines
Thank for having a look!
I think this should do:https://github.com/jschmid1/ceph/commit/7dd64c70bcb8d986568d6f379a6fbf9a0e40a441
Service of choice can now be set in the ceph.conf and will be handled separately. This is currently only for unlocking/mapping but will be extended for locking/new if this solution is acceptable.
Yep! It'd probably be much cleaner to wrap this up in a class with fetch_key() and create_key(), etc. methods so that there is only one place that has to instantiate the implemetnation based on type.
Quoted 12 lines
Quoted 3 lines
With the original mon proposal, we also wanted an additional layer of security (beyond simply access to the storage network) by storing some key-fetching-key on the disk.
Like deo does it? (From the deo README)
"""
Second, we will add a new random key to the pre-existing LUKS encrypted disk and then encrypt it using Deo in a known location.
"""
Quoted 7 lines
It looks like the ftps
Quoted 3 lines
access is unauthenticated... is that right? I would assume (I'm not hte expert!) that most key management systems require some credentials to store/fetch keys?
Its totally unauthenticated, thats right. It'd be possible to require USER/PASS for ftp.
Yeah. If we have a general method to store a key-fetching-key on the disk (in the LUKS table? I forget if this was practical) on the LUKS disk the might work? Hopefully such that various backends can all use it (e.g., as the ftps password, or as a mon key)..
sage
Quoted 19 lines · Sage Weil
Quoted 18 lines · Joshua Schmid
Quoted 2 lines · Sage Weil
Hi Joshua!
Hi Sage,
Quoted 4 lines
Overall the ceph-disk changes look pretty good, and it looks like Andrew and David have both reviewed. My only real concern/request is that the key server be as pluggable as possible. You're using ftps here, but we'd also like to allow deo[1], or even the mon config-key service.
Thank for having a look!
I think this should do:https://github.com/jschmid1/ceph/commit/7dd64c70bcb8d986568d6f379a6fbf9a0e40a441
Quoted 8 lines
Quoted 3 lines
Service of choice can now be set in the ceph.conf and will be handled separately. This is currently only for unlocking/mapping but will be extended for locking/new if this solution is acceptable.
Yep! It'd probably be much cleaner to wrap this up in a class with
fetch_key()andcreate_key(), etc. methods so that there is only one place that has to instantiate the implemetnation based on type.
I dont know if i understood you correctly here. But, since ceph-disk is classless wouldn't it be a bit strange to introduce one?
I now put anything associated with fetching/creating key in a seperate method retrieve_key() and create_key() which will behave accordingly.
Quoted 17 lines
Quoted 17 lines
Quoted 3 lines
With the original mon proposal, we also wanted an additional layer of security (beyond simply access to the storage network) by storing some key-fetching-key on the disk.
Like deo does it? (From the deo README)
"""
Second, we will add a new random key to the pre-existing LUKS encrypted disk and then encrypt it using Deo in a known location.
"""It looks like the ftps
Quoted 3 lines
access is unauthenticated... is that right? I would assume (I'm not hte expert!) that most key management systems require some credentials to store/fetch keys?
Quoted 7 lines
Quoted 2 lines
Its totally unauthenticated, thats right. It'd be possible to require USER/PASS for ftp.
Yeah. If we have a general method to store a key-fetching-key on the disk (in the LUKS table? I forget if this was practical) on the LUKS disk the might work? Hopefully such that various backends can all use it (e.g., as the ftps password, or as a mon key)..
I guess putting it in the LuksKeySlot[1] might work. But plain-dmcrypt has to be handled differently then. For compatibility reasons i suggest to avoid that. But storing it on the root partition is not a good idea either. This area definitely needs more heavy thinking..
Quoted 7 lines
sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 12 lines
Freundliche Grüße - Kind regards, Joshua Schmid Trainee - Storage SUSE Linux GmbH - Maxfeldstr. 5 - 90409 Nürnberg -------------------------------------------------------------------------------------------------------------------- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) -------------------------------------------------------------------------------------------------------------------- -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): CAFdRU70jHtfh84zzAnyffvEpqFHAQ1=413Xok_gxpBcVX1NhKw@mail.gmail.com
Quoted 7 lines · Shinobu
Hello,
Just question.
If the key is broken, how could ceph (maybe named kss standing for key store server :0) recover, and where information to restore it could be retrieved?
Any blueprint?
Hi,
i don't know if i got your question right.
Are you asking what ceph will do if the keyserver is down and where to get the information from on how to restore the OSD?
Well, there will be a timeout if the KSS is unreachable. But in a productive environment it might not be a bad idea to add HA to your KSS.
Quoted 70 lines
Shinobu
Quoted 62 lines · Sage Weil
Quoted 9 lines · Joshua Schmid
Quoted 2 lines · Sage Weil
Hi Joshua!
Hi Sage,
Quoted 1 line
Overall the ceph-disk changes look pretty good, and it looks like
Andrew
Quoted 2 lines
Quoted 2 lines
and David have both reviewed. My only real concern/request is that the key server be as pluggable as possible. You're using ftps here, but
we'd
Quoted 6 lines
Quoted 1 line
also like to allow deo[1], or even the mon config-key service.
Thank for having a look!
I think this should do:https://github.com/jschmid1/ceph/commit/7dd64c70bcb8d986568d6f379a6fbf9a0e40a441
Quoted 4 lines
Service of choice can now be set in the ceph.conf and will be handled separately. This is currently only for unlocking/mapping but will be extended for locking/new if this solution is acceptable.
Yep! It'd probably be much cleaner to wrap this up in a class with
fetch_key()andcreate_key(), etc. methods so that there is only one place that has to instantiate the implemetnation based on type.Quoted 6 lines
Quoted 3 lines
With the original mon proposal, we also wanted an additional layer of security (beyond simply access to the storage network) by storing some key-fetching-key on the disk.
Like deo does it? (From the deo README)
Quoted 8 lines
"""
Second, we will add a new random key to the pre-existing LUKS encrypted disk and then encrypt it using Deo in a known location.
"""It looks like the ftps
Quoted 1 line
access is unauthenticated... is that right? I would assume (I'm not
hte
Quoted 5 lines
Quoted 2 lines
expert!) that most key management systems require some credentials to store/fetch keys?
Its totally unauthenticated, thats right. It'd be possible to require USER/PASS for ftp.
Yeah. If we have a general method to store a key-fetching-key on the disk (in the LUKS table? I forget if this was practical) on the LUKS disk the might work? Hopefully such that various backends can all use it (e.g., as the ftps password, or as a mon key)..
sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 12 lines
Freundliche Grüße - Kind regards, Joshua Schmid Trainee - Storage SUSE Linux GmbH - Maxfeldstr. 5 - 90409 Nürnberg -------------------------------------------------------------------------------------------------------------------- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) -------------------------------------------------------------------------------------------------------------------- -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi,
Thanks for your good comeback!
Quoted 1 line
to your KSS -;
Shinobu
----- Original Message -----
From: "Joshua Schmid" <[email protected]>
To: [email protected], "Sage Weil" <[email protected]>
Cc: "Ceph Development" <[email protected]>
Sent: Friday, August 28, 2015 5:11:34 PM
Subject: Re: Proposal: data-at-rest encryption
Quoted 7 lines · Shinobu
Hello,
Just question.
If the key is broken, how could ceph (maybe named kss standing for key store server :0) recover, and where information to restore it could be retrieved?
Any blueprint?
Hi,
i don't know if i got your question right.
Are you asking what ceph will do if the keyserver is down and where to get the information from on how to restore the OSD?
Well, there will be a timeout if the KSS is unreachable. But in a productive environment it might not be a bad idea to add HA to your KSS.
Quoted 70 lines
Shinobu
Quoted 62 lines · Sage Weil
Quoted 9 lines · Joshua Schmid
Quoted 2 lines · Sage Weil
Hi Joshua!
Hi Sage,
Quoted 1 line
Overall the ceph-disk changes look pretty good, and it looks like
Andrew
Quoted 2 lines
Quoted 2 lines
and David have both reviewed. My only real concern/request is that the key server be as pluggable as possible. You're using ftps here, but
we'd
Quoted 6 lines
Quoted 1 line
also like to allow deo[1], or even the mon config-key service.
Thank for having a look!
I think this should do:https://github.com/jschmid1/ceph/commit/7dd64c70bcb8d986568d6f379a6fbf9a0e40a441
Quoted 4 lines
Service of choice can now be set in the ceph.conf and will be handled separately. This is currently only for unlocking/mapping but will be extended for locking/new if this solution is acceptable.
Yep! It'd probably be much cleaner to wrap this up in a class with
fetch_key()andcreate_key(), etc. methods so that there is only one place that has to instantiate the implemetnation based on type.Quoted 6 lines
Quoted 3 lines
With the original mon proposal, we also wanted an additional layer of security (beyond simply access to the storage network) by storing some key-fetching-key on the disk.
Like deo does it? (From the deo README)
Quoted 8 lines
"""
Second, we will add a new random key to the pre-existing LUKS encrypted disk and then encrypt it using Deo in a known location.
"""It looks like the ftps
Quoted 1 line
access is unauthenticated... is that right? I would assume (I'm not
hte
Quoted 5 lines
Quoted 2 lines
expert!) that most key management systems require some credentials to store/fetch keys?
Its totally unauthenticated, thats right. It'd be possible to require USER/PASS for ftp.
Yeah. If we have a general method to store a key-fetching-key on the disk (in the LUKS table? I forget if this was practical) on the LUKS disk the might work? Hopefully such that various backends can all use it (e.g., as the ftps password, or as a mon key)..
sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 12 lines
Freundliche Grüße - Kind regards, Joshua Schmid Trainee - Storage SUSE Linux GmbH - Maxfeldstr. 5 - 90409 Nürnberg -------------------------------------------------------------------------------------------------------------------- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) -------------------------------------------------------------------------------------------------------------------- -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html