Commit b9aaa84
committed
Stop logging HTTP response bodies in generated executeHttpCall
Summary: Regenerates utils.ts across all generated packages so the generated executeHttpCall helper no longer logs the HTTP response body at debug level, preventing plaintext secrets from leaking into debug logs.
Why: executeHttpCall logged the full decoded response body at debug level with no redaction or opt-in. Endpoints such as getSecret() return the plaintext secret in that body, so any consumer with debug logging enabled would write secrets to their logs. The streaming helper sendAndCheckError already logged only statusCode; this makes executeHttpCall consistent. The Logger interface in sdk-core exposes no level below debug and no body-logging opt-in, so the body is dropped from the default log.
This is regenerated output and pairs with the generator change in databricks-eng/universe (openapi/genkit/codegen/sdkjs/utils.go). It contains no hand-written source changes. Behavioral change: executeHttpCall now logs only {statusCode} instead of {statusCode, body}. Divergence from the Go SDK: the Go SDK can log response bodies behind an explicit DebugBytes opt-in (default off); the JS SDK has no equivalent opt-in, so the body is omitted unconditionally.
Tested: npm run build (86/86), @databricks/sdk-core tests (357 passing), npm run lint (94/94), npm run typecheck (94/94).
Co-authored-by: Isaac1 parent 4680f01 commit b9aaa84
83 files changed
Lines changed: 249 additions & 332 deletions
File tree
- packages
- accessmanagement/src/v1
- alerts/src
- v1
- v2
- apps/src/v1
- authentication/src/v1
- budgetpolicy/src/v1
- budgets/src/v1
- cleanrooms/src/v1
- clusterlibraries/src/v2
- clusterpolicies/src/v2
- clusters/src/v2
- commandexecution/src/v2
- customllms/src/v1
- database/src/v1
- dataclassification/src/v1
- dataquality/src/v1
- disasterrecovery/src/v1
- environments/src/v1
- experiments/src/v1
- featurestore/src/v1
- features/src/v1
- files/src/v2
- forecasting/src/v1
- genie/src/v1
- gitcredentials/src/v1
- globalinitscripts/src/v2
- instancepools/src/v2
- instanceprofiles/src/v2
- jobs/src/v2
- keyconfigurations/src/v1
- knowledgeassistants/src/v1
- lakeview/src/v1
- logdelivery/src/v1
- marketplaces/src/v1
- modelregistry/src/v1
- modelservingquery/src/v1
- modelserving/src/v1
- networking/src/v1
- notificationdestinations/src/v1
- oauth/src/v1
- pipelines/src/v2
- policyfamilies/src/v2
- postgres/src/v1
- queries/src/v1
- queryhistory/src/v1
- repos/src/v1
- scim/src/v1
- secrets/src/v1
- settings/src/v2
- sharing/src/v1
- statementexecution/src/v1
- storageconfigurations/src/v1
- supervisoragents/src/v1
- tagassignments/src/v1
- tagpolicies/src/v1
- tokenmanagement/src/v1
- tokens/src/v1
- uc
- abacpolicies/src/v1
- artifactallowlists/src/v1
- catalogs/src/v1
- connections/src/v1
- credentials/src/v1
- entitytagassignments/src/v1
- externallineage/src/v1
- externallocations/src/v1
- externalmetadata/src/v1
- functions/src/v1
- grants/src/v1
- metastores/src/v1
- onlinetables/src/v1
- registeredmodels/src/v1
- resourcequotas/src/v1
- rfa/src/v1
- schemas/src/v1
- secrets/src/v1
- systemschemas/src/v1
- tables/src/v1
- volumes/src/v1
- workspacebindings/src/v1
- usagedashboards/src/v1
- vectorsearch/src/v1
- warehouses/src/v1
- workspaces/src/v1
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
0 commit comments