Repository navigation
feat(secret-paths): derive and publish credential masking paths - #5641
shekhar-rudder merged 18 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 |
|
The generated-secret-path job failed before running its checks: the log shows I updated the workflow checkout name and ref to Commit: 753e959 |
|
Knowledge distillation completed |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #5641 +/- ##
===========================================
- Coverage 93.32% 92.11% -1.22%
===========================================
Files 703 708 +5
Lines 38742 39534 +792
Branches 9007 9272 +265
===========================================
+ Hits 36157 36416 +259
- Misses 2400 2933 +533
Partials 185 185 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
- run the fetched-credential pass once per destination instead of twice on the rescue path - reuse hasSameShape/locationsForKey in the fetched-credential pass instead of an inline copy - fold the two decoy runs into one loop and add a debug() helper - use parsePath/formatPath in collapseKeyFamily and validateSecretPaths instead of a lookbehind split - share SecretPaths type and implemented-destination list; drop write-only state and dead helpers - fix argOf truncating values containing '='; restore the features.ts section banner Regenerated artifact is byte-identical; validation reports zero survivor drift. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…passes - one runCorroboratedDecoys helper for the config and fetched-credential passes - locationsForKey takes source as an optional last argument - debug() takes a thunk so messages are only built when debugging - round-trip test exercises formatPath Regenerated artifact is byte-identical; validation reports zero survivor drift. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Knowledge distillation completed |
|
Knowledge distillation completed |
|
Knowledge distillation completed |
|
Knowledge distillation completed |
|
Knowledge distillation completed |
|
Knowledge distillation completed |
|
Task failed — check control-plane logs for details. |
|
Knowledge distillation completed |
- load each destination's derivable fixtures once and share them across passes - run the fetched-credential pass once, with one unstable-source decision - drop Movement.source, keep comparison evidence only for the endpoint, remove withoutUnreadEvidence - one header-name-from-config check; inline the header collapse into toSecretPaths - replace the outcome recorder with direct empty/failure writes; stop the harness in finally - cache serialised mocks per destination; preload only requested destinations' fixtures - move path.ts under tooling (only the generator uses it); lint tooling via tsconfig.test.json and delete tsconfig.secret-paths.json; check:secret-paths reuses generate:secret-paths - fix stale comments (fail-closed wording, SALESFORCE_OAUTH story, README branch) Regenerated artifact is unchanged; check:secret-paths passes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- parse SECRET_PATHS_DESTINATION once and share it between the fixture preload and main - serialise mocks lazily, only for the destination currently being derived - one guard for an unstable source; drop the failUnstable closure and the unused EmptyReason - rename withConfigHeaderEvidence to markConfigHeader (it attaches no evidence) Regenerated artifact is unchanged; check:secret-paths passes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Knowledge distillation completed |
|
Knowledge distillation completed |
- declare the request payload fields once in path.ts; derive the delivered, maskable and wrapper sets from it (maskable is a Set, so validateSecretPaths needs no cast or # clause) - one carriesAnySecret helper shared by the runtime-bag, non-http and mock-response checks - nonHttpSecretCarriersIn: one walker over isObj instead of two mutually recursive ones - scan non-http outputs only when no case built a request; skip the unused second transform in runBaseline when the first built nothing - recordNonHttp helper in main instead of a callback-and-boolean function - README: drop the repeated bag sentence and the diagnostics that are not reason codes Regenerated artifact is unchanged; check:secret-paths passes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Knowledge distillation completed |
|



Write a brief explainer on your code changes.
This PR derives destination credential locations from component fixtures and
rudder-integrations-configsecretKeys, commits the deterministic direct-map artifact, and publishes it through the cachedGET /featuresresponse.What is the related Linear task?
Resolves RUD-3250
Please explain the objectives of your changes below
endpoint.GET /featuresand cache its serialized response.rudder-integrations-configdevelop.The committed artifact currently covers 189 destinations: 126 have derived paths and 63 have nothing maskable in the exercised corpus. The map is the wire-format
Record<string, string[]>itself, with no timestamps, source refs, hashes, or diagnostic envelope.Any changes to existing capabilities/behaviour, mention the reason & what are the changes?
GET /featuresnow includessecretPaths. Existing capability fields are unchanged. Derivation only runs in tooling/CI; runtime imports the committed artifact once and serves pre-serialized feature bytes.Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
Added shared gjson/sjson path escaping and normalization, fixture request traversal, deterministic artifact validation, and Jest-hosted generator tooling under
src/secretPaths/tooling(excluded from the production TypeScript build).Any technical or performance related pointers to consider with the change?
The frequently-polled
/featuresresponse is serialized once at module initialization. No fixture replay, destination-definition read, validation, or other derivation work runs per request.Developer checklist
Reviewer checklist
Validation
npm run lint— passednpm run check:secret-pathsagainst the integrations-config destination definitions — passed; committed bytes match fresh derivation across all 189 destinationsnpm run format:ci— passedgit diff --check— passed