
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
To use this plugin, add the following like to the Gemfile in your Puppet code base and run bundle install
.
gem 'puppet-lint-i18n'
This plugin provides a new check to puppet-lint
. It will detect functions that do not have their output message wrapped in a translate call.
For example the following puppet code does not wrap the message
warning('message')
wrapping the message then looks like
warning(translate('message'))
WARNING: 'warning' messages should be decorated: eg translate('old_root_password is no longer used and will be removed in a future release') on line 48
This tells you which file and what line the infringement occurred, as well as the suggested fix
BAD
warning(translate('to be or') /
translate('not to be'))
GOOD
warning(translate('to be or not to be')
The :HEREDOC_OPEN token (@(EOL)
) should be the only part passed to the translate()
function. Do not pass the entire heredoc.
BAD
warning(translate(@(EOL)
This is a heredoc.
It's lovely.
| EOL))
GOOD
warning(translate(@(EOL))
This is a heredoc.
It's lovely.
| EOL)
Interpolated strings are not supported at this time and will not be decorated with the fix option.
--fix support: Yes
Please refer to the documentation here [https://github.com/rodjek/puppet-lint#disable-lint-checks]
FAQs
Unknown package
We found that puppet-lint-i18n demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.