Add SSL mutual authentication support for rdci

The RDC API is changed to pass the certificates to the gRPC.

Add the support to add all GPUs in the host to a group. Also before
add a GPU to a group, the RDC API will verify that GPU exists or not.

Add the support to fetch the temperature metrics.

Change-Id: I5857ef03fede233d16e8b2836be120f33172da93
This commit is contained in:
Bill(Shuzhou) Liu
2020-03-10 14:02:05 -04:00
committed by Chris Freehill
parent 023de40df7
commit 66e4e790c3
20 changed files with 232 additions and 57 deletions
+6
View File
@@ -39,8 +39,14 @@ class RdciSubSystem {
virtual void process() = 0;
virtual ~RdciSubSystem();
protected:
void show_common_usage() const;
rdc_handle_t rdc_handle_;
std::string ip_port_;
bool use_auth_;
std::string root_ca_;
std::string client_cert_;
std::string client_key_;
};
typedef std::shared_ptr<RdciSubSystem> RdciSubSystemPtr;