Repository navigation
feat(custom-audience): remove legacy inline authentication - #2855
achettyiitr merged 14 commits into
Conversation
|
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 |
|
👋 I'm rudder-devbox. I opened this PR from a Linear ticket. Mention |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2855 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 133 133
Branches 26 26
=========================================
Hits 133 133 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🔵 Needs a closer look
Production compatibility requires human confirmation that migration removed all retired keys, including inactive remnants.
1 open issue
What changed in this PR
Removes Custom Activation’s legacy inline authentication in favor of linked reusable accounts.
Changes:
- Removes destination-level credentials and rejects retired authentication keys.
- Adds an explicit account-owned credential delivery contract.
- Updates validation coverage, CI, and documentation.
| File | Description |
|---|---|
test/test_validate_account_definitions.py |
Tests account delivery and legacy mirroring. |
test/data/validation/destinations/custom_audience.json |
Updates authentication validation fixtures. |
src/schemas/account/account-db-config-schema.json |
Defines the credential delivery marker. |
src/configurations/destinations/custom_audience/schema.json |
Replaces inline authentication validation with retired-key rejection. |
src/configurations/destinations/custom_audience/db-config.json |
Removes root credential declarations. |
src/configurations/destinations/custom_audience/accounts/custom_audience_bearer_token/db-config.json |
Marks Bearer credentials as account-delivered. |
src/configurations/destinations/custom_audience/accounts/custom_audience_basic_auth/db-config.json |
Marks Basic credentials as account-delivered. |
src/configurations/destinations/custom_audience/accounts/custom_audience_api_key/db-config.json |
Marks API-key credentials as account-delivered. |
scripts/validate_account_definitions.py |
Exempts explicitly account-delivered credentials from mirroring. |
CONVENTIONS.md |
Documents the delivery contract. |
.github/workflows/test.yml |
Runs account-validator unit tests. |
.agents/knowledge/patterns.md |
Documents targeted retired-key rejection. |
.agents/knowledge/architecture.md |
Documents account-owned authentication. |
Review effort: Balanced
|
The CI failure was caused by the new Python test invocation, not the Custom Activation assertions: the log shows all 9,020 JavaScript tests passed, then Python 3.12 failed with I changed the workflow to execute the test file directly with Pushed commit: ab379c6 |
|
Recorded knowledge from this round:
|
…-custom-audience-remove-leg-1a5e6aa0
There was a problem hiding this comment.
🔵 Needs a closer look
Removing the legacy authentication contract requires human confirmation of the INT-7371 production migration gates and coordinated transformer/webapp merge order.
No open issues 🎉
1 resolved since last review
Review effort: Balanced
…-custom-audience-remove-leg-1a5e6aa0
…-custom-audience-remove-leg-1a5e6aa0 # Conflicts: # .agents/knowledge/feedback.md
## Summary - Remove destination-level `authenticationType` and inline credential resolution from Custom Activation. - Keep explicit-toggle and linked delivery-account authentication behavior. - Move component fixtures to account-backed authentication and retain stale-inline-key regression coverage. - Extend secret-path derivation to mask reusable delivery-account secrets now that Custom Activation no longer declares root secret keys. ## Validation - `npm test -- --testPathPattern="custom_audience" --no-coverage --runInBand` - 171 tests passed. - `npm run test:ts -- component --destination=custom_audience` - 13 tests passed. - Secret-path tooling unit suite - 28 tests passed. - Full secret-path generation - passed; 193 destinations generated and Custom Activation masks `headers.Authorization` and `headers.X-Account-Key`. - `npm run lint` - passed. Resolves INT-7371. Do not merge until the remaining INT-7371 gate checks pass. Merge after [rudderlabs/rudder-integrations-config#2855](rudderlabs/rudder-integrations-config#2855). Co-authored-by: tech-infra-rudderstack <[email protected]> Co-authored-by: Akash Chetty <[email protected]>


What are the changes introduced in this PR?
Remove Custom Activation's legacy destination-level
authenticationTypedeclaration and its per-method schema branches after the account migration.Custom Activation follows the mirrored account-field pattern used by FB Custom Audience: Basic Auth, Bearer Token, and API-key fields remain declared in
destConfig.defaultConfig/secretKeysso config-backend can copy linked-account values, while those fields are not exposed in the destination schema. The transformer continues to read credentials fromdeliveryAccount, which the masked preview also relies on.What is the related Linear task?
Resolves INT-7371.
Behavior
authenticationTypefrom Custom Activation destination metadata and schema.authenticationEnabled: truerequiringrudderAccountId.Production gate — do not merge
Do not merge until production confirms that no
CUSTOM_AUDIENCEdestination in any region hasauthenticationType, and that the account-linked destinations' next scheduled syncs complete without 401/403 responses.After the gate passes, preserve this merge order: this PR → rudder-transformer#5712 → rudder-webapp#10301.
Validation
python3 scripts/validate_account_definitions.py custom_audiencepython3 scripts/validate_account_definitions.py fb_custom_audiencegit diff --checkKnown issue
npm run check:schema:destination custom_audiencestill hits the pre-existingaudienceDeliveryApiBuilderschema-generator incompatibility (KeyError: 'configKey'); this PR does not change that generator path.