Commit 87b7f4f
committed
fix: remove sensitive tokens from history items
Sanitize history items returned by get_history() to strip
auth_token_comfy_org and api_key_comfy_org from prompt inputs.
This prevents tokens from being exposed if history is ever
persisted to disk or accessed over open networks.
Closes Comfy-Org#88891 parent bdead4b commit 87b7f4f
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1253 | 1253 | | |
1254 | 1254 | | |
1255 | 1255 | | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
1256 | 1270 | | |
| 1271 | + | |
1257 | 1272 | | |
1258 | 1273 | | |
1259 | 1274 | | |
| |||
1265 | 1280 | | |
1266 | 1281 | | |
1267 | 1282 | | |
| 1283 | + | |
| 1284 | + | |
1268 | 1285 | | |
1269 | 1286 | | |
1270 | 1287 | | |
| |||
1273 | 1290 | | |
1274 | 1291 | | |
1275 | 1292 | | |
1276 | | - | |
| 1293 | + | |
1277 | 1294 | | |
1278 | 1295 | | |
1279 | 1296 | | |
| |||
0 commit comments