]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
15 years agoauth: make ceph_crypto_key match CryptoKey
Sage Weil [Mon, 26 Oct 2009 16:58:51 +0000 (09:58 -0700)]
auth: make ceph_crypto_key match CryptoKey

15 years agoauth: send request for tickets when needed
Yehuda Sadeh [Mon, 26 Oct 2009 23:25:19 +0000 (16:25 -0700)]
auth: send request for tickets when needed

15 years agoauth: cephx handler verifies keys expiration
Yehuda Sadeh [Mon, 26 Oct 2009 22:41:57 +0000 (15:41 -0700)]
auth: cephx handler verifies keys expiration

15 years agoauth: don't enforce caps on internal mon messages
Yehuda Sadeh [Mon, 26 Oct 2009 20:31:00 +0000 (13:31 -0700)]
auth: don't enforce caps on internal mon messages

15 years agoauth: filter mon paxos requests according to caps
Yehuda Sadeh [Mon, 26 Oct 2009 19:55:00 +0000 (12:55 -0700)]
auth: filter mon paxos requests according to caps

15 years agoauth: get_caps, for MonCaps
Yehuda Sadeh [Mon, 26 Oct 2009 17:34:25 +0000 (10:34 -0700)]
auth: get_caps, for MonCaps

15 years agoauth: keep caps after closing mon session
Yehuda Sadeh [Mon, 26 Oct 2009 17:26:39 +0000 (10:26 -0700)]
auth: keep caps after closing mon session

15 years agoosd: break out OSDCaps into a separate file
Sage Weil [Sat, 24 Oct 2009 04:33:00 +0000 (21:33 -0700)]
osd: break out OSDCaps into a separate file

15 years agoauth: parse mon caps
Yehuda Sadeh [Fri, 23 Oct 2009 23:57:23 +0000 (16:57 -0700)]
auth: parse mon caps

15 years agoauth: clean up debug output some
Sage Weil [Fri, 23 Oct 2009 23:52:43 +0000 (16:52 -0700)]
auth: clean up debug output some

15 years agoauth: clean up debug output a bit
Sage Weil [Fri, 23 Oct 2009 23:43:41 +0000 (16:43 -0700)]
auth: clean up debug output a bit

15 years agomonc: less noisy about rotating keys
Sage Weil [Fri, 23 Oct 2009 23:40:16 +0000 (16:40 -0700)]
monc: less noisy about rotating keys

15 years agoauth: move auth rotating interaction into auth handlers
Sage Weil [Fri, 23 Oct 2009 23:12:39 +0000 (16:12 -0700)]
auth: move auth rotating interaction into auth handlers

15 years agoauth: pass mon caps to the session
Yehuda Sadeh [Fri, 23 Oct 2009 22:47:05 +0000 (15:47 -0700)]
auth: pass mon caps to the session

15 years agoosd: fix authorizer verify
Sage Weil [Fri, 23 Oct 2009 22:38:47 +0000 (15:38 -0700)]
osd: fix authorizer verify

15 years agomonc: fix rotating keys
Sage Weil [Fri, 23 Oct 2009 22:37:04 +0000 (15:37 -0700)]
monc: fix rotating keys

15 years agovstart: debug monc for now
Sage Weil [Fri, 23 Oct 2009 22:35:08 +0000 (15:35 -0700)]
vstart: debug monc for now

15 years agomsgr: handle bad authorize_reply gracefully
Sage Weil [Fri, 23 Oct 2009 22:30:37 +0000 (15:30 -0700)]
msgr: handle bad authorize_reply gracefully

15 years agomsgr: use authorizer, init to 0
Sage Weil [Fri, 23 Oct 2009 22:23:34 +0000 (15:23 -0700)]
msgr: use authorizer, init to 0

15 years agoosd: simplify ms_verify_authorizer
Sage Weil [Fri, 23 Oct 2009 22:12:56 +0000 (15:12 -0700)]
osd: simplify ms_verify_authorizer

15 years agoauth: move one more type
Sage Weil [Fri, 23 Oct 2009 21:53:21 +0000 (14:53 -0700)]
auth: move one more type

15 years agoauth: a few comments
Sage Weil [Fri, 23 Oct 2009 21:50:40 +0000 (14:50 -0700)]
auth: a few comments

