Skip to content

chore(deps): Bump sentry-scm to 2.0.0 - #128747

Merged
vaind merged 1 commit into
masterfrom
ivan/scm-platform-2.0
Oct 26, 2026
Merged

vaind merged 1 commit into
masterfrom
ivan/scm-platform-2.0

Conversation

@vaind

@vaind vaind commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Problem

sentry-scm 2.0.0 (getsentry/scm-platform#162) takes RPC signing secrets as scm.Secret, which shows as [Filtered] in error reports. The SDK scrubs a local named secret, but not secrets and not values inside a list. So a failure while verifying a request could send every SCM_RPC_SHARED_SECRET to Sentry. RpcServer now refuses plain strings, so this bump is required before Sentry can pick up 2.0.

Approach

  • make_server wraps each configured secret in Secret when building the RpcServer. The SCM_RPC_SHARED_SECRET setting stays a list[str], so deploy config doesn't change.
  • test_scm_rpc.py passes Secret to make_proxy_client, sign_get and sign_post.
  • The test DjangoTestClientSessionAdapter.post accepts stream, which the RPC client has passed to Session.post since 1.10.0. Sentry was still on 1.9.0, so this hadn't come up before.

The signature on the wire is the same, so this can deploy independently of the matching Seer change (getsentry/seer#9056).

Testing

  • pytest tests/sentry/scm plus every other test module that imports scm passes (767 tests). mypy and prek are clean on the changed files.

🤖 Generated with Claude Code

sentry-scm 2.0 takes RPC signing secrets as scm.Secret so they show as
[Filtered] in error reports: the SDK scrubs a variable named `secret`
but not `secrets` or values inside a list, so a failure while verifying
a request could send every SCM_RPC_SHARED_SECRET to Sentry. RpcServer
now refuses plain strings, so wrap each configured secret when building
it.

The test session adapter also accepts the `stream` argument the RPC
client has passed to Session.post since 1.10.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vaind
vaind requested review from a team as code owners October 26, 2026 08:11
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 26, 2026
@vaind
vaind merged commit 097e147 into master Oct 26, 2026
92 checks passed
@vaind
vaind deleted the ivan/scm-platform-2.0 branch October 26, 2026 09:56
@linear-code

linear-code Bot commented Oct 27, 2026

Copy link
Copy Markdown

SCM-204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants