Closed izgeri closed 4 years ago
Plan notes from @alexkalish: • Examine all the change logs, determining which APIs we use that have changed. • Sometimes Rails will continue to support deprecated APis, so decide if we upgrade now or wait for later. • Which version do we go to? 5 or 6? • Examine our Rails related gems to see if they need upgrading (and can even be upgraded). • Determine what parts of the code are not covered by automated tests and the effort it will take to test for regressions. • Bump ruby versions of this project and our suite of gems
I strongly believe that we should just shoot for upgrading to 5.4.2 and NOT all the way to 6.0.1 for a few reasons:
In order to ensure this upgrade is FIPS compliant, we need to disable MD5 in Rails. @shaharglazner provided the following helpful info:
As far as I could find, the only change need to be done is change the following configuration:
Rails.application.config.active_support.use_sha1_digests = true
Which makes rails not using MD5 (which is not FIPS compliant). Sources:
Also, we need to investigate and verify that any FIPS encryption algorithm changes do no degrade app performance.
I spent a few hours trying to get cyberark/conjur on Rails 5 and here is a branch with my progress: https://github.com/cyberark/conjur/compare/rails-5-again
The latest commit was an attempt to fix the Database connection being initialized twice (I think). Something's not quite right about how the Sequel database is getting initialized and I wasn't able to figure out the issue before more pressing matters came up.
@jvanderhoof, @jonahx: We should include updating both the appliance and decomposed follow with Conjur, after we have updated the Rails version.
@alexkalish We can close this, yes? Only reason I didn't is I saw @izgeri mentioned Rails 6 in the description and we only upgraded to Rails 5.
Closing! Thanks for catching this, @jtuttle!
@jtuttle just to complete the circle, can you share more info about the specific rails upgrades that were done? a link to the relevant issue / epic would suffice. thanks!
Upgrade Conjur OSS Rails Version
The Conjur OSS web application is currently using Rails v4.2. With the release of Rails 6 in August, our version of Rails has fallen to the project's lowest maintenance level and will only receive severe security bug fixes (and bug fixes, nor regular security fixes). For more details, see Rails policy. Given that this is the core of our accounts/secrets product, we must be able to quickly apply all bug and security fixes as they are discovered and patched by the Rails project team.
Aha Cards
N/A
Team
SDLC Timeline