sentry
sentry copied to clipboard
feat(data-secrecy): Implement Data Secrecy Backend
Sentry Version of https://github.com/getsentry/getsentry/pull/14779
Here, I create a new function to determine if we should prevent superuser access based on the new data secrecy logic. It lives behind the organizations:data-secrecy feature flag. I add it to get_superuser_scopes since if the person is accessing via superuser, it will go into the function.