All of lore.kernel.org
 help / color / mirror / Atom feed
* Ceph questions regarding auth and return on PUT from radosgw
@ 2012-06-11 12:32 John Axel Eriksson
  2012-06-11 12:40 ` Wido den Hollander
  2012-06-11 15:08 ` Yehuda Sadeh Weinraub
  0 siblings, 2 replies; 6+ messages in thread
From: John Axel Eriksson @ 2012-06-11 12:32 UTC (permalink / raw)
  To: ceph-devel

Is there a point to having auth enabled if I run ceph on an internal
network, only for use with radosgw (i.e the object storage part)?
It seems to complicate the setup unnecessarily and ceph doesn't use
encryption anyway as far as I understand, it's only auth.
If my network is trusted and I know who has access (and I trust them)
- is there a point to complicate the setup with key-based auth?

Also, when PUTting something through radosgw, does ceph/rgw return as
soon as all data has been received or does it return
when it has ensured N replicas? (I've seen quite a delay after all
data has been sent before my PUT returns). I'm using nginx (1.2) by
the way.

Thanks!

John

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ceph questions regarding auth and return on PUT from radosgw
  2012-06-11 12:32 Ceph questions regarding auth and return on PUT from radosgw John Axel Eriksson
@ 2012-06-11 12:40 ` Wido den Hollander
  2012-06-11 12:41   ` John Axel Eriksson
  2012-06-11 15:08 ` Yehuda Sadeh Weinraub
  1 sibling, 1 reply; 6+ messages in thread
From: Wido den Hollander @ 2012-06-11 12:40 UTC (permalink / raw)
  To: John Axel Eriksson; +Cc: ceph-devel

Hi,

On 06/11/2012 02:32 PM, John Axel Eriksson wrote:
> Is there a point to having auth enabled if I run ceph on an internal
> network, only for use with radosgw (i.e the object storage part)?
> It seems to complicate the setup unnecessarily and ceph doesn't use
> encryption anyway as far as I understand, it's only auth.
> If my network is trusted and I know who has access (and I trust them)
> - is there a point to complicate the setup with key-based auth?
>

The RADOS Gateway uses the S3 protocol and that requires authentication 
and authorization.

When creating a bucket/pool and storing objects, it has to be mapped to 
a users inside the RADOS GW.

I don't know what your exact use-case is, but if it's only internal, 
isn't it a possibility to use RADOS natively?

> Also, when PUTting something through radosgw, does ceph/rgw return as
> soon as all data has been received or does it return
> when it has ensured N replicas? (I've seen quite a delay after all
> data has been sent before my PUT returns). I'm using nginx (1.2) by
> the way.

iirc it returns when all replicas have received and stored the object.

Wido

>
> Thanks!
>
> John
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ceph questions regarding auth and return on PUT from radosgw
  2012-06-11 12:40 ` Wido den Hollander
@ 2012-06-11 12:41   ` John Axel Eriksson
  2012-06-11 12:51     ` Wido den Hollander
  0 siblings, 1 reply; 6+ messages in thread
From: John Axel Eriksson @ 2012-06-11 12:41 UTC (permalink / raw)
  To: Wido den Hollander; +Cc: ceph-devel

Oh sorry. I don't think I was clear on the auth question. What I meant
was if the admin.keyring and keys for the osd:s are really necessary
in a private ceph-cluster.

