-
Notifications
You must be signed in to change notification settings - Fork 9
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
[CVE-2017-8418] Update ruby plugins for vulnerable rubocop dependency #77
Comments
Prompted by this issue: #78 please leave your comments, thoughts, etc. |
Picking up sensu-plugins-ansible |
I started at the top so I am working on ansible, might be best for you to start at the bottom and work up. |
@majormoses sounds like a plan 👍 |
Take a look at: sensu-plugins/sensu-plugins-ansible#6 which is an example and why I created the security issue linked above (avoiding link spam) one to discuss how to version it. |
Seeing this erroneous rubocop failure with Rubocop 0.51:
There is a fix, but it has not been released yet: rubocop/rubocop#4886 Until that is released, shall we disable the |
I'd prefer we disable it inline and link above it with a |
Another is that I've raised my first PR for this (sensu-plugins/sensu-plugins-zookeeper#15). Would appreciate a review before I crack on with anymore please, make sure I'm on the right track :) I thought these would be a really quick change.. but of course significant bump in rubocop version means many more additional cops and therefore further amendments required. |
I have been disabling it inline for the gemspec as there is no value there, there is good reason to keep blocks relatively short as they are basically being passed to a function. I don't want to make a blanket wide decision yet on this without analyzing the impact. In other cases if it's not a trivial refactor I'd disable it inline with a TODO comment.
Story of my life, the aws one was pretty gnarly. |
I think we probably want to maybe tweak the default to say enable it but limit it to 50 (opposed to the 25) lines in a block. Honestly if you need 50 lines you really need helper functions. @sensu-plugins/commit-bit please weigh in. |
Planning on taking a look at this now! Believe I got it to pass, but please let me know if there's anything I should add. Thanks! |
UPDATE (2/6/18) - Please specifically version to
~> 0.51.0
for consistency across plugins.Original post:
Update rubocop gems to 0.51+ to mitigate issue: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8418 This is a very low severity warning (and agree after reading the impact) but it is a security one and could be a relatively easy to divide and conquer. If anyone would like to help out please comment here claiming which ones you will work on. I will start at the top and work my way down skipping any that are claimed. While we do not explicitly call out the use of
### Security
in our changelog guidelines there is mention of such in the keep a changelog guidelines which we are based on.Github is the best:
Here is a list of plugins:
The text was updated successfully, but these errors were encountered: