fog-openstack
fog-openstack copied to clipboard
Lazy Fog::Storage::OpenStack connection?
I'm hitting a performance issue with Fog::Storage::Openstask which authenticates to the remote server as soon as it's initialized. The auth_token is indeed required when interacting with the storage, yet I often just need to generate signed URL to dowload private files, but these do require the management_url which is received along with the auth_token (to extract the scheme, host and port).
I was wondering if it would be safe to provide these values or the management_url directly? That would enable us to have a lazy connection, which would only authenticate before making the first request. Or maybe there are reasons to not do that in the Swift protocol?
Original issue opened by @ysbaddaden at fog/fog#3194
cc/ @ysbaddaden @geemus @smashwilson