Repository navigation
chore: sync release v1.77.4 to main branch - #7111
Merged
achettyiitr merged 9 commits intoJun 22, 2026
Merged
Conversation
…er (#7075) 🔒 Scanned for secrets using gitleaks 8.30.1 ## Description Fixing a security/misconfiguration issue where internal gateway and warehouse API endpoints were accessible in the open source version of `rudder-server`. Internal endpoints are now gated behind an enterprise token check and can only be registered when explicitly enabled. ### Changes - **Gate internal endpoints behind enterprise token** — added `WithInternalEndpointsEnabled(bool)` to the gateway and an equivalent `Warehouse.internalEndpointsEnabled` flag; both default to `true` in the enterprise version of rudder-server and `false` in the open source version. - **Move warehouse endpoints under `/internal`** — `/v1/warehouse/{pending-events,trigger-upload,jobs,jobs/status}` are now at `/internal/v1/warehouse/...`; legacy paths remain available behind a `legacyWarehouseEndpointsEnabled` flag (default `true`) for gradual rollout. - **Remove v1 job-status handler** — `NewV1Handler`, `GetFailedRecordsV1`, `Delete`, and all related tests removed; `/internal/v1/job-status` promoted to `/internal/v2/job-status`. ## Linear Ticket resolves RUD-2824 ## Security - [x] The code changed/added as part of this pull request won't create any security issues with how the software is being used.
🤖 I have created a release *beep* *boop* --- ## [1.77.1](v1.77.0...v1.77.1) (2026-06-10) ### Bug Fixes * internal endpoints enabled in open source version of rudder-server ([#7075](#7075)) ([b4f62a1](b4f62a1)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
…7085) ## Summary - Klaviyo 4xx errors (except 429) were incorrectly marked as retryable (`FailedJobIDs`), causing invalid profiles to retry indefinitely, fill batch slots, and push valid events into "prescribed limit" overflow until they were permanently aborted - `UploadProfiles` now captures the HTTP status code from Klaviyo's response - `Upload` routes errors by retryability: 4xx (except 429) → `AbortJobIDs` (terminal), 429/5xx/network errors → `FailedJobIDs` (retryable) - `FailedReason` is now populated in the upload output for better observability ## Test plan - [x] `TestUpload/Successful_Upload` — all jobs import successfully, no failures - [x] `TestUpload/Unsuccessful_Upload` — nil response (network error) → jobs retried with `FailedReason` - [x] `TestUpload/UploadThreeChunksWithMixedFailures` — chunk 1 gets 429 (retried), chunk 2 gets 400 (aborted), chunk 3 succeeds — validates both paths in single test - [x] Existing Poll and GetUploadStats tests unaffected ## Linear ticket INT-6539 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
🤖 I have created a release *beep* *boop* --- ## [1.77.2](v1.77.1...v1.77.2) (2026-06-16) ### Bug Fixes * abort non-retryable Klaviyo upload errors instead of retrying ([#7085](#7085)) ([a31d6e5](a31d6e5)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
🔒 Scanned for secrets using gitleaks 8.29.1 # Description Klaviyo's Bulk Profile Import API validates each request **all-or-nothing**: a single profile that fails synchronous validation (e.g. a malformed email) causes Klaviyo to reject the entire batch with HTTP 400, importing **zero** profiles. Today rudder-server mirrors that by aborting the whole chunk, so one bad record takes down every valid profile alongside it. This PR adds **strip-and-retry on failure**. When Klaviyo returns a 400 whose error pointers identify specific profiles, we abort only those jobs and re-upload the chunk **once** with the remaining valid profiles, so the good records still get delivered. ### Behavior - **Success** → jobs imported as before. - **400 that pinpoints specific profiles** → those jobs are aborted (with Klaviyo's per-profile reason), the rest are re-uploaded once; the retry's outcome is final (no looping). - **400 we can't attribute to a profile** (e.g. invalid `listId`) → whole chunk aborted, unchanged. - **5xx / 429 / transport errors** → whole chunk marked failed for the batch router to retry, unchanged. The retry path is bounded to a single extra attempt — there is no loop. ### Implementation - `uploadChunk` orchestrates the try → strip → retry-once flow. - `tryUpload` performs one upload attempt and normalizes the status/error. - `strippableProfiles` decides whether a failure is a per-profile 400 we can safely retry. - `extractInvalidProfileIndices` parses the offending profile indices from Klaviyo's JSON pointers. - `recordError` classifies remaining jobs as aborted (4xx) vs failed (5xx/429). - `chunkUploadResult` (added to `types.go`) carries the per-chunk outcome. ## Linear Ticket - Resolves INT-6600 ## Security - [x] The code changed/added as part of this pull request won't create any security issues with how the software is being used. --------- Co-authored-by: Akash Chetty <[email protected]>
🤖 I have created a release *beep* *boop* --- ## [1.77.4](v1.77.3...v1.77.4) (2026-06-22) ### Bug Fixes * klaviyo upload partial failures ([#7107](#7107)) ([621a070](621a070)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
🔒 Scanned for secrets using gitleaks 8.29.1
achettyiitr
approved these changes
Jun 22, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7111 +/- ##
==========================================
+ Coverage 79.47% 79.84% +0.37%
==========================================
Files 583 583
Lines 65276 65328 +52
==========================================
+ Hits 51878 52163 +285
+ Misses 10302 10062 -240
- Partials 3096 3103 +7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ItsSudip
approved these changes
Jun 22, 2026
achettyiitr
deleted the
sync-release-5907c0e458bfcd2066b668e75fa5a96daa44e51b
branch
June 22, 2026 11:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Syncing patch release v1.77.4 to main branch
↓↓ Please review and edit commit overrides before merging ↓↓
BEGIN_COMMIT_OVERRIDE
fix: klaviyo upload partial failures (#7107)
END_COMMIT_OVERRIDE