Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions packages/cli/src/lib/target-scope-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,20 +217,15 @@

const CATALOG = catalogRules(operations);

/** Sentry declares it `org-metadata`, but {@link OVERRIDES} check it. */
const WORKFLOW_DETAIL = patternOf(
"/organizations/{organization_id_or_slug}/workflows/{workflow_id}/",
);

/**
* Read-only organization metadata a project scope may read: what Sentry
* declares `org-metadata`, and the reads its schema doesn't publish.
*/
export const ORG_READS: readonly SimpleRule[] = [
// getsentry's subscription details, outside Sentry's schema.
{ pattern: "customers/:org/" },
...CATALOG.orgReads.filter(({ pattern }) => pattern !== WORKFLOW_DETAIL),
...CATALOG.orgReads,
];

Check warning on line 228 in packages/cli/src/lib/target-scope-rules.ts

View check run for this annotation

@sentry/warden / warden: security-review

Project scope no longer checks workflow detail ownership

Dropping the WORKFLOW_DETAIL exclusion puts GET `/organizations/:org/workflows/:workflow_id/` on ORG_READS, so a project-scoped session can read any org workflow by id without the OVERRIDES look-up-first ownership check.
Comment thread
BYK marked this conversation as resolved.
Resolved

/**
* One project's ref: its slug when it has one, which the scope can check
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ catalog:
"@modelcontextprotocol/server": 2.4.0
"@radix-ui/react-accordion": ^1.2.20
"@radix-ui/react-slot": ^1.2.3
"@sentry/api": 3.5.0
"@sentry/api": 3.6.0
"@sentry/cloudflare": 11.12.0
"@sentry/core": 11.12.0
"@sentry/node": 11.12.0
Expand Down Expand Up @@ -160,7 +160,7 @@ minimumReleaseAgeExclude:
- "@sentry/search-syntax@1.0.0"
- "@sentry/server-runtime-injection@11.12.0"
- "@sentry/server-utils@11.12.0"
- "@sentry/api@3.5.0"
- "@sentry/api@3.6.0"
- miniflare@5.20261101.0-beta
- wrangler@4.156.1
- "@sentry/symbolic@14.0.0-alpha.5"
Expand Down
Loading