I have a Rails application that uses Amazon S3 for image upload storage. Upload is handled directly in the browser, file manipulation is handled on the serverside.
Recently I received an automail that Amazon discontinues support for SSLv3. I wanted to clarify whether my application that uses an older version of Ruby SDK (aws-sdk-v1 1.61.0) could be affected because of that, since I am not sure what mechanism it uses for the ssl handshake.
Thank you in advance.
Short answer: it depends.
The old aws sdk allows you to provide (as a configuration setting) the http handler to use - the answer is dependant on the http handler user. Assuming you're using the default net/http based handler, then it depends on which ruby version you use and which openssl version it was built against.
As of ruby 2.1.4, 2.0.0p594, 1.9.3p550, ruby will not allow SSL3 connections by default (see the announcement). If you are running such a version of ruby, then SSL3 connections shouldn't be attempted, unless you go out of your way to do so.
If you use an earlier version then ruby may default to SSLv3 (depending on the openssl version built against) but if that fails it should be able to switch to a newer protocol instead. I'd highly recommend updating to the latest version in the ruby series you are already using, but I don't think you'll run into problems when SSLv3 is disabled.
Related
Since python 3.6 version lambda functions won't be supported by AWS in future, I'm looking to replace requests module which uses requests.post(url,data,headers,json) by any other python modules which does similar functionality in python 3.9+ versions. Any suggestions please.
If you are looking for an alternative to requests, you can use e.g. https://docs.aiohttp.org/en/stable/. However, if you want to keep using requests, you can still use it in newer Python versions (like 3.9) without issues. Did you find that to not be the case?
We are using NiFi to collect files from Azure Blob Storage and are sitting behind a forward HTTP Proxy. Our organization is tightening the security and now all traffic through the proxy needs to be authenticated. The ListAzureBlobStorage processor does not support it. Is there a way around it?
#Peter Zandbergen You did not share your NiFI Version, but in my local NiFI (1.9) there is Proxy Configuration Service available in the ListAzureBlobStorage Processor. I would recommend 1.9+ to get the best bug fixes and processors.
If this version is not possible, it is possible to put newer version NARs into older version of NiFi. This poses additional issues, but is a viable solution for some scenarios.
I can find REST API docs for the alpha versions of apache Ozone. However, I can find it for the current version (0.5.0) Has it been removed?
Is there a way to communicate from any application with OZone without using the specific Java Client or shell commands?
Thanks
It's S3 compatible. You'd therefore be able to use any S3 client
I come from a PHP and .NET world where I understand the environment fairly well. However I can't find a newbie explanation of how the Ruby / Ruby on Rails stack actually work with these web server.
Are they more close to the PHP model, where all classes of an application are loader for each request and there is no default shared memory, or is it like an application server where an active app sits in the memory and handles requests?
How is it with reloading when a file changes? Does the app in an application server has to be restarted? How does it know? Does it monitor file system?
I have seen that both the Ruby Version Manager (rvm) and the newer rbenv from 37signals shomewhat shuffles with the ruby command on OS X / Linux. This seems like a total magic to me. Does a webserver just runs ruby command and does not care where the interpreter is resolved in the $PATH?
Webrick is the default server of Rails and is usually used for developing and testing.
Rails is session based like PHP is. If you want to run in production you will generally use Phusion Passenger on Apache or Nginx, dont worry about that for now.
If you run in Development or Test environment you can edit your application files(views, controllers and models) and they will be reloaded on each request (even if they are not edited).
Have a look at generating a project and scafolds with Rails to get you started.
http://guides.rubyonrails.org/getting_started.html
I want information about the ar-extensions gem work on postgresql-8.4.If it works means please give some related information
It should work (as in the API should be fine), but it doesn't provide any performance boosts as I did not regularly or actively use postgresql back then and still haven't built postgresql optimized functionality. I am waiting for a postgresql user to submit a patch or at least show me what the "postgresql" efficient way would be, but to this day I have yet to see either from the postgresql crowd.
Please note that ar-extensions should only be used for Rails 2.x and activerecord-import should be used for Rails 3.x. Also, the finder extensions available in ar-extensions are no longer supported in activerecord-import so those definitely won't work.