Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid actioncable dependency on Rails 5 #15

Merged
merged 1 commit into from
Jun 14, 2017

Conversation

mgrassotti
Copy link
Contributor

Specify single rails gems dependencies to avoid to include actioncable.
It has a security vulnerability which prevents smart-answers, which
rely on govuk_frontend_toolkit, to upgrade to rails 5.

related to PR: alphagov/smart-answers#3054
Trello: https://trello.com/c/yKUuy2VI/635-migrate-to-rails-5%3A-smart-answers

@fofr
Copy link
Contributor

fofr commented Jun 6, 2017

Re:

alphagov/smart-answers#3054 (comment)
https://snyk.io/test/github/alphagov/smart-answers/b12dea733f9ec3633f23f59909a90039a08186c2?fromStatus=true

We have Rails 5 apps already using govuk_frontend_toolkit. Is there something specific in smart-answers that's affected?

cc @boffbowsh

@chao-xian
Copy link

@fofr it might be that Snyk wasn't catching this vulnerability for those other apps (can you name one us to look at pls?) https://snyk.io/vuln/SNYK-RUBY-ACTIONCABLE-20338 the publish date for this is only a few days ago.

@boffbowsh
Copy link

This seems like a good thing to do, but there's still a few things in there like activerecord, actionmailer etc that don't need to be there.

@mgrassotti mgrassotti force-pushed the avoid-actioncable-rails-5 branch from 35d32a8 to 12f82de Compare June 13, 2017 08:35
@cbaines
Copy link

cbaines commented Jun 13, 2017

This seems like a good thing to do, but there's still a few things in there like activerecord, actionmailer etc that don't need to be there.

Following on from Paul's comment, the only dependency I see is when ::Rails::Engine is used, and I think that is in railties. Is that the only dependency that needs specifying?

Specify single rails gems dependencies to avoid to include actioncable.
It has a security vulnerability which prevents `smart-answers`, which
rely on govuk_frontend_toolkit, to upgrade to rails 5.
@mgrassotti mgrassotti force-pushed the avoid-actioncable-rails-5 branch from 12f82de to 8e4daf9 Compare June 14, 2017 08:19
@cbaines
Copy link

cbaines commented Jun 14, 2017

I've just seen the branch has been updated. I'll take another look.

As a meta point, commenting is helpful to let me know when changes are made. As far as I'm aware, just pushing to the branch, or "reacting" doesn't notify me at least.

@mgrassotti mgrassotti merged commit 1dfe29b into master Jun 14, 2017
@mgrassotti mgrassotti deleted the avoid-actioncable-rails-5 branch June 14, 2017 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants