
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
This gem provides common functionality for use with all IFD server applications, including:
User
management for access to the /admin areaEmergencyMessage
, NotifierUpdate
& SoftwareUpdate
resourcesCustomer
IfdTools::Tracking::Event
& framework for tracking API and reporting (customer trends, etc)/api/emergency_messages.xml
, /api/notifier_updates.xml
& /api/software_updates.xml
To install:
gem 'ifd_tools'
to your Gemfile
bundle
rails g ifd_tools:install
http://localhost:5000/admin
ifd_tools.rb
initializer.IfdTools::Tracking::Event
in your application, in app/models/ifd_tools/tracking
folder.assign_trackable_item_by_id
method per subclass (default implement is to raise an exception)/api/track.xml?type=product_event&id=14
. The type
parameter is the class name without the module prefixes, underscored -> "IfdTools::Tracking::ProductEvent" should be sent as "product_event".A special helper method is provided on the ApiController
class to facilitate easy Customer creation. There is plenty of inline documentation on usage there, but here's an example:
class ApiController < ApplicationController
before_filter :authenticate_customer!, :except => [:software_updates, :emergency_messages, :notifier_updates]
respond_to :json, :xml
include IfdTools::ApiControllerExtensions
create_customer do |customer|
# customer = Customer.new(params[:request][:customer]) already passed in to us, just handle special use cases for data transformations
customer.account_level = CustomerAccountLevel.find_by_abbreviation(params[:account_level])
customer
end
end
FAQs
Unknown package
We found that ifd_tools demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.