From: Alex Elsayed <eternaleye@gmail.com>
To: ceph-devel@vger.kernel.org
Subject: Re: CDS blueprint: strong auth for cephfs
Date: Thu, 14 Nov 2013 12:09:41 -0800 [thread overview]
Message-ID: <l63als$lk4$1@ger.gmane.org> (raw)
In-Reply-To: CABZ+qq=SQman+HPvKany0HigYrtMn766itdU_7ZsYm6SOaQzcQ@mail.gmail.com
Dan van der Ster wrote:
> Hi Greg,
<snip>
> AFAICT, this would allow single users to mount a subtree on CephFS and
> prevent them from writing where they are not permitted. But our
> use-case is different: we want to mount /cephfs/ from shared
> workstations and batch nodes to store personal home directories,
> shared group areas, and read-only software areas. Managing per-user
> keyrings and per-user mountpoints would become quickly unmanageable.
<snip>
Actually, there are a number of ways this could be managed pretty reasonably
- eCryptfs, in particular, may be worth examining. It ships with a
pam_ecryptfs module that (on login) uses the login password to produce the
decryption key, and load it into the user's session keyring (which is then
associated with every process in that session, although I don't think
eCryptfs uses that). It then mounts the eCryptfs filesystem, and the kernel
uses the loaded key for decryption.
If the credentials are only used on mount, something similar to pam_ecryptfs
could work, or a minimal module that _only_ loads the key followed by
pam_mount.
If the credentials are handled on FS operations, then you'd be able to have
a single top-level mount with minimal privileges and then use the kernel
keyring on access.
That also opens up using 'keyctl' to manually load the key into the user or
session keyring, or using trusted/encrypted keys to allow secure automated
mounts.
In fact, trusted or encrypted keys could be very useful if someone wanted to
securely use Ceph as a rootfs - they'd make it possible to authenticate
mounts based on the hardware, not just the configuration.
next prev parent reply other threads:[~2013-11-14 20:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-13 16:05 CDS blueprint: strong auth for cephfs Dan van der Ster
2013-11-13 17:45 ` Gregory Farnum
2013-11-14 10:00 ` Dan van der Ster
2013-11-14 15:55 ` Gregory Farnum
2013-11-14 16:21 ` Dan van der Ster
2013-11-14 16:37 ` Gregory Farnum
2013-11-14 20:30 ` Arne Wiebalck
2013-11-14 21:31 ` Gregory Farnum
2013-11-14 20:09 ` Alex Elsayed [this message]
2013-11-15 8:42 ` Dan van der Ster
2013-11-14 13:13 ` Arne Wiebalck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='l63als$lk4$1@ger.gmane.org' \
--to=eternaleye@gmail.com \
--cc=ceph-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.