Repository navigation
fix(destination): authenticate Marketo bulk uploads with bearer token - #7505
Merged
maheshkutty merged 3 commits intoOct 20, 2026
Merged
Conversation
1 task done
Limit the fix to the auth change. Passing the shared client put uploads (up to 10MB) under its 30s timeout, which the previous client did not have. Moving uploads onto the shared client with a configurable timeout is left for a follow-up. Co-Authored-By: Claude Opus 5.5 <[email protected]> 🔒 Scanned for secrets using gitleaks 8.30.1
Co-Authored-By: Claude Opus 5.5 <[email protected]> 🔒 Scanned for secrets using gitleaks 8.30.1
maheshkutty
marked this pull request as ready for review
October 20, 2026 08:38
achettyiitr
approved these changes
Oct 20, 2026
atzoum
approved these changes
Oct 20, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release/1.91.x #7505 +/- ##
==================================================
+ Coverage 84.53% 85.15% +0.62%
==================================================
Files 632 632
Lines 62839 62839
==================================================
+ Hits 53118 53511 +393
+ Misses 9718 9325 -393
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Closed
1 task done
maheshkutty
added a commit
that referenced
this pull request
Oct 20, 2026
…#7510) # Description Fixes `MARKETO_BULK_UPLOAD` lead imports failing with Marketo error 603 (Access denied). Adobe [removed support](https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/rest/authentication) for passing `access_token` as a request parameter on 2026-08-31. The bulk import request still sent it as a multipart form field, so every import now fails. Poll and lead-status calls already use the header and are unaffected. The bulk import request now: - sends the token as `Authorization: Bearer <token>`; - no longer sends `access_token` in the multipart form; - keeps the CSV file, `format=csv` and optional `lookupField` parts unchanged. The upload keeps its existing HTTP client on purpose. Moving it to the shared client would put uploads of up to 10MB under that client's 30s timeout, so that change is left for a follow-up with a configurable timeout. This is the `master` counterpart of #7505 (`release/1.91.x`). ## 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 - `TestSendHTTPRequest` covers the bearer header, the missing `access_token` field, `format`, `lookupField` with and without a deduplication field, and the uploaded CSV. It fails if the `access_token` form field is put back. - `go test ./router/batchrouter/asyncdestinationmanager/marketo-bulk-upload/...` passes. - `go vet` and `golangci-lint` v2.14.0 on the package: 0 issues. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.
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:
Authorization: Bearer <token>;access_tokenfrom the multipart form;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.