DescriptionCreate temporary cert file for each ManagementAPI.
For now, each high-level function in the Azure provider will create its own
storage contexts and management-API objects as needed. In the case of the
management API, that comes with a temporary file containing an Azure
certificate. (There is another way to pass the certificate to go-curl, but we
want to avoid the complications and especially the unknowns at this point).
Once done with your request(s) to the management, you release it. This cleans
up the certificate file, but in the future it may also serve as a hook for
connection pooling. We'll treat optimization as a separate problem — it seems
easy but this sort of thing often brings out creative tendencies that aren't
worth the time just at the moment. As long as we don't need any actual cleanup
code for the storage-API side, we chose not to create a cleanup method there.
This is all internal detail after all; it doesn't affect any exported APIs.
https://code.launchpad.net/~jtv/juju-core/session-certificate/+merge/170611
Requires: https://code.launchpad.net/~jtv/juju-core/create-gwacl-sessions/+merge/170032
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 4
MessagesTotal messages: 4
|