steampipe plugin install sentry

Table: sentry_organization - Query Sentry Organizations using SQL

Sentry is an open-source error tracking tool that helps developers monitor and fix crashes in real-time. The organization resource within Sentry represents a group of users and teams that have access to a set of projects. It provides details about the organization's name, slug, status, onboarding tasks, and more.

Table Usage Guide

The sentry_organization table provides insights into Organizations within Sentry. As a developer or Sentry administrator, you can explore organization-specific details through this table, including name, slug, status, and onboarding tasks. Utilize it to uncover information about organizations, such as their status and details about onboarding tasks, helping to manage and monitor the organizations within Sentry.

Examples

Basic info

Explore which organizations within Sentry have open memberships and require two-factor authentication to understand the security measures in place. This can help in assessing the default role assigned to members for better user management.

select
id,
name,
is_default,
require_2fa,
open_membership,
default_role
from
sentry_organization;
select
id,
name,
is_default,
require_2fa,
open_membership,
default_role
from
sentry_organization;

List organizations with 2FA disabled

Discover organizations that have not enabled two-factor authentication, a feature crucial for enhancing security measures and preventing unauthorized access. This query is particularly useful for security audits and compliance checks.

select
id,
name,
is_default,
require_2fa,
open_membership,
default_role
from
sentry_organization
where
not require_2fa;
select
id,
name,
is_default,
require_2fa,
open_membership,
default_role
from
sentry_organization
where
require_2fa = 0;

List organizations with open membership enabled

Explore which organizations have enabled open membership. This can be useful for assessing the security settings and understanding the access levels within each organization.

select
id,
name,
is_default,
require_2fa,
open_membership,
default_role
from
sentry_organization
where
open_membership;
select
id,
name,
is_default,
require_2fa,
open_membership,
default_role
from
sentry_organization
where
open_membership = 1;

List organizations with default role admin

Explore which organizations have been set with 'admin' as the default role. This is useful for assessing the security posture of your organizations, as having 'admin' as the default role could potentially open up vulnerabilities.

select
id,
name,
is_default,
require_2fa,
open_membership,
default_role
from
sentry_organization
where
default_role = 'admin';
select
id,
name,
is_default,
require_2fa,
open_membership,
default_role
from
sentry_organization
where
default_role = 'admin';

List inactive organizations

Explore which organizations are not currently active. This can be useful in identifying areas for potential re-engagement or cleanup.

select
id,
name,
is_default,
require_2fa,
open_membership,
default_role
from
sentry_organization
where
status ->> 'id' <> 'active';
select
id,
name,
is_default,
require_2fa,
open_membership,
default_role
from
sentry_organization
where
json_extract(status, '$.id') <> 'active';

List access details of a particular organization

Explore the access details of a specific organization to understand the permissions and roles associated with it. This can help in managing user access and ensuring appropriate security measures are in place.

select
id,
name,
jsonb_pretty(access) as access
from
sentry_organization
where
slug = 'myorg';
select
id,
name,
access
from
sentry_organization
where
slug = 'myorg';

Schema for sentry_organization

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
accessjsonbThe organization access.
alerts_member_writebooleanCheck if the organization has alerts member write enabled.
allow_join_requestsbooleanCheck if the organization has allowed join requests.
allow_shared_issuesbooleanCheck if the organization has allowed shared issues.
attachments_roletextThe organization attachments role.
available_rolesjsonbRepresents a Sentry organization's available role.
avatarjsonbRepresents a Sentry organization's avatar.
data_scrubberbooleanCheck if the organization has data scrubber enabled.
data_scrubber_defaultsbooleanCheck if the organization has data scrubber defaults enabled.
date_createdtimestamp with time zoneThe creation timestamp of the organization.
debug_files_roletextThe organization debug files role.
default_roletextThe default role of the organization.
enhanced_privacybooleanCheck if the organization has enhanced privacy enabled.
events_member_adminbooleanCheck if the organization has events member admin access.
featuresjsonbThe organization features.
idtextThe ID of the organization.
is_defaultbooleanCheck if the organization is the default.
is_early_adopterbooleanCheck if the organization has early adopter enabled.
nametextThe name of the organization.
open_membershipbooleanCheck if the organization has open membership enabled.
pending_access_requestbigintThe number of the pending access requests.
quotajsonbRepresents a Sentry organization's quota.
relay_pii_configtextThe relay pii config.
require_2fabooleanCheck if the organization has 2FA enabled.
require_email_verificationbooleanCheck if the organization requires email verification.
roletextThe organization role.
safe_fieldsjsonbThe organization safe fields.
scrape_java_scriptbooleanCheck if the organization scrapes java script.
scrub_ip_addressesbooleanCheck if the organization scrubs IP addresses.
sensitive_fieldsjsonbThe organization sensitive fields.
slugtext=The slug of the organization.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
statusjsonbRepresents a Sentry organization's status.
store_crash_reportstextThe store crash reports.
titletextTitle of the resource.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- sentry

You can pass the configuration to the command with the --config argument:

steampipe_export_sentry --config '<your_config>' sentry_organization