Repository navigation
fix(destination): authenticate Marketo bulk uploads with bearer token - #7504
Closed
rudder-devbox[bot] wants to merge 1 commit into
Closed
rudder-devbox[bot] wants to merge 1 commit into
rudder-devbox[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
👋 I'm rudder-devbox. I opened this PR from a Linear ticket. Mention |
1 task done
Contributor
Author
|
⚠ CI failed on Tests but I could not fetch any job logs to diagnose the failure. Errors encountered: |
Contributor
|
Closing in favour of #7505 (targets |
maheshkutty
added a commit
that referenced
this pull request
Oct 20, 2026
…#7505) Backport of #7504 to `release/1.91.x`. # Description Fixes MARKETO_BULK_UPLOAD lead imports returning Marketo 603 errors after form-field token authentication was removed. The bulk import request now: - sends the OAuth token as `Authorization: Bearer <token>`; - omits `access_token` from the multipart form; - keeps the upload on its existing HTTP client (moving it to the shared client with a configurable timeout is a follow-up, since the shared client's 30s timeout would apply to uploads of up to 10MB); - preserves the CSV file, `format=csv`, and optional `lookupField` parts. Request-level tests cover both configured and absent deduplication fields, the bearer header, token-field omission, and uploaded CSV contents. ## Linear Ticket INT-7415 ## 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. ## Validation - `make fmt` — passed - Focused Marketo package tests — passed - `go vet ./router/batchrouter/asyncdestinationmanager/marketo-bulk-upload/...` — passed - `go run github.com/golangci/golangci-lint/v2/cmd/[email protected] run ./router/batchrouter/asyncdestinationmanager/marketo-bulk-upload/...` — passed (`0 issues`) ##⚠️ Known Issues `go test -count=1 ./router/batchrouter/asyncdestinationmanager/marketo-bulk-upload/...` encounters an unrelated pre-existing failure in `TestReadJobsFromFile/No_read_permissions`. The sandbox runs tests as root, so opening a chmod `000` file succeeds; the existing test then dereferences a nil error and panics. All other package tests, including the new request test, pass. --------- Co-authored-by: tech-infra-rudderstack <[email protected]> Co-authored-by: Mahesh Kutty <[email protected]>
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
Fixes MARKETO_BULK_UPLOAD lead imports returning Marketo 603 errors after form-field token authentication was removed.
The bulk import request now:
Authorization: Bearer <token>;access_tokenfrom the multipart form;MarketoAPIServiceHTTP client;format=csv, and optionallookupFieldparts.Request-level tests cover both configured and absent deduplication fields, the bearer header, token-field omission, and uploaded CSV contents.
Linear Ticket
INT-7415
Security
Validation
make fmt— passedgo vet ./router/batchrouter/asyncdestinationmanager/marketo-bulk-upload/...— passedgo run github.com/golangci/golangci-lint/v2/cmd/[email protected] run ./router/batchrouter/asyncdestinationmanager/marketo-bulk-upload/...— passed (0 issues)go test -count=1 ./router/batchrouter/asyncdestinationmanager/marketo-bulk-upload/...encounters an unrelated pre-existing failure inTestReadJobsFromFile/No_read_permissions. The sandbox runs tests as root, so opening a chmod000file succeeds; the existing test then dereferences a nil error and panics. All other package tests, including the new request test, pass.