15 years agoauth: move most Auth.h stuff into cephx/CephxProtocol.h
Sage Weil [Fri, 23 Oct 2009 21:42:48 +0000 (14:42 -0700)]
auth: move most Auth.h stuff into cephx/CephxProtocol.h

15 years agoauth: initialize protocol field in AuthAuthorizer
Yehuda Sadeh [Fri, 23 Oct 2009 21:14:34 +0000 (14:14 -0700)]
auth: initialize protocol field in AuthAuthorizer

15 years agoosd: don't try to build authorizer for connection with mon
Yehuda Sadeh [Fri, 23 Oct 2009 21:10:48 +0000 (14:10 -0700)]
osd: don't try to build authorizer for connection with mon

15 years agomsgr: put AuthAuthorizer on heap, set protocol field during connect
Sage Weil [Fri, 23 Oct 2009 20:40:01 +0000 (13:40 -0700)]
msgr: put AuthAuthorizer on heap, set protocol field during connect

This paves the way for making it an abstract parent class.

15 years agomon: initialize vars
Sage Weil [Fri, 23 Oct 2009 20:38:58 +0000 (13:38 -0700)]
mon: initialize vars

15 years agoauth: filter mds messages according to remote peer type
Yehuda Sadeh [Fri, 23 Oct 2009 19:53:28 +0000 (12:53 -0700)]
auth: filter mds messages according to remote peer type

15 years agoosd: fix log messages
Yehuda Sadeh [Fri, 23 Oct 2009 19:50:37 +0000 (12:50 -0700)]
osd: fix log messages

15 years agoauth: osd parser to accept 'pool'
Yehuda Sadeh [Fri, 23 Oct 2009 19:28:59 +0000 (12:28 -0700)]
auth: osd parser to accept 'pool'

15 years agomsgr: include authorizer_protocol in connect header
Sage Weil [Fri, 23 Oct 2009 19:52:00 +0000 (12:52 -0700)]
msgr: include authorizer_protocol in connect header

So that the remote end knows what kind of authorizer is
being given to them.

No negotiation is allowed at this stage, but this provides
a sanity check.

15 years agoauth: simplify AuthClientHandler interface
Sage Weil [Fri, 23 Oct 2009 19:46:20 +0000 (12:46 -0700)]
auth: simplify AuthClientHandler interface

Get rid of AuthClientHandler wrapper; use the raw interface
in MonClient.

15 years agoauth: simplify part of initial auth handshake
Sage Weil [Fri, 23 Oct 2009 18:56:53 +0000 (11:56 -0700)]
auth: simplify part of initial auth handshake

15 years agoauth: move cephx server side into cephx dir
Sage Weil [Fri, 23 Oct 2009 18:39:12 +0000 (11:39 -0700)]
auth: move cephx server side into cephx dir

15 years agoauth: better encapsulate cephx protocol
Sage Weil [Fri, 23 Oct 2009 18:30:26 +0000 (11:30 -0700)]
auth: better encapsulate cephx protocol

So far mostly just the client side is done.

15 years agoauth: add exec caps
Yehuda Sadeh [Fri, 23 Oct 2009 18:05:03 +0000 (11:05 -0700)]
auth: add exec caps

15 years agoobjecter: fix handling when pgls returns error
Yehuda Sadeh [Fri, 23 Oct 2009 17:58:12 +0000 (10:58 -0700)]
objecter: fix handling when pgls returns error

15 years agoauth: return bool from build_authorizer
Sage Weil [Thu, 22 Oct 2009 23:50:31 +0000 (16:50 -0700)]
auth: return bool from build_authorizer

15 years agoauth: cleaner about timestamp change
Sage Weil [Thu, 22 Oct 2009 23:50:20 +0000 (16:50 -0700)]
auth: cleaner about timestamp change

15 years agoutime: add != operator
Sage Weil [Thu, 22 Oct 2009 23:50:01 +0000 (16:50 -0700)]
utime: add != operator

15 years agoauth: merge envelope, cephx handshake
Sage Weil [Thu, 22 Oct 2009 23:16:06 +0000 (16:16 -0700)]
auth: merge envelope, cephx handshake

15 years agoauth: remove (unused) addr field from authenticate, ticket
Sage Weil [Thu, 22 Oct 2009 22:35:23 +0000 (15:35 -0700)]
auth: remove (unused) addr field from authenticate, ticket

15 years agoauth: kill some unused AuthClientHandler fields
Sage Weil [Thu, 22 Oct 2009 22:35:07 +0000 (15:35 -0700)]
auth: kill some unused AuthClientHandler fields

15 years agoauth: kill client side timeouts
Sage Weil [Thu, 22 Oct 2009 22:30:00 +0000 (15:30 -0700)]
auth: kill client side timeouts

The monclient will do the timing out.

15 years agoauth: kill dead code
Sage Weil [Thu, 22 Oct 2009 22:25:26 +0000 (15:25 -0700)]
auth: kill dead code

The synchronous authorize() and authenticate() code paths
aren't used.

15 years agoauth: enforce read/write caps for osd_op
Yehuda Sadeh [Thu, 22 Oct 2009 23:24:28 +0000 (16:24 -0700)]
auth: enforce read/write caps for osd_op

15 years agoauth: fix pg_create filtering
Yehuda Sadeh [Thu, 22 Oct 2009 21:59:53 +0000 (14:59 -0700)]
auth: fix pg_create filtering

15 years agoauth: filter osd messages according to their peer type
Yehuda Sadeh [Thu, 22 Oct 2009 21:51:16 +0000 (14:51 -0700)]
auth: filter osd messages according to their peer type

15 years agoauth: kill CephXPremable, put trans_id in msg
Sage Weil [Thu, 22 Oct 2009 22:09:11 +0000 (15:09 -0700)]
auth: kill CephXPremable, put trans_id in msg

The preamble just identifies different conversations; it's
not really part of the cephx protocol.  This simplifies
the code a bit.

15 years agoauth: nicer msg names
Sage Weil [Thu, 22 Oct 2009 21:41:03 +0000 (14:41 -0700)]
auth: nicer msg names

15 years agomsgr: be quieter
Sage Weil [Thu, 22 Oct 2009 21:38:40 +0000 (14:38 -0700)]
msgr: be quieter

15 years agouclient: implement ms_get_authorizer
Sage Weil [Thu, 22 Oct 2009 21:27:47 +0000 (14:27 -0700)]
uclient: implement ms_get_authorizer

15 years agoauth: fix up ms_get_authorizer
Sage Weil [Thu, 22 Oct 2009 21:27:35 +0000 (14:27 -0700)]
auth: fix up ms_get_authorizer

Never return authorizer for monitors.

15 years agoauth: call the protocol CEPHX
Sage Weil [Thu, 22 Oct 2009 21:19:12 +0000 (14:19 -0700)]
auth: call the protocol CEPHX

15 years agoauth: CEPH_PRINCIPLE_ -> CEPH_ENTITY_TYPE_*
Sage Weil [Thu, 22 Oct 2009 21:17:10 +0000 (14:17 -0700)]
auth: CEPH_PRINCIPLE_ -> CEPH_ENTITY_TYPE_*

15 years agomsgr: define C ceph_entity_type_name
Sage Weil [Thu, 22 Oct 2009 20:44:20 +0000 (13:44 -0700)]
msgr: define C ceph_entity_type_name

15 years agoauth: kill unused MAuthMon[Ack]
Sage Weil [Thu, 22 Oct 2009 19:56:33 +0000 (12:56 -0700)]
auth: kill unused MAuthMon[Ack]

15 years agoauth: AuthLib* -> KeyServerData::Incremental
Sage Weil [Thu, 22 Oct 2009 19:54:13 +0000 (12:54 -0700)]
auth: AuthLib* -> KeyServerData::Incremental

15 years agoauth: list secrets using the second interface
Yehuda Sadeh [Thu, 22 Oct 2009 19:32:45 +0000 (12:32 -0700)]
auth: list secrets using the second interface

15 years agoosd: fix deadlock on initialization
Yehuda Sadeh [Thu, 22 Oct 2009 19:23:57 +0000 (12:23 -0700)]
osd: fix deadlock on initialization

15 years agoauth: auth class list operation dumps key
Yehuda Sadeh [Thu, 22 Oct 2009 19:23:35 +0000 (12:23 -0700)]
auth: auth class list operation dumps key

15 years agolibrados: create objecter before other initialization
Yehuda Sadeh [Thu, 22 Oct 2009 19:19:34 +0000 (12:19 -0700)]
librados: create objecter before other initialization

15 years agoauth: authtool dumps the key either
Yehuda Sadeh [Thu, 22 Oct 2009 18:52:07 +0000 (11:52 -0700)]
auth: authtool dumps the key either

