fog-openstack icon indicating copy to clipboard operation
fog-openstack copied to clipboard

Lazy Fog::Storage::OpenStack connection?

Open plribeiro3000 opened this issue 9 years ago • 1 comments
trafficstars

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

plribeiro3000 avatar Mar 10 '16 19:03 plribeiro3000

cc/ @ysbaddaden @geemus @smashwilson

plribeiro3000 avatar Mar 10 '16 19:03 plribeiro3000