]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_rest_pubsub_common.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / rgw / rgw_rest_pubsub_common.h
index 6d78ce5ce1aa07ceb227a003f99ebce7e27787fc..d472fa4076d9818c886a3ab43c71b35d21bbece8 100644 (file)
@@ -6,6 +6,11 @@
 #include "rgw_op.h"
 #include "rgw_pubsub.h"
 
+// make sure that endpoint is a valid URL
+// make sure that if user/password are passed inside URL, it is over secure connection
+// update rgw_pubsub_sub_dest to indicate that a password is stored in the URL
+bool validate_and_update_endpoint_secret(rgw_pubsub_sub_dest& dest, CephContext *cct, const RGWEnv& env);
+
 // create a topic
 class RGWPSCreateTopicOp : public RGWDefaultResponseOp {
 protected:
@@ -13,6 +18,7 @@ protected:
   std::string topic_name;
   rgw_pubsub_sub_dest dest;
   std::string topic_arn;
+  std::string opaque_data;
   
   virtual int get_params() = 0;