3 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
4 // vim: ts=8 sw=2 smarttab ft=cpp
7 * Ceph - scalable distributed file system
9 * Copyright (C) 2019 Red Hat, Inc.
11 * This is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License version 2.1, as published by the Free Software
14 * Foundation. See file COPYING.
23 #include "rgw/rgw_service.h"
25 #include "svc_config_key.h"
29 class RGWSI_ConfigKey_RADOS
: public RGWSI_ConfigKey
31 bool maybe_insecure_mon_conn
{false};
32 std::atomic_flag warned_insecure
= ATOMIC_FLAG_INIT
;
34 int do_start(optional_yield
, const DoutPrefixProvider
*dpp
) override
;
36 void warn_if_insecure();
40 RGWSI_RADOS
*rados
{nullptr};
43 void init(RGWSI_RADOS
*rados_svc
) {
44 svc
.rados
= rados_svc
;
47 RGWSI_ConfigKey_RADOS(CephContext
*cct
) : RGWSI_ConfigKey(cct
) {}
49 int get(const string
& key
, bool secure
, bufferlist
*result
) override
;