Commit e58aa31
committed
fix: stop forwarding MongoDB TLS file paths on Cloud
MongoIntegration forwarded tlsCertificateKeyFile/tlsCAFile from the
datasource config directly into the MongoDB driver as filesystem
paths, regardless of environment. The builder UI only exposes these
fields when SELF_HOSTED is true, but that gating was UI-only — the
backend still accepted and used them on Cloud if present in the
request payload, which is unsafe on a shared, multi-tenant server.
buildMongoClientOptions() now only forwards these fields into the
driver when environment.SELF_HOSTED is true, enforcing server-side
what the UI already implied. Self-hosted behavior is unchanged.1 parent b4227c4 commit e58aa31
2 files changed
Lines changed: 54 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
352 | 364 | | |
353 | 365 | | |
354 | 366 | | |
355 | 367 | | |
356 | 368 | | |
357 | 369 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
| 370 | + | |
362 | 371 | | |
363 | 372 | | |
364 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
0 commit comments