Skip to content

mozilla-services/obs-sentry

obs-sentry

Scripts to help the Observability Team at Mozilla manage Sentry.

Files

  • delete_users.py - delete users from the Mozilla Sentry org
  • find_legacy_js_users.py - list projects using an obsolete version of the JS SDK and their team admins
  • obsolete_users.py - list users with expired invites, and users no longer at Mozilla
  • sentry_client.py - module with a simple Sentry REST API client

Running the scripts

The easiest way to run the scripts is using uv, e.g.

 uv run obsolete_users.py

Environment variables

The scripts use these environment variables:

  • LDAP_BIND_USER - bind user used for LDAP queries
  • SENTRY_RO_TOKEN - a Sentry API token with read-only access
  • SENTRY_TOKEN - a Sentry API token with read and write access

You can set these variables in .env in this directory.

About

Sentry management helpers for the Observability Team.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages