]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/services/svc_config_key_rados.cc
3 #include "svc_config_key_rados.h"
5 int RGWSI_ConfigKey_RADOS :: do_start ( optional_yield
, const DoutPrefixProvider
* dpp
)
7 maybe_insecure_mon_conn
= ! svc
. rados
-> check_secure_mon_conn ();
12 void RGWSI_ConfigKey_RADOS :: warn_if_insecure ()
14 if (! maybe_insecure_mon_conn
||
15 warned_insecure
. test_and_set ()) {
19 string s
= "rgw is configured to optionally allow insecure connections to the monitors (auth_supported, ms_mon_client_mode), ssl certificates stored at the monitor configuration could leak" ;
21 svc
. rados
-> clog_warn ( s
);
23 lderr ( ctx ()) << __func__
<< "(): WARNING: " << s
<< dendl
;
26 int RGWSI_ConfigKey_RADOS :: get ( const string
& key
, bool secure
, bufferlist
* result
)
30 " \" prefix \" : \" config-key get \" , "
31 " \" key \" : \" " + key
+ " \" "
35 auto handle
= svc
. rados
-> handle ();
36 int ret
= handle
. mon_command ( cmd
, inbl
, result
, nullptr );