Repository navigation
feat(custom_audience): support delivery account authentication - #5671
achettyiitr merged 15 commits into
Conversation
|
👋 I'm rudder-devbox. I opened this PR from a Linear ticket. Mention |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5671 +/- ##
========================================
Coverage 92.12% 92.13%
========================================
Files 713 713
Lines 39591 39641 +50
Branches 9276 9290 +14
========================================
+ Hits 36474 36524 +50
- Misses 2852 2932 +80
+ Partials 265 185 -80 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
The generated-secret-path check failed because the log reported I updated the generator to derive delivery-account secret movements and dynamic account header names, replaced the artifact-only assertion with source-level coverage, and documented the new credential source. The final full Pushed commit: 97653b5 |
|
Knowledge distillation completed |
|



What are the changes introduced in this PR?
Adds toggle-first authentication resolution for Custom Activation using linked delivery-account credentials. Supports Basic, Bearer, and API-key account definitions, preserves legacy inline authentication for unmigrated destinations, and returns actionable configuration errors for invalid linked accounts.
What is the related Linear task?
Resolves INT-7365
Please explain the objectives of your changes below
Allow migrated Custom Activation destinations to source credentials from their linked delivery account without breaking existing destinations that still use inline credentials. Authentication can also be explicitly disabled regardless of stored account or inline data.
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
When
authenticationEnabledis true, a valid linked account is now mandatory and inline credentials are not used as fallback. When false, all authentication is suppressed. If the toggle is absent, existing inline authentication remains supported unless a linked account ID is present.Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A — authentication parsing and validation are destination-local.
Any technical or performance related pointers to consider with the change?
Authentication headers are resolved lazily once per integration instance. This preserves controlled per-event error handling while avoiding repeated credential parsing for a batch.
Developer checklist
My code follows the style guidelines of this project
No breaking changes are being introduced.
All related docs linked with the PR?
All changes manually tested?
Any documentation changes needed with this change?
Is the PR limited to 10 file changes?
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.
Adversarial self-review surfaced findings that were not auto-fixed. Each carries its disposition — please evaluate before merging.
src/secretPaths/tooling/generate.test.ts:232— not auto-fixed (iteration budget exhausted)test/integrations/destinations/custom_audience/common.ts:15— not auto-fixed (iteration budget exhausted)