On Mon, Jun 11, 2012 at 2:40 PM, Wido den Hollander <wido@widodh.nl> wrote:
> Hi,
>
>
> On 06/11/2012 02:32 PM, John Axel Eriksson wrote:
>>
>> Is there a point to having auth enabled if I run ceph on an internal
>> network, only for use with radosgw (i.e the object storage part)?
>> It seems to complicate the setup unnecessarily and ceph doesn't use
>> encryption anyway as far as I understand, it's only auth.
>> If my network is trusted and I know who has access (and I trust them)
>> - is there a point to complicate the setup with key-based auth?
>>
>
> The RADOS Gateway uses the S3 protocol and that requires authentication and
> authorization.
>
> When creating a bucket/pool and storing objects, it has to be mapped to a
> users inside the RADOS GW.
>
> I don't know what your exact use-case is, but if it's only internal, isn't
> it a possibility to use RADOS natively?
>
>
>> Also, when PUTting something through radosgw, does ceph/rgw return as
>> soon as all data has been received or does it return
>> when it has ensured N replicas? (I've seen quite a delay after all
>> data has been sent before my PUT returns). I'm using nginx (1.2) by
>> the way.
>
>
> iirc it returns when all replicas have received and stored the object.
>
> Wido
>
>>
>> Thanks!
>>
>> John
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ceph questions regarding auth and return on PUT from radosgw
  2012-06-11 12:41   ` John Axel Eriksson
@ 2012-06-11 12:51     ` Wido den Hollander
  2012-06-11 13:34       ` John Axel Eriksson
  0 siblings, 1 reply; 6+ messages in thread
From: Wido den Hollander @ 2012-06-11 12:51 UTC (permalink / raw)
  To: John Axel Eriksson; +Cc: ceph-devel



On 06/11/2012 02:41 PM, John Axel Eriksson wrote:
> Oh sorry. I don't think I was clear on the auth question. What I meant
> was if the admin.keyring and keys for the osd:s are really necessary
> in a private ceph-cluster.

I'd say: Yes

With keys in place you can ensure that a rogue machine starts bringing 
down your cluster.

Scenario: You take a machine offline in a cluster, let it sit in storage 
for some while and a couple of months later somebody wonders what that 
machine does.

Plugs it into a switch, power and boots. Suddenly this old machine which 
is way behind on software starts participating in your cluster again and 
could potentially bring it all down.

But it could even be even more simple. You set up a second Ceph cluster 
for some tests, but while playing with the 'rados' command you 
accidentally connect to the wrong cluster and issue a "rmpool". Oops!

With auth in place you have a barrier against such situations.

Wido

>
> On Mon, Jun 11, 2012 at 2:40 PM, Wido den Hollander<wido@widodh.nl>  wrote:
>> Hi,
>>
>>
>> On 06/11/2012 02:32 PM, John Axel Eriksson wrote:
>>>
>>> Is there a point to having auth enabled if I run ceph on an internal
>>> network, only for use with radosgw (i.e the object storage part)?
>>> It seems to complicate the setup unnecessarily and ceph doesn't use
>>> encryption anyway as far as I understand, it's only auth.
>>> If my network is trusted and I know who has access (and I trust them)
>>> - is there a point to complicate the setup with key-based auth?
>>>
>>
>> The RADOS Gateway uses the S3 protocol and that requires authentication and
>> authorization.
>>
>> When creating a bucket/pool and storing objects, it has to be mapped to a
>> users inside the RADOS GW.
>>
>> I don't know what your exact use-case is, but if it's only internal, isn't
>> it a possibility to use RADOS natively?
>>
>>
>>> Also, when PUTting something through radosgw, does ceph/rgw return as
>>> soon as all data has been received or does it return
>>> when it has ensured N replicas? (I've seen quite a delay after all
>>> data has been sent before my PUT returns). I'm using nginx (1.2) by
>>> the way.
>>
>>
>> iirc it returns when all replicas have received and stored the object.
>>
>> Wido
>>
>>>
>>> Thanks!
>>>
>>> John
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ceph questions regarding auth and return on PUT from radosgw
  2012-06-11 12:51     ` Wido den Hollander
