Giter Site home page Giter Site logo

Comments (9)

wayneeseguin avatar wayneeseguin commented on June 18, 2024

Requires discussion with Darcy.

from rvm.

bowsersenior avatar bowsersenior commented on June 18, 2024

+1 to have some way of dealing with this automatically.

I am using capistrano and currently I have a custom task for this in my config/deploy.rb:

namespace :rvm do
  task :trust_rvmrc do
    run "rvm rvmrc trust #{release_path}"
  end
end

I use an after hook in my main deploy task to run the task above on each deployment:

after "deploy", "rvm:trust_rvmrc"  

Maybe the fix is as simple as defining something in rvm/capistrano that can be called to turn automatic trust on and off?

from rvm.

dgm avatar dgm commented on June 18, 2024

+1 I had to add this to get an update working

from rvm.

bowsersenior avatar bowsersenior commented on June 18, 2024

Anybody know if this issue was addressed? It was closed without any comments...

from rvm.

richo avatar richo commented on June 18, 2024

The problem with implicitly trusting the file, instead of creating trust for it's fingerprint at the time of deployment is that any subsequent changes will be trusted if a malicious user changes the file.

I would say that @bowsersenior's solution to trust the file as it's deployed is correct.

from rvm.

bowsersenior avatar bowsersenior commented on June 18, 2024

@richoH : I didn't consider the security implications you brought up. That is an important issue to be aware of.

from rvm.

richo avatar richo commented on June 18, 2024

No problem.

Another approach (potentially wiht it's own compatility concerns) would be to calculate the fingerprint of the rvmrc at the development end and include a task to update the trust on the deployment server.

This would mitigate any chance of the race condition where

1 You deploy your whole project, including the rvmrc

Attacker traps this condition and injects his own code into the rvmrc
2 You call rvmrc trust, and trust the now malicious rc file.

from rvm.

 avatar commented on June 18, 2024

bowsersenior this has been added to the capistrano integration page on RVM's homesite. It will show as soon as wayne redeploys the update. Thank you for this!

from rvm.

bowsersenior avatar bowsersenior commented on June 18, 2024

Cool, thanks for the update!

from rvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.