:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(cdp): mark segment destination credential inputs as secret (#101911)
Tom Piccirelloc8793574f0c4
diff --git a/nodejs/src/cdp/segment/__snapshots__/segment-templates.test.ts.snap b/nodejs/src/cdp/segment/__snapshots__/segment-templates.test.ts.snapindex 8775c54eed52..a9f4d27cf499 100644--- a/nodejs/src/cdp/segment/__snapshots__/segment-templates.test.ts.snap+++ b/nodejs/src/cdp/segment/__snapshots__/segment-templates.test.ts.snap@@ -8561,7 +8561,7 @@ exports[`segment templates template segment-actions-clevertap matches expected r"key": "clevertapPasscode","label": "CleverTap Account Passcode","required": true,- "secret": false,+ "secret": true,"type": "string",},{@@ -21618,7 +21618,7 @@ exports[`segment templates template segment-actions-pipedrive matches expected r"key": "apiToken","label": "API Token","required": true,- "secret": false,+ "secret": true,"type": "string",},{@@ -27300,7 +27300,7 @@ exports[`segment templates template segment-actions-usermaven matches expected r"key": "api_key","label": "API Key","required": true,- "secret": false,+ "secret": true,"type": "string",},{@@ -27309,7 +27309,7 @@ exports[`segment templates template segment-actions-usermaven matches expected r"key": "server_token","label": "Server Token","required": true,- "secret": false,+ "secret": true,"type": "string",},{@@ -31768,7 +31768,7 @@ exports[`segment templates template segment-metronome-actions matches expected r"key": "apiToken","label": "API Token","required": true,- "secret": false,+ "secret": true,"type": "string",},{@@ -31901,7 +31901,7 @@ exports[`segment templates template segment-outfunnel matches expected result 1`"key": "apiToken","label": "API Token","required": true,- "secret": false,+ "secret": true,"type": "string",},{diff --git a/nodejs/src/cdp/segment/segment-templates.ts b/nodejs/src/cdp/segment/segment-templates.tsindex a51060ec4b7b..b0c5f1924b2b 100644--- a/nodejs/src/cdp/segment/segment-templates.ts+++ b/nodejs/src/cdp/segment/segment-templates.ts@@ -372,12 +372,16 @@ const SECRET_FIELD_NAMES = ['refresh_token','token_type','apikey',+ 'api_key',+ 'apitoken','apisecret','clientsecret',+ 'clevertappasscode','password','secretkey','secret','securitytoken',+ 'server_token',]const translateInputsSchema = (