Auth::Sanitizer is a Ruby gem designed to help developers prevent OAuth and authentication secrets from appearing in object inspection outputs and log messages. It offers lightweight, dependency-minimal helpers focused specifically on redacting sensitive information, rather than altering HTTP requests, token objects, persistence, or application configuration. The primary use case is for host gems and applications that need to ensure secrets such as access tokens, refresh tokens, client secrets, and similar values are not inadvertently exposed during debugging or in production logs.
The gem provides two main redaction tools: FilteredAttributes, which redacts specified attributes from the standard Ruby inspect output, and SanitizedLogger, which wraps an existing logger to filter sensitive values from string log messages. By default, it targets key names commonly found in OAuth and OpenID Connect debug output, replacing their values with a configurable label (defaulting to "[FILTERED]"). The replacement label can be adjusted globally or per logger instance. The filter configuration is snapshot at the time a redacting object is initialized, ensuring stability even if the host application's configuration changes later.
Auth::Sanitizer supports different loading modes to accommodate varying namespace requirements. It can be loaded directly, defining a top-level Auth namespace, or via an isolated loader that evaluates the implementation inside an anonymous module, suitable for libraries wishing to avoid polluting the top-level namespace. There is also an anonymous_loader option for stricter loading modes and custom path resolution. 0 and above, as well as concordant releases of JRuby and TruffleRuby, and is used by several libraries to maintain clean output.
Installation is available via RubyGems, and the gem can be included in a Gemfile or installed directly. Enterprise support is offered through the Tidelift subscription, which provides commercial support and maintenance for open source packages. Auth::Sanitizer is classified as a framework/SDK utility for Ruby developers seeking to enhance the security and privacy of their application's logging and inspection routines.
File is a Frameworks & SDKs product. It focuses on preventing sensitive authentication secrets from leaking into logs or object inspection in Ruby applications. File is an open-source project aimed at ruby developers and gem maintainers. The project is open source (Open Source). It runs on the web and the command line.
Behind File is Galtzo, and the product first shipped in 2026. The project is developed in the open on GitHub with 15 stars and 97 commits in the last 90 days. Among its 4 catalogued features are attribute redaction, logger sanitization, and OAuth support.
Latest indexed changes and source events
auth-sanitizer verified by the PulseGate indexer
Other apps tracked under the same category.