Repository navigation
chore(release): pull release/v1.168.0 into main - #5778
Conversation
👑 *An automated PR* Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com> Co-authored-by: Aris Plakias <[email protected]>
## What are the changes introduced in this PR? The four user transform summaries (`function_latency_summary`, `request_latency_summary`, `batch_size_summary` and `used_heap_size`) no longer export quantile series by default, only `_sum` and `_count`. This removes about 1M active series, or about 3.3M counting series from recently replaced pods that ingesters still hold in memory. Set `EMPTY_USER_TRANSFORM_PERCENTILES` to `false` to keep the default quantiles. ## What is the related Linear task? n/a ## Please explain the objectives of your changes below These summaries are labelled per transformation and scraped per pod, so their three quantiles multiply across transformations and pods. Alerts use only `_sum`, `_count` and counters. ### Any changes to existing capabilities/behaviour, mention the reason & what are the changes ? The p50, p90 and p99 series for these metrics stop being exported unless `EMPTY_USER_TRANSFORM_PERCENTILES` is `false`. Averages from `_sum` / `_count` keep working. Queries against the quantile series, about 84 in the last 30 days, return no data, so the Global Transformer Latency panel must move to `_sum` / `_count` first. ### Any new dependencies introduced with this change? N/A ### Any new generic utility introduced or modified. Please explain the changes. N/A ### Any technical or performance related pointers to consider with the change? prom-client still maintains its t-digest for these summaries, so transformer CPU and memory are unchanged; the saving is in Mimir. <hr> ### Developer checklist - [x] My code follows the style guidelines of this project - [ ] **No breaking changes are being introduced.** - [ ] All related docs linked with the PR? - [x] All changes manually tested? - [ ] Any documentation changes needed with this change? - [x] Is the PR limited to 10 file changes? - [x] Is the PR limited to one linear task? - [ ] Are relevant unit and component test-cases added in **new readability format**? ### Reviewer checklist - [ ] Is the type of change in the PR title appropriate as per the changes? - [ ] Verified that there are no credentials or confidential data exposed with the changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
…5759) Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.22.1 to 2.22.3. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/step-security/harden-runner/releases">step-security/harden-runner's releases</a>.</em></p> <blockquote> <h2>v2.22.3</h2> <h2>What's Changed</h2> <ul> <li>Added support for Avrea-hosted runners (enterprise tier)</li> <li>Fixed unexpected blocking of allowed connections caused by GitHub’s DNS resolver and outbound proxy experiment on GitHub-hosted Linux runners</li> <li>Added a feature flag to disable implicit AWS endpoint allowances on self-hosted Linux runners (enterprise tier)</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/step-security/harden-runner/compare/v2.22.2...v2.22.3">https://github.com/step-security/harden-runner/compare/v2.22.2...v2.22.3</a></p> <h2>v2.22.2</h2> <h2>What's Changed</h2> <ul> <li>Fixed inbound (ingress) network traffic being incorrectly classified as outbound (egress) traffic on macOS</li> <li>Fixed implicit endpoints intended for self-hosted runners being applied to custom VM environments on Linux (enterprise tier)</li> <li>Improved network and DNS tracing, enforcement logic, and process information correlation on Linux (enterprise tier)</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/step-security/harden-runner/compare/v2.22.1...v2.22.2">https://github.com/step-security/harden-runner/compare/v2.22.1...v2.22.2</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/step-security/harden-runner/commit/46b06cea07f9e64621fdf066ba77ac6915163d43"><code>46b06ce</code></a> Merge pull request <a href="https://redirect.github.com/step-security/harden-runner/issues/711">#711</a> from step-security/rc-46</li> <li><a href="https://github.com/step-security/harden-runner/commit/f82eb4b6de966921660011feba8a0e8ec1fe0687"><code>f82eb4b</code></a> Merge pull request <a href="https://redirect.github.com/step-security/harden-runner/issues/710">#710</a> from h0x0er/jatin/tp-avrea</li> <li><a href="https://github.com/step-security/harden-runner/commit/665b85a9cd4799ec13eec34fc860640550676dc8"><code>665b85a</code></a> update agent-self-hosted, agent-bravo to v1.9.5 and agent to v0.18.0</li> <li><a href="https://github.com/step-security/harden-runner/commit/80fffe15146161f895724bb464d6371a1b9f70f3"><code>80fffe1</code></a> detect avrea runners</li> <li><a href="https://github.com/step-security/harden-runner/commit/dc2769abcc0fcfbadfc1df54081c1608579ef6b2"><code>dc2769a</code></a> Merge pull request <a href="https://redirect.github.com/step-security/harden-runner/issues/707">#707</a> from step-security/rc-45</li> <li><a href="https://github.com/step-security/harden-runner/commit/ab0b27386ab734bab7c3b9293e0c8b1b29ce5c26"><code>ab0b273</code></a> Merge pull request <a href="https://redirect.github.com/step-security/harden-runner/issues/706">#706</a> from h0x0er/rc-45</li> <li><a href="https://github.com/step-security/harden-runner/commit/03ccff8a8b3b1ac0ba57353a585903c8f73647f4"><code>03ccff8</code></a> Remove agent-preinstalled skip for third-party runners</li> <li><a href="https://github.com/step-security/harden-runner/commit/815e48d1a3d3878ac5dbf4d5a3ba0f76666a846f"><code>815e48d</code></a> Skip agent install and post-step cleanup when agent is already installed</li> <li>See full diff in <a href="https://github.com/step-security/harden-runner/compare/ccd8616d44fd3846e67624a50d5aad6d37bf2d25...46b06cea07f9e64621fdf066ba77ac6915163d43">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
## What are the changes introduced in this PR? PRs opened from forks fail six CI checks before any of the contributor's code is tested (e.g. #5771). The workflows assume the PR branch lives in this repo and that secrets are available. Neither is true for a fork PR. | Check | Cause | Fix | |---|---|---| | Check for formatting & lint errors, Verify generated secret paths (`verify.yml`) | `actions/checkout` used `ref: github.head_ref` against this repo; the fork's branch doesn't exist here, so `git fetch` exits 1 | Check out `pull_request.head.sha` from `pull_request.head.repo.full_name` | | Code Coverage (`dt-test-and-report-code-coverage.yml`) | SonarCloud runs with an empty `SONAR_TOKEN` → "Not authorized" | Skip Sonar on fork PRs; it still runs on `push` and same-repo PRs | | Build (User) Transformer Docker Image – PR (`build-pr-artifacts.yml`) | `Configure AWS Credentials` fails, as fork PRs get no OIDC token or registry secrets | Skip the tag, build and ingestion-test jobs on fork PRs | For same-repo PRs, nothing changes. `verify.yml` still lints the PR head commit; it now refers to it by SHA instead of by branch name. Security: the trigger stays `pull_request` (read-only token, no secrets), not `pull_request_target`, and `persist-credentials: false` is kept. Not covered here: the org-level `zizmor` scan check also fails on fork PRs, at its "Mint scanner token" step. It's defined outside this repo, so it needs a separate fix there. ## How was this change tested? - `actionlint` (v1.7.7) on the three workflows: no findings on changed lines (one existing `set-output` deprecation at `dt-test-and-report-code-coverage.yml:32`, untouched) - This PR's own CI exercises the same-repo path; a fork PR (like #5771) rebased onto this exercises the fork path ## Checklist - [x] CI workflow change only; no runtime code changes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
Prefix the Topsort event id with web, ios or android, read from channel and context.os.name, so marketplaces can trace failing events back to their source. OS names are matched exactly with the shared isAppleFamily/isAndroidFamily helpers. Events whose platform can't be told keep the plain messageId. Co-Authored-By: Claude Opus 5.5 <[email protected]>
## What are the changes introduced in this PR? Adds OAuth Client Credentials and Authorization Code linked-account authentication for Custom Audience. Bearer credentials are sourced from each event's `metadata.secret.accessToken`, and per-event header resolution prevents events with different tokens from sharing a batch. ## What is the related Linear task? Resolves INT-7425 ## Please explain the objectives of your changes below Support the two Custom Activation OAuth account definitions while preserving linked-account precedence and explicit no-auth behavior. ### Any changes to existing capabilities/behaviour, mention the reason & what are the changes ? OAuth-linked Custom Audience events now authenticate with the event metadata access token. Existing non-OAuth linked-account authentication behavior remains unchanged. A missing OAuth token raises the standard platform-classified `OAuthSecretError`. ### Any new dependencies introduced with this change? N/A ### Any new generic utility introduced or modified. Please explain the changes. N/A ### Any technical or performance related pointers to consider with the change? Headers are resolved per event because OAuth tokens are event-specific. Endpoint caching remains in place. Since headers participate in the batching composite key, events with different tokens are separated automatically, while events with the same token remain batched. ## Known limitation OAuth previews fail closed because preview events do not include `metadata.secret.accessToken`. They return the missing-token OAuth error instead of using delivery-account or destination-config credentials. ## Validation - `npm run lint` - passed - `npm run build:ci` - passed - `npm test -- --testPathPattern="custom_audience" --no-coverage --runInBand` - passed, 188 tests - `npm run test:ts -- component --destination=custom_audience` - passed, 14 tests - `git diff --check` - passed - Simplify pass - no behavior-preserving simplifications worth making <hr> ### Developer checklist - [x] My code follows the style guidelines of this project - [x] **No breaking changes are being introduced.** - [x] All related docs linked with the PR? - [x] All changes manually tested? - [x] Any documentation changes needed with this change? - [x] Is the PR limited to 10 file changes? - [x] Is the PR limited to one linear task? - [x] Are relevant unit and component test-cases added in **new readability format**? ### Reviewer checklist - [ ] Is the type of change in the PR title appropriate as per the changes? - [ ] Verified that there are no credentials or confidential data exposed with the changes. --------- Co-authored-by: tech-infra-rudderstack <[email protected]> Co-authored-by: Akash Chetty <[email protected]>
> **Contributed by @bernirosas in #5771** (fork PR). This PR carries their commit `4db6d27`, cherry-picked onto `develop` with authorship unchanged, so the full CI (Docker build + ingestion-service test, SonarCloud) can run; those checks can't run from a fork. **Merge with a merge commit (not squash)** to keep the contributor's commit on `develop`. > > Diff reviewed before pushing: only Topsort transform code and tests; no `.github/` changes, no env, network or shell access in tests. ## What are the changes introduced in this PR? The Topsort destination now prefixes each event `id` with the platform that sent it, using fields RudderStack's SDKs already set. Marketplaces don't need to change anything. | RudderStack fields | Topsort event `id` | | --- | --- | | `channel: "web"` | `web-<messageId>` | | `channel: "mobile"` + `context.os.name` iOS, iPadOS, watchOS or tvOS | `ios-<messageId>` | | `channel: "mobile"` + `context.os.name: "Android"` | `android-<messageId>` | | anything else (no channel, server-side, mobile with no or another OS name) | `<messageId>` (unchanged) | This applies to impressions, clicks and purchases, including events fanned out per product (`ios-<messageId>-0`, `ios-<messageId>-1`, ...). OS names are matched exactly with the shared `isAppleFamily` / `isAndroidFamily` helpers, so e.g. KaiOS is not tagged as iOS. ## What is the related Linear task? N/A ## Please explain the objectives of your changes below Marketplaces that send events from web and mobile apps through the same destination can't tell, from the Topsort side, which platform a rejected or malformed event came from. Every event reaches the Topsort Events API from RudderStack's servers, and the `id` is the RudderStack `messageId`. With the prefix, the Topsort dashboard and request logs show the source of each event directly. `channel` is set by every RudderStack SDK, and `context.os.name` by the mobile SDKs. Checked against real payloads: the JavaScript SDK sends `channel: "web"`, and the iOS SDK sends `channel: "mobile"` with `context.os.name: "iOS"`. ### Any changes to existing capabilities/behaviour, mention the reason & what are the changes ? For events whose platform can be identified, the event `id` changes from `<messageId>` to `<platform>-<messageId>`. The Topsort Events API accepts any unique string as `id`, so no request is affected. Topsort dedupes on `id`, and the prefix is deterministic for a given message, so retries still produce the same `id`. The exception is an event first sent before this deploys and retried after it: it goes out with the new `id` and isn't deduped against the first attempt. Anyone matching Topsort event ids against their own RudderStack `messageId`s will now see the prefix. ### Any new dependencies introduced with this change? N/A ### Any new generic utility introduced or modified. Please explain the changes. N/A. `getPlatform` and `getEventId` are local to `src/v0/destinations/topsort/utils.ts`; OS matching reuses the existing `isAppleFamily` / `isAndroidFamily` from `src/v0/util`. ### Any technical or performance related pointers to consider with the change? N/A. A couple of string comparisons per event. <hr> ### Developer checklist - [x] My code follows the style guidelines of this project - [x] **No breaking changes are being introduced.** - [ ] All related docs linked with the PR? - [ ] All changes manually tested? - [ ] Any documentation changes needed with this change? - [x] Is the PR limited to 10 file changes? - [x] Is the PR limited to one linear task? - [x] Are relevant unit and component test-cases added in **new readability format**? Tests: unit cases in `routerTransform.test.ts` for web, iOS, iPadOS, Android, KaiOS (not prefixed), mobile without an OS name and server-side events, plus fanned-out and purchase ids. A component fixture (`topsort-router-platform-prefix`) sends a web click, an iOS impression and an Android purchase in one batch. All Topsort unit and component tests pass. ### Reviewer checklist - [ ] Is the type of change in the PR title appropriate as per the changes? - [ ] Verified that there are no credentials or confidential data exposed with the changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: bernirosas <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
There was a problem hiding this comment.
🟡 Changes recommended
Custom Audience Send fails for either new OAuth account type because metadata omits the access token required by authentication, and coverage needs an OAuth Send test without a mocked router transformation.
1 open issue
What changed in this PR
Merges release 1.168.0 into main, bringing destination authentication updates, Topsort event tracing, and operational maintenance.
Changes:
- Adds Custom Audience OAuth-linked accounts, masked previews, and missing-token refresh responses, with supporting tests.
- Prefixes Topsort event IDs by source platform and disables user-transform summary quantiles by default.
- Updates release metadata, runner-hardening actions, and fork pull-request workflow handling.
| File | Description |
|---|---|
test/integrations/destinations/topsort/router/data.ts |
Tests platform-prefixed event IDs. |
test/integrations/destinations/custom_audience/router/data.ts |
Tests OAuth bearer-token delivery requests. |
test/integrations/destinations/custom_audience/maskedSecrets.ts |
Adds a masked OAuth token fixture. |
test/integrations/destinations/custom_audience/common.ts |
Adds an OAuth-linked destination fixture. |
src/v0/destinations/topsort/utils.ts |
Prefixes event IDs with detected platforms. |
src/v0/destinations/topsort/routerTransform.test.ts |
Covers platform detection and fan-out IDs. |
src/v0/destinations/custom_audience/utils.ts |
Builds OAuth headers from event metadata. |
src/v0/destinations/custom_audience/utils.test.ts |
Tests OAuth headers, missing tokens, and previews. |
src/v0/destinations/custom_audience/types.ts |
Defines OAuth metadata validation and types. |
src/v0/destinations/custom_audience/routerTransform.ts |
Resolves authentication headers per event. |
src/v0/destinations/custom_audience/routerTransform.test.ts |
Tests grouping by per-event token. |
src/v0/destinations/custom_audience/constants.ts |
Adds OAuth account identifiers. |
src/util/prometheus.js |
Makes user-transform quantiles opt-in. |
src/services/eventTest/eventTester.ts |
Passes preview mode to destination transforms. |
src/services/eventTest/__tests__/eventTester.test.ts |
Tests preview behavior and metadata propagation. |
src/controllers/destination.ts |
Returns refresh responses for missing machine OAuth tokens. |
src/controllers/__tests__/destination.test.ts |
Tests missing-token refresh handling and exemptions. |
package.json |
Bumps release version to 1.168.0. |
package-lock.json |
Synchronizes release version metadata. |
CHANGELOG.md |
Records release features. |
.github/workflows/verify.yml |
Fixes fork checkout and updates runner hardening. |
.github/workflows/verify-server-start.yml |
Updates runner-hardening action. |
.github/workflows/validate-actor.yml |
Updates runner-hardening action. |
.github/workflows/update-ingestion-service.yml |
Updates runner-hardening action. |
.github/workflows/sync-secret-path-manifest.yml |
Updates runner-hardening action. |
.github/workflows/slack-notify.yml |
Updates runner-hardening action. |
.github/workflows/publish-new-release.yml |
Updates runner-hardening action. |
.github/workflows/prepare-for-staging-deploy.yml |
Updates runner-hardening action. |
.github/workflows/prepare-for-prod-ut-deploy.yml |
Updates runner-hardening action. |
.github/workflows/prepare-for-prod-rollback.yml |
Updates runner-hardening action. |
.github/workflows/prepare-for-prod-dt-deploy.yml |
Updates runner-hardening action. |
.github/workflows/prepare-for-dev-deploy.yml |
Updates runner-hardening action. |
.github/workflows/live-integration-tests.yml |
Updates runner-hardening action. |
.github/workflows/integrations_version_audit.yml |
Updates runner-hardening action. |
.github/workflows/ingestion-service-test.yml |
Updates runner-hardening action. |
.github/workflows/housekeeping.yml |
Updates runner-hardening action. |
.github/workflows/dt-test-and-report-code-coverage.yml |
Skips fork SonarCloud scans and updates runner hardening. |
.github/workflows/draft-new-release.yml |
Updates runner-hardening action. |
.github/workflows/create-hotfix-branch.yml |
Updates runner-hardening action. |
.github/workflows/commitlint.yml |
Updates runner-hardening action. |
.github/workflows/check-pr-title.yml |
Updates runner-hardening action. |
.github/workflows/build-push-docker-image.yml |
Updates runner-hardening action. |
.github/workflows/build-pr-artifacts.yml |
Skips fork image publishing and updates runner hardening. |
Review effort: Balanced
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5778 +/- ##
=======================================
Coverage 92.44% 92.45%
=======================================
Files 741 741
Lines 41119 41158 +39
Branches 9670 9684 +14
=======================================
+ Hits 38013 38052 +39
Misses 2923 2923
Partials 183 183 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|




👑 An automated PR