running without cephx
So, I've discovered that to make "no cephx" work, you need to explicitly set "none" for the three options (thanks to Yehuda for the tip):
auth cluster required = none
auth service required = none
auth supported = none
Since "blank" is not an error, but leads to a disagreement about authentication that's fairly hard to diagnose, should we make it an error to specify a blank entry for those items?
I'll also be hacking at vstart.sh to set things this way in the presence of -X.
Quoted 11 lines · Dan Mick
So, I've discovered that to make "no cephx" work, you need to explicitly set "none" for the three options (thanks to Yehuda for the tip):
auth cluster required = none
auth service required = none
auth supported = noneSince "blank" is not an error, but leads to a disagreement about authentication that's fairly hard to diagnose, should we make it an error to specify a blank entry for those items?
Maybe fix it so that blank entries would be equivalent to 'none'?
Yehuda
Quoted 8 lines · Yehuda Sadeh
Quoted 7 lines · Dan Mick
So, I've discovered that to make "no cephx" work, you need to explicitly set "none" for the three options (thanks to Yehuda for the tip):
auth cluster required = none
auth service required = none
auth supported = none
Quoted 7 lines
Quoted 4 lines
Since "blank" is not an error, but leads to a disagreement about authentication that's fairly hard to diagnose, should we make it an error to specify a blank entry for those items?
Maybe fix it so that blank entries would be equivalent to 'none'?
Yehuda
That should do it:
src/auth/AuthMethodList.cc +0 -0
@@ -35,6 +35,8 @@ AuthMethodList::AuthMethodList(CephContext *cct, string str) lderr(cct) << "WARNING: unknown auth protocol defined: " <<
*iter << dendl;
} }
+ if (auth_supported.empty())
+ auth_supported.push_back(CEPH_AUTH_NONE);
}
bool AuthMethodList::is_supported_auth(int auth_type)
Quoted 32 lines · Yehuda Sadeh
Quoted 8 lines · Yehuda Sadeh
Quoted 7 lines · Dan Mick
So, I've discovered that to make "no cephx" work, you need to explicitly set "none" for the three options (thanks to Yehuda for the tip):
auth cluster required = none
auth service required = none
auth supported = noneQuoted 7 lines
Quoted 4 lines
Since "blank" is not an error, but leads to a disagreement about authentication that's fairly hard to diagnose, should we make it an error to specify a blank entry for those items?
Maybe fix it so that blank entries would be equivalent to 'none'?
Yehuda
That should do it:
src/auth/AuthMethodList.cc +2
-0@@ -35,6 +35,8 @@ AuthMethodList::AuthMethodList(CephContext *cct, string str) lderr(cct) << "WARNING: unknown auth protocol defined: " << *iter << dendl; } } + if (auth_supported.empty()) + auth_supported.push_back(CEPH_AUTH_NONE); }
Quoted 1 line
bool
AuthMethodList::is_supported_auth(int auth_type)
I, for one, believe that when it comes to configuration files, leaving blank values defaulting to something is not the best idea. I would rather have a blank value spitting out an error, as it gives room for someone leaving it blank assuming it will use 'none', as others may assume it will default to 'cephx'.
-Joao
Quoted 33 lines · Joao Eduardo Luis
Quoted 32 lines · Yehuda Sadeh
Quoted 8 lines · Yehuda Sadeh
Quoted 7 lines · Dan Mick
So, I've discovered that to make "no cephx" work, you need to explicitly set "none" for the three options (thanks to Yehuda for the tip):
auth cluster required = none
auth service required = none
auth supported = noneQuoted 7 lines
Quoted 4 lines
Since "blank" is not an error, but leads to a disagreement about authentication that's fairly hard to diagnose, should we make it an error to specify a blank entry for those items?
Maybe fix it so that blank entries would be equivalent to 'none'?
Yehuda
That should do it:
src/auth/AuthMethodList.cc +2
-0@@ -35,6 +35,8 @@ AuthMethodList::AuthMethodList(CephContext *cct, string str) lderr(cct) << "WARNING: unknown auth protocol defined: " << *iter << dendl; } } + if (auth_supported.empty()) + auth_supported.push_back(CEPH_AUTH_NONE); }
Quoted 7 lines
Quoted 1 line
bool
AuthMethodList::is_supported_auth(int auth_type)I, for one, believe that when it comes to configuration files, leaving blank values defaulting to something is not the best idea. I would rather have a blank value spitting out an error, as it gives room for someone leaving it blank assuming it will use 'none', as others may assume it will default to 'cephx'.
The situation before 66bda162e1acad34d37fa97e3a91e277df174f42 was
auth cluster required =
auth service required =
auth supported = none
Now it is
auth cluster required = cephx
auth service required = cephx
auth supported =
(auth support is the deprecated option that kicks in if 'auth * required' is blank).
Perhaps just documenting the first above block as the way to disable cephx is the way to go.
sage