Commit cdd8b08
authored
fix(supabase): Consider
We did not consider `sendDefaultPii` for the supabase integration.
However:
> The Supabase integration captures the full request body of
POST/PATCH/PUT/DELETE operations (database mutations) and attaches it as
the 'db.body' span attribute (line 387). This body contains the actual
data being inserted or updated in Supabase tables, which commonly
includes PII such as user emails, names, addresses, and other sensitive
fields. Unlike other integrations (e.g., the MCP server integration
which checks sendDefaultPii), the Supabase integration performs no
sendDefaultPii check and applies no filtering or redaction to the
captured body. Additionally, query filter values from URL search
parameters are captured at lines 351-355, which can also contain PII
used in WHERE clauses.
This PR fixes this.sendDefaultPii for supabase integration (#20490)1 parent 3c6078f commit cdd8b08
4 files changed
Lines changed: 272 additions & 91 deletions
File tree
- dev-packages
- browser-integration-tests/suites/integrations/supabase/db-operations
- e2e-tests/test-applications/supabase-nextjs/tests
- packages/core
- src/integrations
- test/lib/integrations
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
Lines changed: 14 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
82 | 64 | | |
83 | 65 | | |
84 | | - | |
85 | 66 | | |
86 | 67 | | |
87 | 68 | | |
88 | 69 | | |
89 | | - | |
90 | | - | |
91 | 70 | | |
92 | 71 | | |
93 | 72 | | |
| |||
97 | 76 | | |
98 | 77 | | |
99 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
100 | 87 | | |
101 | 88 | | |
102 | 89 | | |
103 | 90 | | |
104 | | - | |
105 | | - | |
| 91 | + | |
106 | 92 | | |
107 | 93 | | |
108 | 94 | | |
109 | 95 | | |
110 | 96 | | |
111 | 97 | | |
112 | | - | |
113 | | - | |
| 98 | + | |
114 | 99 | | |
115 | 100 | | |
116 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
151 | 171 | | |
152 | 172 | | |
153 | 173 | | |
| |||
361 | 381 | | |
362 | 382 | | |
363 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
364 | 387 | | |
365 | 388 | | |
366 | 389 | | |
367 | | - | |
368 | | - | |
369 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
370 | 397 | | |
371 | 398 | | |
372 | 399 | | |
| |||
379 | 406 | | |
380 | 407 | | |
381 | 408 | | |
382 | | - | |
| 409 | + | |
383 | 410 | | |
384 | 411 | | |
385 | 412 | | |
386 | | - | |
387 | | - | |
| 413 | + | |
| 414 | + | |
388 | 415 | | |
389 | 416 | | |
390 | 417 | | |
| |||
413 | 440 | | |
414 | 441 | | |
415 | 442 | | |
416 | | - | |
| 443 | + | |
417 | 444 | | |
418 | 445 | | |
419 | | - | |
420 | | - | |
| 446 | + | |
| 447 | + | |
421 | 448 | | |
422 | 449 | | |
423 | 450 | | |
| |||
444 | 471 | | |
445 | 472 | | |
446 | 473 | | |
447 | | - | |
| 474 | + | |
448 | 475 | | |
449 | 476 | | |
450 | 477 | | |
451 | | - | |
452 | | - | |
| 478 | + | |
| 479 | + | |
453 | 480 | | |
454 | 481 | | |
455 | 482 | | |
| |||
0 commit comments