15 years agohexdump: can dump to a buffer
Yehuda Sadeh [Thu, 22 Oct 2009 18:51:32 +0000 (11:51 -0700)]
hexdump: can dump to a buffer

15 years agoauth: fix uninitialized var, bad interface use
Yehuda Sadeh [Thu, 22 Oct 2009 18:50:41 +0000 (11:50 -0700)]
auth: fix uninitialized var, bad interface use

15 years agoceph: add missing include
Sage Weil [Thu, 22 Oct 2009 19:31:01 +0000 (12:31 -0700)]
ceph: add missing include

15 years agoauth: rename Keys* classes
Sage Weil [Thu, 22 Oct 2009 19:13:28 +0000 (12:13 -0700)]
auth: rename Keys* classes

15 years agoauth: some cleanup
Sage Weil [Thu, 22 Oct 2009 19:01:58 +0000 (12:01 -0700)]
auth: some cleanup

15 years agoauth: clean out old authorizer cruft, unneeded AuthContext
Sage Weil [Thu, 22 Oct 2009 18:42:15 +0000 (11:42 -0700)]
auth: clean out old authorizer cruft, unneeded AuthContext

Just put timestamp in the Authorizer itself.  The other
AuthContext fields were unused.

15 years agoauthtool: useful error/output msg when creating new key file
Sage Weil [Thu, 22 Oct 2009 18:25:29 +0000 (11:25 -0700)]
authtool: useful error/output msg when creating new key file

15 years agoauthtool: print key, too
Sage Weil [Thu, 22 Oct 2009 18:18:14 +0000 (11:18 -0700)]
authtool: print key, too

15 years agoMakefile: include armor.[ch]
Sage Weil [Thu, 22 Oct 2009 18:17:54 +0000 (11:17 -0700)]
Makefile: include armor.[ch]

15 years agoauth: verify authorize reply on connect
Yehuda Sadeh [Wed, 21 Oct 2009 23:58:25 +0000 (16:58 -0700)]
auth: verify authorize reply on connect

15 years agoauth: authorize keeps state
Yehuda Sadeh [Wed, 21 Oct 2009 23:49:28 +0000 (16:49 -0700)]
auth: authorize keeps state

15 years agomonc: simplify authentication state
Sage Weil [Thu, 22 Oct 2009 00:02:12 +0000 (17:02 -0700)]
monc: simplify authentication state

Go back to a single _reopen_session() function.  If we send a message and
aren't yet authenticated, queue it up, and send it later when we finally
do authenticate.

Make send_auth_messsage() (used by AuthClientHandler) bypass that check so
that its messages always go out immediately.

15 years agoauth: fix Makefile
Sage Weil [Wed, 21 Oct 2009 23:34:34 +0000 (16:34 -0700)]
auth: fix Makefile

15 years agoMerge branch 'auth' of ceph.newdream.net:git/ceph into auth
Sage Weil [Wed, 21 Oct 2009 23:23:37 +0000 (16:23 -0700)]
Merge branch 'auth' of ceph.newdream.net:git/ceph into auth

Conflicts:
src/Makefile.am
src/auth/AuthorizeServer.h
src/mon/Monitor.cc

15 years agoMerge branch 'unstable' into auth
Sage Weil [Wed, 21 Oct 2009 23:13:48 +0000 (16:13 -0700)]
Merge branch 'unstable' into auth

Conflicts:
src/Makefile.am
src/ceph.cc
src/include/ceph_fs.h
src/kernel/super.c
src/kernel/super.h
src/librados.cc
src/mon/MonClient.cc
src/mon/MonClient.h
src/mon/Monitor.cc
src/mon/Monitor.h
src/mon/mon_types.h
src/msg/Dispatcher.h
src/msg/Message.h
src/msg/SimpleMessenger.cc
src/msg/SimpleMessenger.h
src/osd/OSD.h

15 years agoauth: link AuthServiceHandler to mon only
Sage Weil [Wed, 21 Oct 2009 22:27:41 +0000 (15:27 -0700)]
auth: link AuthServiceHandler to mon only

15 years agoauth: kill useless AuthServiceManager; rename file to AuthServiceHandler
Sage Weil [Wed, 21 Oct 2009 22:16:14 +0000 (15:16 -0700)]
auth: kill useless AuthServiceManager; rename file to AuthServiceHandler

