-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CP-50789: Enable verified rpc to external host #6082
CP-50789: Enable verified rpc to external host #6082
Conversation
63e2fa2
to
2da4102
Compare
ocaml/xapi/helpers.ml
Outdated
let make_external_host_verified_rpc ~__context ext_host_address ext_host_cert | ||
xml = | ||
let@ temp_file, temp_out_ch = | ||
with_temp_file "remote-pool-certificate" ".pem" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would suggest remote-pool-certificate
-> external-host-cert
for consistency.
Now xapi supports setting up rpc to hosts in the pool and appliances, while for syncing updates from remote_pool type repository, we need to set up rpc to remote coordinator with its certificate verfieid. Add util Helpers.make_external_host_verified_rpc, which will set up a secure connection to the external host(host outside the pool) with its host certificate verified. Signed-off-by: Gang Ji <[email protected]>
2da4102
to
9d677cd
Compare
I'd like to see the design for the feature, it's not clear to me why is this new verification type needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Key exchange needs to be understood before they are used in communications.
The client needs to get the remote pool coordinator's host certificate, and use the certificate to config the |
559821d
into
xapi-project:feature/easier-pool-join
Now xapi supports setting up rpc to hosts in the pool and appliances, while for syncing updates from remote_pool type repository, we need to set up rpc to remote coordinator with its certificate verfieid.
Add util Helpers.make_external_host_verified_rpc, which will set up a secure connection to the external host(host outside the pool) with its host certificate verified.