Socket
Book a DemoInstallSign in
Socket

auditing-middleware

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auditing-middleware

0.0.3
bundlerRubygems
Version published
Maintainers
1
Created
Source

Auditing::Middleware

Provides logging support to middleware.

Installation

Add this line to your application's Gemfile:

gem 'auditing_middleware'

And then execute:

$ bundle

Or install it yourself as:

$ gem install auditing_middleware

Dependencies

  • SoarAspects - for loading auditor into environment variable
  • SoarAuditorApi - support for 'some' Audit Provider

Usage

Setting up an Audit Provider

configuration = { "preprefix" => "very important:" }
auditor = SanityAuditor.new
auditor.configure(configuration)
auditor.set_audit_level(:error)

Using Soar Aspect

SoarAspects::Aspects::auditing = auditor

Add support to Rack Middleware

def call(env)
  @app.call(env)
rescue => exception
  Auditing::Middleware.error(exception)
end 

Contributing

Please send feedback and comments to the author at:

Dane-Garrin Balia dane.balia@hetzner.co.za

This gem is sponsored by Hetzner (Pty) Ltd - http://hetzner.co.za

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 12 Aug 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.