{"id":15691619,"url":"https://github.com/mrexox/sentry-sanitizer","last_synced_at":"2025-05-07T23:09:09.345Z","repository":{"id":39946502,"uuid":"336212920","full_name":"mrexox/sentry-sanitizer","owner":"mrexox","description":"Sanitizing middleware for sentry-ruby gem","archived":false,"fork":false,"pushed_at":"2025-01-27T08:28:53.000Z","size":147,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T23:09:03.816Z","etag":null,"topics":["ruby","sanitizer","sentry","sentry-plugin","sentry-ruby","sentry-sanitizer"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrexox.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-05T08:41:45.000Z","updated_at":"2025-01-27T08:14:48.000Z","dependencies_parsed_at":"2024-02-22T16:45:19.653Z","dependency_job_id":null,"html_url":"https://github.com/mrexox/sentry-sanitizer","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrexox%2Fsentry-sanitizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrexox%2Fsentry-sanitizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrexox%2Fsentry-sanitizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrexox%2Fsentry-sanitizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrexox","download_url":"https://codeload.github.com/mrexox/sentry-sanitizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252968118,"owners_count":21833252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ruby","sanitizer","sentry","sentry-plugin","sentry-ruby","sentry-sanitizer"],"created_at":"2024-10-03T18:22:32.727Z","updated_at":"2025-05-07T23:09:09.326Z","avatar_url":"https://github.com/mrexox.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![CI](https://github.com/mrexox/sentry-sanitizer/workflows/CI/badge.svg)\n[![Gem Version](https://badge.fury.io/rb/sentry-sanitizer.svg)](https://badge.fury.io/rb/sentry-sanitizer)\n[![Coverage Status](https://coveralls.io/repos/github/mrexox/sentry-sanitizer/badge.svg?branch=master)](https://coveralls.io/github/mrexox/sentry-sanitizer?branch=master)\n\n# sentry-sanitizer: sanitizing extension for sentry-ruby\n\nThis gem aimed to add sanitizing support to [sentry-ruby](https://rubygems.org/gems/sentry-ruby) gem.\n\n[sentry-raven](https://rubygems.org/gems/sentry-raven) gem had this apportunity but it is no longer supported. Moving from `sentry-raven` to `sentry-ruby` can surprise you with missing this ability. But you can still use `sentry-sanitizer` (with a little change to configuration).\n\nCurrently this gem provides following features\n- [x] Sanitizing POST params\n- [x] Sanitizing HTTP headers\n- [x] Sanitizing cookies\n- [x] Sanitizing query string\n- [x] Sanitizing extras ([see](https://docs.sentry.io/platforms/ruby/enriching-events/context/#additional-data) `Sentry.set_extras`)\n\n## Installation\n\n:warning: Please, don't use `0.1.*` version as it was experimental and not usable at all.\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'sentry-sanitizer', '\u003e= 0.2.0'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install sentry-sanitizer\n\n## Usage\n\nAdd following lines to your Sentry configuration:\n\n```ruby\nSentry.init do |config|\n  # ... your configuration\n\n  # If using Rails\n  config.sanitize.fields = Rails.application.config.filter_parameters\n\n  # You can also pass custom array\n  config.sanitize.fields = %w[password super_secret_token]\n\n  # HTTP headers can be sanitized too (it is case insensitive)\n  config.sanitize.http_headers = %w[Authorization X-Xsrf-Token]\n\n  # You can sanitize all HTTP headers with setting `true` value\n  config.sanitize.http_headers = true\n\n  # You can sanitize all cookies with this setting\n  config.sanitize.cookies = true\n\n  # You can sanitize query string params for GET requests\n  config.sanitize.query_string = true\n\n  # ...\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/mrexox/sentry-sanitizer.\n\n## License\n\nThe gem is available as open source under the terms of the [BSD-3-Clause License](https://opensource.org/licenses/BSD-3-Clause).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrexox%2Fsentry-sanitizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrexox%2Fsentry-sanitizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrexox%2Fsentry-sanitizer/lists"}