@ 2012-06-11 13:34       ` John Axel Eriksson
  0 siblings, 0 replies; 6+ messages in thread
From: John Axel Eriksson @ 2012-06-11 13:34 UTC (permalink / raw)
  To: Wido den Hollander; +Cc: ceph-devel

Ok so that's the reason for the keys then? To be able to stop an osd
from connecting to the cluster? Won't "ceph osd down" or something
like that stop it from connecting?

Also, the rados command - doesn't that use the config file to connect
to the osds? If I have the correct config file won't that stop me from
accidentally connecting to some other cluster?

I can see how it might be more relevant when you have 1000 osds and
lots of people managing the cluster, but in my case the cluster won't
be all that big. At first I guess only 3 osds which may grow quite a
bit of course but I can't see us needing even 30 osds (we're not a
cloud hosting company and won't be giving access directly to the
storage from the outside).

Actually, it wouldn't be entirely necessary for us to run the radosgw,
however we do wan't an http interface and radosgw gives us one. I'm
not aware of any other http interface available right now (apart from
writing one ourselves, but we'd much rather use something that is
tested and works, we're a small company).

On Mon, Jun 11, 2012 at 2:51 PM, Wido den Hollander <wido@widodh.nl> wrote:
>
>
> On 06/11/2012 02:41 PM, John Axel Eriksson wrote:
>>
>> Oh sorry. I don't think I was clear on the auth question. What I meant
>> was if the admin.keyring and keys for the osd:s are really necessary
>> in a private ceph-cluster.
>
>
> I'd say: Yes
>
> With keys in place you can ensure that a rogue machine starts bringing down
> your cluster.
>
> Scenario: You take a machine offline in a cluster, let it sit in storage for
> some while and a couple of months later somebody wonders what that machine
> does.
>
> Plugs it into a switch, power and boots. Suddenly this old machine which is
> way behind on software starts participating in your cluster again and could
> potentially bring it all down.
>
> But it could even be even more simple. You set up a second Ceph cluster for
> some tests, but while playing with the 'rados' command you accidentally
> connect to the wrong cluster and issue a "rmpool". Oops!
>
> With auth in place you have a barrier against such situations.
>
> Wido
>
>
>>
>> On Mon, Jun 11, 2012 at 2:40 PM, Wido den Hollander<wido@widodh.nl>
>>  wrote:
>>>
>>> Hi,
>>>
>>>
>>> On 06/11/2012 02:32 PM, John Axel Eriksson wrote:
>>>>
>>>>
>>>> Is there a point to having auth enabled if I run ceph on an internal
>>>> network, only for use with radosgw (i.e the object storage part)?
>>>> It seems to complicate the setup unnecessarily and ceph doesn't use
>>>> encryption anyway as far as I understand, it's only auth.
>>>> If my network is trusted and I know who has access (and I trust them)
>>>> - is there a point to complicate the setup with key-based auth?
>>>>
>>>
>>> The RADOS Gateway uses the S3 protocol and that requires authentication
>>> and
>>> authorization.
>>>
>>> When creating a bucket/pool and storing objects, it has to be mapped to a
>>> users inside the RADOS GW.
>>>
>>> I don't know what your exact use-case is, but if it's only internal,
>>> isn't
>>> it a possibility to use RADOS natively?
>>>
>>>
>>>> Also, when PUTting something through radosgw, does ceph/rgw return as
>>>> soon as all data has been received or does it return
>>>> when it has ensured N replicas? (I've seen quite a delay after all
>>>> data has been sent before my PUT returns). I'm using nginx (1.2) by
>>>> the way.
>>>
>>>
>>>
>>> iirc it returns when all replicas have received and stored the object.
>>>
>>> Wido
>>>
>>>>
>>>> Thanks!
>>>>
>>>> John
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>>>> the body of a message to majordomo@vger.kernel.org
>>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Ceph questions regarding auth and return on PUT from radosgw
  2012-06-11 12:32 Ceph questions regarding auth and return on PUT from radosgw John Axel Eriksson
  2012-06-11 12:40 ` Wido den Hollander
@ 2012-06-11 15:08 ` Yehuda Sadeh Weinraub
  1 sibling, 0 replies; 6+ messages in thread
From: Yehuda Sadeh Weinraub @ 2012-06-11 15:08 UTC (permalink / raw)
  To: John Axel Eriksson; +Cc: ceph-devel

On Mon, Jun 11, 2012 at 5:32 AM, John Axel Eriksson <john@insane.se> wrote:
>
> Also, when PUTting something through radosgw, does ceph/rgw return as
> soon as all data has been received or does it return
> when it has ensured N replicas? (I've seen quite a delay after all
> data has been sent before my PUT returns). I'm using nginx (1.2) by
> the way.
>

It sounds like that you're seeing the effect of nginx buffering of the
entire request before sending it to to the radosgw process (via
fastcgi). The same happens with apache when using mod_fcgi, unlike
mod_fastcgi that actually streams the written data to the backend and
thus acks are throttled accordingly.

Yehuda

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-06-11 15:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-11 12:32 Ceph questions regarding auth and return on PUT from radosgw John Axel Eriksson
2012-06-11 12:40 ` Wido den Hollander
2012-06-11 12:41   ` John Axel Eriksson
2012-06-11 12:51     ` Wido den Hollander
2012-06-11 13:34       ` John Axel Eriksson
2012-06-11 15:08 ` Yehuda Sadeh Weinraub

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.