Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Gridhook is a Rails engine providing an endpoint for handling incoming SendGrid webhook events.
This engine supports both batched and non-batched events from SendGrid.
Looking to handle incoming email from the SendGrid Parse API? Gridhook will eventually support that, until then, you should check out Griddler. It's awesome.
Add Gridhook to your application's Gemfile and run bundle install
:
gem 'gridhook'
You must also tell Gridhook how to process your event. Simply add an
initializer in config/initializers/gridhook.rb
:
Gridhook.configure do |config|
# The path we want to receive events
config.event_receive_path = '/sendgrid/event'
config.event_processor = proc do |event|
# event is a Gridhook::Event object
EmailEvent.create! event.attributes
end
end
The config.event_processor
just needs to be any object that responds to
call()
. So, if you'd prefer to use a separate class, that's fine:
class EventProcessor
def call(event)
# do some stuff with my event!
end
end
# config/initializers/gridhook.rb
Gridhook.configure do |config|
config.event_processor = EventProcessor.new
end
v0.2.0 Supports version 3 of the Sendgrid webhook released on September 6th, 2013, which provides the proper headers and JSON post body without hacks or middleware. If upgrading to this version, please make sure to update the Webhooks settings in your SendGrid App to use V3 of their API.
FAQs
Unknown package
We found that gridhook 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.