15 years agoauth: add osd caps parser
Yehuda Sadeh [Tue, 20 Oct 2009 23:43:03 +0000 (16:43 -0700)]
auth: add osd caps parser

15 years agoosd: assert apply_transaction success
Sage Weil [Tue, 20 Oct 2009 20:13:40 +0000 (13:13 -0700)]
osd: assert apply_transaction success

For now, let's just assert success.

15 years agoauth: get rid of AuthorizeServer
Yehuda Sadeh [Tue, 20 Oct 2009 19:43:44 +0000 (12:43 -0700)]
auth: get rid of AuthorizeServer

15 years agotodos
Sage Weil [Tue, 20 Oct 2009 18:59:15 +0000 (11:59 -0700)]
todos

15 years agov0.17 v0.17
Sage Weil [Mon, 19 Oct 2009 22:19:51 +0000 (15:19 -0700)]
v0.17

15 years agoauth: fix vstart.sh
Yehuda Sadeh [Mon, 19 Oct 2009 20:04:40 +0000 (13:04 -0700)]
auth: fix vstart.sh

15 years agodebian: don't try to sign packages; it fails anyway
Sage Weil [Mon, 19 Oct 2009 20:03:03 +0000 (13:03 -0700)]
debian: don't try to sign packages; it fails anyway

15 years agoauth: send caps to principals with the ticket
Yehuda Sadeh [Mon, 19 Oct 2009 19:51:21 +0000 (12:51 -0700)]
auth: send caps to principals with the ticket

15 years agomon: log each client mount
Sage Weil [Mon, 19 Oct 2009 19:13:57 +0000 (12:13 -0700)]
mon: log each client mount

15 years agoRevert "msgr: be a bit more verbose during shutdown"
Sage Weil [Mon, 19 Oct 2009 19:02:22 +0000 (12:02 -0700)]
Revert "msgr: be a bit more verbose during shutdown"

This reverts commit 4fe2e6acb9d3613ca041774c1243940d1c8c9c9c.

Conflicts:

src/msg/SimpleMessenger.cc

15 years agoosd: mix preferred osd into placement seed
Sage Weil [Mon, 19 Oct 2009 18:40:27 +0000 (11:40 -0700)]
osd: mix preferred osd into placement seed

This avoids getting the same peer for all 0.0p* pgs, for
example.

Rev osdc protocol.

15 years agoobjecter: call renew_subs when appropriate
Sage Weil [Mon, 19 Oct 2009 18:36:58 +0000 (11:36 -0700)]
objecter: call renew_subs when appropriate

Otherwise our sub_want call doesn't nothing until the
next subscription renewal goes out

15 years agoosd: call renew_subs when appropriate
Sage Weil [Mon, 19 Oct 2009 18:36:37 +0000 (11:36 -0700)]
osd: call renew_subs when appropriate

Otherwise our sub_want calls do nothing useful until the
next subscription renewal goes out.

15 years agovstart: build osdmap of correct size
Sage Weil [Mon, 19 Oct 2009 18:26:28 +0000 (11:26 -0700)]
vstart: build osdmap of correct size

15 years agoosd: fix pgid parsing
Sage Weil [Mon, 19 Oct 2009 18:17:26 +0000 (11:17 -0700)]
osd: fix pgid parsing

The preferred osd is in decimal, not hex.

15 years agomonc: cleanup stray sub_want()
Sage Weil [Fri, 16 Oct 2009 23:41:04 +0000 (16:41 -0700)]
monc: cleanup stray sub_want()

15 years agomon: semireliable message push from mon to mon clients
Sage Weil [Fri, 16 Oct 2009 23:38:44 +0000 (16:38 -0700)]
mon: semireliable message push from mon to mon clients

Used for OSD scrub, inject args.

15 years agoqa: add pjd test; change default monhost to cosd0
Sage Weil [Fri, 16 Oct 2009 20:30:31 +0000 (13:30 -0700)]
qa: add pjd test; change default monhost to cosd0

15 years agomon: fix use-after-free in session removal
Sage Weil [Fri, 16 Oct 2009 23:36:35 +0000 (16:36 -0700)]
mon: fix use-after-free in session removal

15 years agomonclient: always subscribe to monmap
Sage Weil [Fri, 16 Oct 2009 23:28:09 +0000 (16:28 -0700)]
monclient: always subscribe to monmap

This ensure we keep the mon session alive, even if the user
doesn't subscribe to anything else.