Skip to content

fix(destination): authenticate marketo bulk uploads with bearer token - #7510

Merged
maheshkutty merged 1 commit into
masterfrom
fix/INT-7415-marketo-bearer-auth
Oct 20, 2026
Merged

maheshkutty merged 1 commit into
masterfrom
fix/INT-7415-marketo-bearer-auth

Conversation

@maheshkutty

Copy link
Copy Markdown
Contributor

Description

Fixes MARKETO_BULK_UPLOAD lead imports failing with Marketo error 603 (Access denied).

Adobe removed support 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

  • 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

Marketo removed support for passing access_token as a request
parameter on 2026-08-31, so bulk lead imports fail with 603 (Access
denied). Send the token in the Authorization header instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

🔒 Scanned for secrets using gitleaks 8.30.1
@maheshkutty
maheshkutty merged commit 3eaffad into master Oct 20, 2026
72 checks passed
@maheshkutty
maheshkutty deleted the fix/INT-7415-marketo-bearer-auth branch October 20, 2026 10:27
@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.63%. Comparing base (833d694) to head (ef90d26).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7510      +/-   ##
==========================================
- Coverage   85.03%   84.63%   -0.40%     
==========================================
  Files         632      632              
  Lines       62857    62857              
==========================================
- Hits        53448    53202     -246     
- Misses       9406     9652     +246     
  Partials        3        3              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

itsmihir pushed a commit that referenced this pull request Oct 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.91.0-rc.2](v1.90.0...v1.91.0-rc.2)
(2026-10-20)


### Features

* **jobsdb:** pending events gauge for the gw jobsdb
([#7447](#7447))
([fc539c4](fc539c4))
* **processor:** report event_filter drops per reason and stop its
succeeded rows
([#7454](#7454))
([5caff53](5caff53))


### Bug Fixes

* **destination:** authenticate marketo bulk uploads with bearer token
([#7510](#7510))
([3eaffad](3eaffad))
* **processor:** exclude dropped jobs from tracked users and activation
records
([#7485](#7485))
([526602c](526602c))
* **router:** enable live events payload masking by default
([#7500](#7500))
([8b5c22d](8b5c22d))
* **router:** mask multi-request delivery payloads
([#7476](#7476))
([f65572e](f65572e))
* **router:** mask reporting sample event secrets
([#7497](#7497))
([833d694](833d694))
* **router:** report destination status for v1 proxy deliveries in
transformer_outgoing_request_count
([#7482](#7482))
([bba1c21](bba1c21))


### Miscellaneous

* bump sqlconnect-go to v1.34.0
([#7479](#7479))
([71e8cfa](71e8cfa))
* stop setting in_reported_by on report rows
([#7458](#7458))
([814d149](814d149))
* sync release v1.90.0 to main branch
([#7475](#7475))
([d05fcbb](d05fcbb))
* **tooling:** move rudder-server test MinIO to Silo
([#7469](#7469))
([935bf59](935bf59))

---
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>
itsmihir pushed a commit that referenced this pull request Oct 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.91.0](v1.90.0...v1.91.0)
(2026-10-20)


### Features

* **jobsdb:** pending events gauge for the gw jobsdb
([#7447](#7447))
([fc539c4](fc539c4))
* **processor:** report event_filter drops per reason and stop its
succeeded rows
([#7454](#7454))
([5caff53](5caff53))


### Bug Fixes

* **destination:** authenticate marketo bulk uploads with bearer token
([#7510](#7510))
([3eaffad](3eaffad))
* **processor:** exclude dropped jobs from tracked users and activation
records
([#7485](#7485))
([526602c](526602c))
* **router:** enable live events payload masking by default
([#7500](#7500))
([8b5c22d](8b5c22d))
* **router:** mask multi-request delivery payloads
([#7476](#7476))
([f65572e](f65572e))
* **router:** mask reporting sample event secrets
([#7497](#7497))
([833d694](833d694))
* **router:** report destination status for v1 proxy deliveries in
transformer_outgoing_request_count
([#7482](#7482))
([bba1c21](bba1c21))


### Miscellaneous

* bump sqlconnect-go to v1.34.0
([#7479](#7479))
([71e8cfa](71e8cfa))
* stop setting in_reported_by on report rows
([#7458](#7458))
([814d149](814d149))
* sync release v1.90.0 to main branch
([#7475](#7475))
([d05fcbb](d05fcbb))
* **tooling:** move rudder-server test MinIO to Silo
([#7469](#7469))
([935bf59](935bf59))

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants