Collects Sentry.io application monitoring and alerting posture metrics
epack install collector sentry
Adds to epack.yaml, resolves dependencies, downloads binary.
Run all configured collectors and build a pack:
epack collect
Runs all collectors in epack.yaml and outputs an evidence pack.
Or add manually to epack.yaml:
collectors:
sentry:
source: https://github.com/locktivity/epack-collector-sentry
Then run epack install to lock and sync.
epack-collector-sentry is an epack collector built with the Component SDK.
Collects application monitoring posture evidence from a Sentry organization. It reads cron monitors, alert rules, users, and teams to produce evidence that production systems are monitored and anomalies trigger response.
Each run also writes artifacts/sentry.access-posture.json in the evidencepack/access-posture@v1 format. It covers the organization's sign-in rules, members, admins, and connected apps. Admins are the members with the owner or manager role. With Open Membership on, members with the admin role count too, since they can join any team and delete its projects. With Require SSO off, members linked to SSO also count as signing in without SSO. The file has no root or credentials section. Sentry has no root account. Organization auth tokens can be listed only from a browser session or an OAuth app token, which the collector does not use.
Sentry offers the following through its API, and the collector does not read them.
The collector authenticates with a personal auth token or internal integration token, then reads the Sentry API to gather monitoring configuration. It first reads the organization, which checks the token: only that read, or invalid configuration, can fail the run. A value it cannot read after that is left out of the artifact and listed, with the reason, in artifacts/sentry.collector-result.json. Data is gated by collection level: trust provides a single boolean indicating whether monitoring is configured, audit adds aggregate counts and per-entity inventories, and internal adds cross-entity detail like team memberships and integration IDs. In the access file, trust has the *_present flags and the percentages, and audit adds the counts behind them.
Add to your epack.yaml:
collectors:
sentry:
source: locktivity/epack-collector-sentry@v1
config:
organization: acme-corp
secrets:
- SENTRY_AUTH_TOKEN
| Option | Type | Required | Description |
|---|---|---|---|
organization |
string | Yes | Sentry organization slug |
sentry_url |
string | No | Base URL (defaults to https://sentry.io). Set to https://de.sentry.io for EU or a self-hosted URL. |
projects |
string[] | No | Filter to these project slugs. Omit for all projects. |
environments |
string[] | No | Filter monitors to these environments. Omit for all. |
level |
string | No | Collection level: trust, audit, or internal. Defaults to trust. |
| Variable | Description |
|---|---|
SENTRY_AUTH_TOKEN |
Personal auth token or internal integration token. Required: the run exits 2 without it. |
| Scope | Levels | Surface |
|---|---|---|
org:read |
trust+ | Organization metadata, SSO settings, projects, integrations, and Sentry app installations. From audit, teams. |
alerts:read |
trust+ | Monitors and alert rules |
member:read |
trust+ | Organization members. A trust run reads them for artifacts/sentry.access-posture.json only. |
team:read |
internal | Team members |
The collector checks org:read when it signs in, and the run fails without it. A token without one of the other scopes still collects: the values that scope covers are left out and listed in artifacts/sentry.collector-result.json with the code permission_denied.
To skip the member, integration, and Sentry app reads at trust, leave access-posture out of collect, as in collect: [details].
artifacts/sentry.access-posture.json has no credentials section, and its gap has the code not_read. Sentry lists organization auth tokens at GET /api/0/organizations/{org}/org-auth-tokens/ only for a browser session or an OAuth app token with the org:tokens scope. A personal or internal integration token cannot list them with any scope.
collectors:
sentry:
source: locktivity/epack-collector-sentry@v1
config:
organization: acme-corp
secrets:
- SENTRY_AUTH_TOKEN
collectors:
sentry:
source: locktivity/epack-collector-sentry@v1
config:
organization: acme-corp
projects:
- billing-service
- api-gateway
environments:
- production
secrets:
- SENTRY_AUTH_TOKEN
collectors:
sentry:
source: locktivity/epack-collector-sentry@v1
config:
organization: acme-corp
level: audit
secrets:
- SENTRY_AUTH_TOKEN
collectors:
sentry:
source: locktivity/epack-collector-sentry@v1
config:
organization: my-org
sentry_url: https://sentry.internal.company.com
secrets:
- SENTRY_AUTH_TOKEN
{
"schema_version": "1.0.0",
"collected_at": "2026-06-26T14:00:00Z",
"collected_at_level": "trust",
"organization": "acme-corp",
"auth": {
"sso_configured": true,
"sso_provider": "okta",
"sso_required": true,
"scim_enabled": false
},
"monitoring_summary": {
"alerts_or_monitors_enabled": true
},
"diagnostics": {
"errors": [],
"warnings": [],
"truncation": {}
}
}
Full Changelog: https://github.com/locktivity/epack-collector-sentry/compare/v0.3.2...v0.3.3
Full Changelog: https://github.com/locktivity/epack-collector-sentry/compare/v0.3.1...v0.3.2
Full Changelog: https://github.com/locktivity/epack-collector-sentry/compare/v0.3.0...v0.3.1
Full Changelog: https://github.com/locktivity/epack-collector-sentry/compare/v0.2.1...v0.3.0
Full Changelog: https://github.com/locktivity/epack-collector-sentry/compare/v0.2.0...v0.2.1
Full Changelog: https://github.com/locktivity/epack-collector-sentry/compare/v0.1.0...v0.2.0
317 fields. No test account checks this collector yet.
Every field this collector can write, each tagged with the lowest level that collects it. Each level includes everything in the level before it.
No fields match these filters.
The values Foundational Controls and other profiles read.
The system's vendor, such as github, aws, or clickhouse
The kind of system
Admins, as this section defines them. admin_share_pct divides these by member_count.
Whether the system has any admins
Admins who can sign in without SSO. An admin linked to SSO counts when the system still lets them sign in another way
Percentage of admins who can sign in without SSO and have MFA. Null when no admin can sign in without SSO
Whether any admins can sign in without SSO. An admin linked to SSO counts too when the system still lets them sign in another way. When false, local_admin_mfa_coverage_pct has no admins to count
Admins counted in local_admin_count who have MFA
Admins, as this section defines them. admin_share_pct divides these by member_count.
Whether the system has any admins
Admins who can sign in without SSO. An admin linked to SSO counts when the system still lets them sign in another way
Percentage of admins who can sign in without SSO and have MFA. Null when no admin can sign in without SSO
Whether any admins can sign in without SSO. An admin linked to SSO counts too when the system still lets them sign in another way. When false, local_admin_mfa_coverage_pct has no admins to count
Admins counted in local_admin_count who have MFA
Third-party apps with access
Whether any third-party app has access
Machine credentials: API keys, tokens, deploy keys, service users and access keys, including access keys on a user who cannot sign in. The credential percentages count these.
Whether the system has any machine credentials. When false, the credential percentages have none to count
Credentials that never expire
Percentage of credentials that never expire. Null when there are none
Credentials older than 90 days. When the system does not record when a credential was created, this is left out with a gap
Percentage of credentials older than 90 days. Left out with a gap when the system does not record when a credential was created. Null when there are none
Credentials with neither an IP limit nor a scope narrower than full access. A credential limited to chosen permissions or resources has a narrower scope. A credential with either limit is restricted
Percentage of credentials with neither an IP limit nor a scope narrower than full access. Null when there are none
Credentials never used, or unused in the last 90 days
Percentage of credentials never used, or unused in the last 90 days. Null when there are none
Credentials that can write or administer
Percentage of credentials that can write or administer. Null when there are none
Machine credentials: API keys, tokens, deploy keys, service users and access keys, including access keys on a user who cannot sign in. The credential percentages count these.
Whether the system has any machine credentials. When false, the credential percentages have none to count
Credentials that never expire
Percentage of credentials that never expire. Null when there are none
Credentials older than 90 days. When the system does not record when a credential was created, this is left out with a gap
Percentage of credentials older than 90 days. Left out with a gap when the system does not record when a credential was created. Null when there are none
Credentials with neither an IP limit nor a scope narrower than full access. A credential limited to chosen permissions or resources has a narrower scope. A credential with either limit is restricted
Percentage of credentials with neither an IP limit nor a scope narrower than full access. Null when there are none
Credentials never used, or unused in the last 90 days
Percentage of credentials never used, or unused in the last 90 days. Null when there are none
Credentials that can write or administer
Percentage of credentials that can write or administer. Null when there are none
Members from outside the organization
Whether any members come from outside the organization, such as outside collaborators or guests
Members with no sign-in or other recorded activity in the last 90 days
Percentage of members with no sign-in or other recorded activity in the last 90 days. Null when there are no members
Members who can sign in without SSO. A member linked to SSO counts when the system still lets them sign in another way
Whether any members can sign in without SSO, with a password or a social login. A member linked to SSO counts too when the system still lets them sign in another way, so local and SSO members can overlap. When false, local_mfa_coverage_pct has no members to count
Percentage of members who can sign in without SSO and have MFA. Null when no member can sign in without SSO
Members counted in local_member_count who have MFA
Members, as this section defines them. The member percentages count these.
Whether the system has any members. When false, the member percentages have no members to count
Percentage of members whose account is linked to SSO. Null when there are no members
Members whose account is linked to SSO
Members from outside the organization
Whether any members come from outside the organization, such as outside collaborators or guests
Members with no sign-in or other recorded activity in the last 90 days
Percentage of members with no sign-in or other recorded activity in the last 90 days. Null when there are no members
Members who can sign in without SSO. A member linked to SSO counts when the system still lets them sign in another way
Whether any members can sign in without SSO, with a password or a social login. A member linked to SSO counts too when the system still lets them sign in another way, so local and SSO members can overlap. When false, local_mfa_coverage_pct has no members to count
Percentage of members who can sign in without SSO and have MFA. Null when no member can sign in without SSO
Members counted in local_member_count who have MFA
Members, as this section defines them. The member percentages count these.
Whether the system has any members. When false, the member percentages have no members to count
Percentage of members whose account is linked to SSO. Null when there are no members
Members whose account is linked to SSO
Whether any root account has access keys
Root accounts. A system with scopes has one per scope
Whether the system has a built-in root account. When false, root_mfa_coverage_pct has no accounts to count
Root accounts that have MFA turned on.
Percentage of root accounts with MFA. Null when there are none
Whether any root account has access keys
Root accounts. A system with scopes has one per scope
Whether the system has a built-in root account. When false, root_mfa_coverage_pct has no accounts to count
Root accounts that have MFA turned on.
Percentage of root accounts with MFA. Null when there are none
The account or subscription ID
The account or subscription name
Whether the system requires MFA from anyone who signs in without SSO
Whether accounts are created and removed through SCIM
Whether SSO is set up for the system
Whether everyone must sign in through SSO
Whether the system requires MFA from anyone who signs in without SSO
Whether accounts are created and removed through SCIM
Whether SSO is set up for the system
Whether everyone must sign in through SSO
Everything this collector reads, grouped by area. Each field lists the lowest level that collects it.
Present and true when inventory holds only the first 10,000 alert rules. The counts cover every alert rule.
Whether any cron monitor or alert rule exists. Null when neither list showed one and at least one could not be read.
A crontab expression, or for an interval schedule a number and a unit, such as [7, "day"].
Present and true when inventory holds only the first 10,000 monitors. The counts cover every monitor.
Present and true when inventory holds only the first 10,000 teams. The counts cover every team.
Present and true when inventory holds only the first 10,000 members. The counts cover every member.
The status of each run, and any value it couldn't read and why.
Number of findings left out after the first 100.
The artifact's path in the pack.
JSON pointer to the value.
The artifact's schema.
The artifact's path in the pack.
JSON pointer to the value.
The artifact's schema.
Number of requests sent, including retries. Present at the audit and internal levels only.
Number of times the collector made the call, not counting retries. Present at the audit and internal levels only.
The Deprecation header from the vendor's most recent response that carried one.
The codes of the operation's failed attempts, without their counts.
Number of failed attempts per code. Present at the audit and internal levels only.
The operation's name, such as okta.users.list.
The permission the call needs, in the vendor's terms. The collector declares it with Operation.Permission. A permission_denied gap from the call records it as its missing_permission.
True when a request for the operation was a retry.
Number of requests that were retries. Present at the audit and internal levels only.
The HTTP status codes, or DNS response codes for a lookup, that the operation's responses had, without their counts.
Number of responses per HTTP status code, or per DNS response code for a lookup. Present at the audit and internal levels only.
The Sunset header from the vendor's most recent response that carried one.
Number of the rows left out whose attempt failed or was a retry. Present wherever the rows are; 0 means every failed or retried request has a row.
Which attempt the request was: 1 for the first, higher for a retry.
The call's number in the run, counting from 1 in the order calls start. Every attempt of one call has the same number.
How long the request took, in milliseconds.
The code for a request that failed. Absent when it succeeded.
The request's host, the name a DNS lookup queried, or the host dialed.
The HTTP method, DNS and the record type looked up, such as DNS TXT, or DIAL.
The operation the request belongs to.
Names of the request's query parameters. Their values are not recorded.
DNS lookups only: the response code. A lookup that got no response has none.
The vendor's request ID from the response headers, when it sent one.
HTTP requests only.
When the attempt was sent, in milliseconds after the run's started_at.
The response's HTTP status code. Absent when no response arrived.
The step the call was made in. Absent for a call made outside every step.
The vendor's own error code from a failed response, such as E0000047. Never the vendor's message. Absent for collectors that do not read one.
On a retry, how long the SDK waited before sending it: the Retry-After value, the rate limit reset, or its own backoff. Absent on a first attempt and on a retry sent at once.
Number of request rows left out.
schema, schema_unusable, population, nulls, rollups, ratios, guidance, levels, or targets.
What the check found.
The artifact the finding is about. A schema_unusable finding has none.
JSON pointer to the value the finding is about.
What happens if the customer picks the option, including its cost and what stays Not collected.
What happens if the customer picks the option, including its cost and what stays Not collected.
Each kind the collector could write that the key left out. Each has a not_shared gap.
The kinds of evidence the collect config key listed, such as cloud-posture.
Each kind the key listed that the run never wrote, such as a misspelled one.
The source commit the collector was built from. Absent when the build set none.
The collector's name, as its spec declares it.
The collector's version, such as v0.3.0. Absent when the build set none.
The artifact's path in the pack.
JSON pointer to the value.
The artifact's schema.
The artifact's path in the pack.
JSON pointer to the value.
The artifact's schema.
The artifact's path in the pack.
JSON pointer to the value.
The artifact's schema.
The artifact's path in the pack.
JSON pointer to the value.
The artifact's schema.
The number of that call, matching the call on its request rows. A partial gap names the first failed call among those it counts. Present at the audit and internal levels only.
Why the value was left out: auth_failed, permission_denied, config_invalid, not_licensed, unsupported, not_read, rate_limited, vendor_error, timeout, invalid_response, too_large, internal, or not_shared. unsupported means the vendor does not report the value. too_large means the vendor holds more than the collector reads. not_shared means the customer left it out of this pack with the collect config key.
Present at the audit and internal levels only.
The one instruction that fixes collection. It uses fixed wording plus permission, plan, and region names. A gap has at most one of fix, no_action, and choice.
For a permission_denied gap, the permission to grant, in the vendor's own terms, such as okta.logs.read.
True when nothing needs changing now. It does not clear the gap.
The operation whose failed call left the value out. Absent when no call's error caused the gap, such as for a feature the plan lacks.
Who can act on the code: customer, nobody for an expected gap such as a feature the plan lacks, vendor, vendor_or_runner, or publisher.
The artifact the value belongs in. Absent when the run wrote no such artifact, in which case schema names it.
JSON pointer to the value within the artifact. Items are addressed by array index.
The schema of the artifact the value belongs in, when the run wrote no such artifact.
The account, tenant, or region affected. Present at the audit and internal levels only.
The file and line in the collector's own source that recorded the gap, relative to its module root, such as internal/collector/system_log.go:155.
not_collected when the collector could not read the value. partial when a rollup was left out because some of the items it covers could not be read, or when a list or object holds only the items that could be.
For a partial gap, the number of items that could not be read. Present at the audit and internal levels only.
The vendor's own error code, when its response included one.
The collector's message to the operator about the gap, redacted. Present at the audit and internal levels only.
The artifact's path in the pack.
JSON pointer to the value.
The artifact's schema.
Its calls in the step. Present at the audit and internal levels only.
The operation.
For a partial run, the code of the first gap other than a not_shared, unsupported, or not_read one, saying why its value was left out.
For a partial run, who can act on that code.
collected when the run read every value its level collects, or partial when it left values out. gaps lists each one. A not_shared or unsupported gap does not make a run partial.
True when SSL_CERT_FILE or SSL_CERT_DIR was set for the run.
When the run finished, in RFC 3339 UTC.
The level the run collected at, at every level. A reader uses it to tell a value the level left out from one the collector could not read. Absent from results of older SDKs.
True when a proxy variable such as HTTPS_PROXY was set for the run.
The run ID the runner passed in EPACK_RUN_ID. Absent when it passed none.
When the run started, in RFC 3339 UTC.
How the collector proved its identity, such as private_key_jwt for OAuth 2.0 client credentials with a signed key assertion or api_token for an API token.
Present at the audit and internal levels only.
The kind of principal, such as service_app, service_principal, or user.
The identity system, such as okta or microsoft-entra.
Present when the collector can show that its credential could only read.
The scopes the collector asked for. A scope here and missing from scopes was not granted.
The permissions the sign-in carried.
The tenant, account, or organization signed in to. Present at the audit and internal levels only.
True when an attempt in the step failed: one with an error code or a status of 400 or more.
The calls those requests belong to. Present at the audit and internal levels only.
When the step ended, in milliseconds after the run's started_at. A step still open when the collector emitted ended then. Present at the audit and internal levels only.
The attempts that failed: those with an error code or a status of 400 or more. Present at the audit and internal levels only.
The step's name, such as people. Step names are part of the collector's contract, like operation names.
The requests sent in the step, including rows left out of calls.requests. Present at the audit and internal levels only.
The requests that were retries. Present at the audit and internal levels only.
When the step started, in milliseconds after the run's started_at. Present at the audit and internal levels only.
The step's title, such as People and sign-in methods.
config_list when a person listed the targets in the config, discovery when the collector found every one its credential can see, discovery_filtered when the config narrowed what it found, granted when the credential was given only some, so others may exist, granted_filtered when the config also narrowed those, and collector when the collector picked them itself, such as a default region.
True when every target was reached and has no gap that makes the run partial, at every level. Absent when at is.
The config key that listed or narrowed the targets.
How many targets the artifact holds. Present at the audit and internal levels only.
What the targets are. A container the run signed in to or was configured for, or a resource it assessed in it.
A pointer inside each target to the name people know it by, to show beside its name, or alone when the run's level leaves the name out.
Pointers inside each target whose values, joined with a colon, name it. Absent when a target is itself its name.
A pointer inside each target to a boolean that is false when the target did not answer.
How many distinct values the run read that the vocabulary lacks.
The first 50 of those values, sorted. Present at the audit and internal levels only.
The vocabulary's name, such as okta.event_types.
The one instruction that fixes collection. A warning has at most one of fix, no_action, and choice.
The collector's message about what happened. Present at the audit and internal levels only.
The permission to grant, in the vendor's own terms.
True when nothing needs changing now.
The account, tenant, or region affected. Present at the audit and internal levels only.