Commit 65bb87e
fix(conversations): stop the public shared endpoint leaking owner-internal fields (#10273)
GET /v1/conversations/{id}/shared is public and unauthenticated, but its response
returned the full Conversation model with only geolocation stripped — also exposing
the server-side encryption tier (data_protection_level) and external_data (merge
provenance: other conversation ids, plus integration metadata).
Strip data_protection_level and external_data alongside geolocation before serializing.
Scope is narrow: only owner-internal fields. The transcript, summary and audio the owner
chose to publish are unchanged, so the response schema is unchanged.
Verified: pytest test_shared_conversation_field_exposure.py -> 1 passed.
Failure-Class: none
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent ebacaab commit 65bb87e
2 files changed
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1118 | 1118 | | |
1119 | 1119 | | |
1120 | 1120 | | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1121 | 1126 | | |
| 1127 | + | |
| 1128 | + | |
1122 | 1129 | | |
1123 | 1130 | | |
1124 | 1131 | | |
| |||
Lines changed: 44 additions & 0 deletions
| 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 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
0 commit comments