Skip to content

feat (PUT-1016 & PUT-1020)#3164

Merged
Salazareo merged 3 commits into
mainfrom
DS/put-1016-put-1020
May 27, 2026
Merged

feat (PUT-1016 & PUT-1020)#3164
Salazareo merged 3 commits into
mainfrom
DS/put-1016-put-1020

Conversation

@Salazareo
Copy link
Copy Markdown
Member

temp account preservation on forced relogin
hosted asset cookies to v2 token too

temp account preservation on forced relogin
hosted asset cookies to v2 token too
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 27, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 71.69%
⬆️ +0.06%
13614 / 18989
🔵 Statements 70.13%
⬆️ +0.07%
14382 / 20507
🔵 Functions 70.44%
⬆️ +0.05%
2248 / 3191
🔵 Branches 59.92%
⬆️ +0.09%
9209 / 15368
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
extensions/thumbnails.ts 76.76%
🟰 ±0%
70.49%
🟰 ±0%
42.85%
🟰 ±0%
77.17%
🟰 ±0%
19-43, 53, 56, 125-130, 149, 168-171, 177-180, 184-190, 195
src/backend/extensions.ts 34.69%
🟰 ±0%
17.24%
🟰 ±0%
38.46%
🟰 ±0%
35.41%
🟰 ±0%
29-31, 40, 41, 45-69, 89-104, 134-148, 161-175, 188-202, 211-264
src/backend/server.ts 50.13%
🟰 ±0%
35.49%
🟰 ±0%
43.58%
🟰 ±0%
51.11%
🟰 ±0%
88-89, 103-108, 123-129, 174-187, 214-222, 245-246, 249-258, 261-265, 273, 276, 279, 285, 309, 316-322, 325-376, 399-427, 444-472, 486-488, 507-511, 534, 549-551, 561-566, 569-575, 578-584, 587-593, 603-605, 616, 620-622, 637, 643-679, 692-712, 719-720, 751-788
src/backend/types.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/backend/clients/alarm/AlarmClient.ts 51.92%
🟰 ±0%
30%
🟰 ±0%
57.89%
🟰 ±0%
57.14%
🟰 ±0%
78, 102-133, 147-151, 169, 177-198, 205, 214-234, 240, 242, 250, 268-269
src/backend/clients/email/EmailClient.ts 38.8%
🟰 ±0%
19.35%
🟰 ±0%
50%
🟰 ±0%
43.33%
🟰 ±0%
7-14, 53-54, 67, 88-144, 152-154
src/backend/controllers/apps/AppController.js 87.78%
🟰 ±0%
78.16%
🟰 ±0%
87.5%
🟰 ±0%
89.68%
🟰 ±0%
47, 128, 173, 249, 266, 288, 369-370, 378-379, 392-393, 400-401, 421
src/backend/controllers/auth/AuthController.ts 89.08%
⬆️ +0.21%
74.37%
⬆️ +0.50%
71.56%
⬆️ +0.86%
90.09%
⬆️ +0.12%
6, 24-26, 32, 33, 34, 38-39, 44, 45, 47, 354-355, 416-418, 435-437, 548, 608, 648, 659, 673-681, 713-714, 717-722, 756, 860, 991, 1036, 1096, 1109-1112, 1152-1154, 1216-1218, 1230-1232, 1237-1239, 1258, 1277, 1288, 1378-1385, 1411-1425, 1434-1440, 1458, 1498-1504, 1510, 1517-1524, 1530, 1537-1550, 1569-1584, 1613-1615, 1655, 1678-1680, 1703, 1741-1743, 1809, 1839, 1932-1935, 2011-2016, 2019-2021, 2048, 2067, 2085, 2103, 2116, 2128, 2145, 2155, 2168, 2177, 2181, 2187, 2205-2209, 2218-2220, 2234, 2237-2241, 2317
src/backend/controllers/desktop/DesktopController.js 96.72%
🟰 ±0%
87.03%
🟰 ±0%
92.85%
🟰 ±0%
96.61%
🟰 ±0%
71-75, 81-85
src/backend/controllers/drivers/DriverController.ts 66.96%
🟰 ±0%
36.23%
🟰 ±0%
55.26%
🟰 ±0%
73.44%
🟰 ±0%
6, 13, 16, 24-26, 32-34, 38-39, 43, 44, 45, 46, 47, 126-137, 140-172, 195, 288-300, 330, 342, 345-350, 393-395, 400, 402-405
src/backend/controllers/fs/FSController.ts 60.02%
🟰 ±0%
48.76%
🟰 ±0%
59.61%
🟰 ±0%
59.8%
🟰 ±0%
6, 24-26, 32, 33, 34, 38-39, 44, 45, 47, 66-83, 107-133, 179, 191-204, 235-584, 707, 881, 882, 883, 899-901, 926-933, 949-954, 959-965, 970-971, 978, 982, 990, 1035-1037, 1041-1043, 1052-1054, 1060, 1078-1079, 1086-1087, 1098, 1122, 1130, 1138, 1142, 1146, 1150, 1159-1162, 1168-1188, 1195, 1206, 1211-1213, 1218-1220, 1227, 1230, 1237-1239, 1258, 1265-1268, 1273-1275, 1279-1281, 1285-1287, 1291-1293, 1335-1337, 1408-1409, 1421, 1425-1427, 1430-1433, 1439-1448, 1450-1456, 1466, 1468-1488, 1499-1529, 1545-1549, 1552-1564, 1570-1573, 1577-1598, 1604-1611, 1628, 1632-1699, 1702-1726
src/backend/controllers/fs/LegacyFSController.ts 61.58%
🟰 ±0%
44.7%
🟰 ±0%
47.56%
🟰 ±0%
62.75%
🟰 ±0%
63-73, 146-148, 152-195, 207-222, 234-240, 294, 405-409, 640-642, 675-676, 738-740, 742-744, 748-750, 852, 889, 911-915, 945-947, 966-970, 1010-1019, 1024-1030, 1038, 1072-1090, 1097-1268, 1298-1300, 1318-1320, 1325-1327, 1330-1341, 1345, 1396-1406, 1443-1445, 1570, 1620-1702, 1751-1837, 1842-1844, 1884-1886, 2006-2067, 2074-2075, 2079, 2097-2213, 2233-2235, 2239-2241, 2247, 2248, 2250, 2259-2262, 2270-2290
src/backend/controllers/fs/legacyFsHelpers.ts 74.38%
🟰 ±0%
58.15%
🟰 ±0%
88.23%
🟰 ±0%
77.27%
🟰 ±0%
54, 77-78, 81-83, 124-135, 217-219, 259, 270-305, 332-336, 417, 441-456, 474-478, 481-485
src/backend/controllers/homepage/HomepageController.ts 88.37%
🟰 ±0%
63.63%
🟰 ±0%
92.3%
🟰 ±0%
88.23%
🟰 ±0%
7, 77-81
src/backend/controllers/hosting/HostingController.js 15.38%
🟰 ±0%
0%
🟰 ±0%
57.14%
🟰 ±0%
15.38%
🟰 ±0%
36, 50-79
src/backend/controllers/oidc/OIDCController.ts 96.59%
🟰 ±0%
78.53%
🟰 ±0%
100%
🟰 ±0%
97.63%
🟰 ±0%
82, 86, 208-212, 485-487, 500, 532
src/backend/controllers/puterai/PuterAIController.ts 82.53%
🟰 ±0%
61.66%
🟰 ±0%
93.24%
🟰 ±0%
86.65%
🟰 ±0%
180-196, 307-325, 344-348, 965-966, 1045-1047, 1088-1090, 1123, 1128, 1146, 1150, 1156-1161, 1168-1185, 1239, 1241, 1260, 1264, 1269-1294, 1298, 1300-1301, 1305, 1316-1317, 1319, 1361, 1380-1384, 1400-1410, 1481-1484, 1492, 1494, 1521, 1529, 1537, 1550, 1554, 1559, 1563, 1574, 1585, 1601, 1619, 1641
src/backend/controllers/share/ShareController.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/backend/controllers/static/StaticPagesController.ts 100%
🟰 ±0%
86.84%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/backend/controllers/system/SystemController.js 88.37%
🟰 ±0%
74.41%
🟰 ±0%
100%
🟰 ±0%
92.68%
🟰 ±0%
47, 50, 109, 124, 152
src/backend/controllers/webdav/WebDAVController.ts 55.97%
🟰 ±0%
46.11%
🟰 ±0%
85.71%
🟰 ±0%
56.06%
🟰 ±0%
79-80, 120, 183, 197-237, 266-273, 286-301, 327-332, 336-342, 359-372, 397-422, 447, 460-462, 469-471, 517, 522-528, 549-586, 602-642, 666-668, 685-687, 734-740, 748, 752-754, 806-810, 858-860, 900
src/backend/controllers/webdav/locks.ts 65.21%
🟰 ±0%
39.39%
🟰 ±0%
87.5%
🟰 ±0%
67.79%
🟰 ±0%
79-95, 103, 182-198, 215
src/backend/core/context.ts 89.47%
🟰 ±0%
84.61%
🟰 ±0%
100%
🟰 ±0%
94.11%
🟰 ±0%
92, 119
src/backend/core/http/PuterRouter.ts 55.88%
🟰 ±0%
66.66%
🟰 ±0%
40%
🟰 ±0%
55.88%
🟰 ±0%
111, 131-231, 245-249, 262, 272-276
src/backend/core/http/decorators.ts 88.63%
🟰 ±0%
64.28%
🟰 ±0%
100%
🟰 ±0%
88.37%
🟰 ±0%
25-30, 33-35
src/backend/core/http/expressAugmentation.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/backend/core/http/types.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/backend/core/http/middleware/antiCsrf.js 100%
🟰 ±0%
91.66%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/backend/core/http/middleware/authProbe.ts 96.05%
⬆️ +0.05%
88.73%
⬆️ +0.68%
100%
🟰 ±0%
98.59%
⬆️ +0.02%
204, 210, 216
src/backend/core/http/middleware/captcha.js 90.24%
🟰 ±0%
88.88%
🟰 ±0%
100%
🟰 ±0%
96.96%
🟰 ±0%
57, 58, 66, 131
src/backend/core/http/middleware/gates.ts 89.18%
🟰 ±0%
87.8%
⬇️ -1.94%
94.11%
🟰 ±0%
89.18%
🟰 ±0%
127-142
src/backend/core/http/middleware/privateAppGate.ts 89.5%
⬆️ +0.22%
79.89%
⬇️ -0.90%
100%
🟰 ±0%
90.47%
⬆️ +0.23%
60, 72, 89, 98-101, 189-196, 268-275, 282-291, 302, 314-316, 322, 334
src/backend/core/http/middleware/puterSite.ts 75.58%
🟰 ±0%
76.19%
🟰 ±0%
81.81%
🟰 ±0%
75.15%
🟰 ±0%
184-185, 228-351, 394-416, 451-454, 463-464, 483, 549-550, 559-572, 627, 628
src/backend/core/http/middleware/puterSiteConfig.ts 80%
🟰 ±0%
78.4%
🟰 ±0%
87.5%
🟰 ±0%
86.81%
🟰 ±0%
164, 176, 201-205, 212-216, 223-227, 230, 236-240, 292, 298, 312, 324, 327, 343, 350, 376-377, 384
src/backend/core/http/middleware/rateLimit.js 81.05%
🟰 ±0%
76.78%
🟰 ±0%
70.27%
🟰 ±0%
81.25%
🟰 ±0%
61-64, 78-79, 133-151, 184, 216-245, 308-309, 329, 490-491, 510-514, 597, 639-647
src/backend/core/http/middleware/userProtected.ts 88.23%
⬇️ -5.31%
78%
⬇️ -10.63%
87.5%
⬇️ -12.50%
89.23%
⬇️ -5.68%
100-113, 136, 139-141, 199-201, 232
src/backend/drivers/meta.ts 92.94%
🟰 ±0%
93.27%
🟰 ±0%
100%
🟰 ±0%
93.75%
🟰 ±0%
32, 54, 71, 79, 89, 136
src/backend/drivers/ai-chat/ChatCompletionDriver.ts 77.4%
🟰 ±0%
69.28%
🟰 ±0%
93.33%
🟰 ±0%
79.04%
🟰 ±0%
96, 135-138, 142-145, 148-151, 154-157, 164-167, 179-182, 233, 247, 254, 256, 286, 300, 333-335, 416-420, 448-477, 537-543, 625, 649, 655, 662, 787-795, 800-822, 834-837, 842-845, 850-853, 866-869, 875-881, 887-893, 898-901, 918-924, 954, 959-984, 994-1003, 1012-1022, 1041
src/backend/drivers/ai-chat/providers/alibaba/models.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/backend/drivers/ai-chat/providers/moonshot/models.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/backend/drivers/ai-ocr/OCRDriver.ts 90.62%
🟰 ±0%
71.92%
🟰 ±0%
93.75%
🟰 ±0%
92.37%
🟰 ±0%
60-63, 71-73, 93-95, 100-102, 111-112, 159-162, 234, 244
src/backend/drivers/ai-tts/TTSDriver.ts 87.61%
🟰 ±0%
85.71%
🟰 ±0%
100%
🟰 ±0%
90.72%
🟰 ±0%
120, 178-180, 215-218, 239-242, 265-268, 291-294, 314-317, 324, 327-329
src/backend/drivers/apps/AppDriver.js 61.26%
🟰 ±0%
53.8%
🟰 ±0%
77.55%
🟰 ±0%
64.92%
🟰 ±0%
65-74, 150, 166-168, 265, 271-277, 336-353, 425, 597-599, 606, 608-609, 633, 641, 643, 651, 665-666, 709, 717, 730, 735, 787, 820-839, 864, 869, 890, 896, 908-912, 933-946, 954, 959, 962, 975-999, 1007-1031, 1040-1046, 1051, 1055-1078, 1094-1107, 1111, 1115, 1123-1151, 1178-1250, 1257-1290
src/backend/drivers/notification/NotificationDriver.ts 91.37%
🟰 ±0%
81.81%
🟰 ±0%
100%
🟰 ±0%
92.85%
🟰 ±0%
135-142, 181-183, 202-204, 220
src/backend/drivers/subdomain/SubdomainDriver.ts 81.15%
🟰 ±0%
57.75%
🟰 ±0%
90.32%
🟰 ±0%
85%
🟰 ±0%
127-129, 198, 217-219, 232-234, 245, 272-323, 348-350, 378, 380, 393-395, 398-402, 438-440, 461, 472, 474, 486-487, 543, 553-554, 609, 612, 630, 661, 682, 708
src/backend/drivers/util/aiLimits.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/backend/drivers/workers/WorkerDriver.ts 28.94%
🟰 ±0%
18.55%
🟰 ±0%
28.57%
🟰 ±0%
30.4%
🟰 ±0%
60, 88, 94-101, 145-158, 161-257, 272-288, 310-311, 317, 321, 327-345, 360-430, 473-489, 524-793
src/backend/services/acl/ACLService.ts 37.75%
🟰 ±0%
37.14%
🟰 ±0%
30%
🟰 ±0%
40.65%
🟰 ±0%
110, 143, 163, 172-199, 205, 215, 240, 263-408
src/backend/services/appIcon/AppIconService.ts 49.54%
🟰 ±0%
29.57%
🟰 ±0%
75%
🟰 ±0%
53.76%
🟰 ±0%
59-61, 72, 84, 85, 102-113, 127, 132, 137, 144, 175-209, 223-225, 227-262, 265-292
src/backend/services/apps/AppPermissionService.ts 38.37%
🟰 ±0%
35.82%
🟰 ±0%
70%
🟰 ±0%
44.28%
🟰 ±0%
61-64, 80, 81, 84, 85, 87, 89, 92, 95, 113, 114, 131-242
src/backend/services/apps/SuggestedAppsService.ts 65.57%
🟰 ±0%
43.9%
🟰 ±0%
81.81%
🟰 ±0%
71.15%
🟰 ±0%
152, 154-159, 233-236, 262-263, 270-273, 286-294
src/backend/services/auth/AuthService.ts 82.35%
⬆️ +0.37%
72.05%
⬆️ +0.93%
90%
⬆️ +0.61%
85.33%
⬆️ +0.30%
76, 80, 130-132, 164, 297-299, 350-352, 382, 384, 560-562, 597-599, 609-611, 617-619, 633-635, 650, 668-670, 676-678, 691-693, 730-733, 792-805, 814, 816, 832, 841-846, 864, 876, 906-907, 910-912, 915-920, 926-927, 938, 950, 952, 958, 1046, 1113, 1271-1273, 1383, 1471-1473, 1539-1542, 1562, 1582-1586, 1589, 1592-1594, 1609, 1612, 1629-1665
src/backend/services/auth/OIDCService.ts 54.18%
🟰 ±0%
46.71%
🟰 ±0%
72.22%
🟰 ±0%
56.79%
🟰 ±0%
28-47, 49, 51-68, 71-83, 95, 108, 114, 124, 157-193, 207, 218, 233-236, 240, 243-246, 257-260, 268-271, 299, 302-306, 310-313, 327, 330-333, 358, 371, 381, 414-465
src/backend/services/auth/TokenService.ts 96.87%
🟰 ±0%
88.33%
🟰 ±0%
100%
🟰 ±0%
97.75%
🟰 ±0%
91, 100, 239-241
src/backend/services/auth/types.ts 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/backend/services/broadcast/BroadcastService.ts 82.41%
🟰 ±0%
78.47%
🟰 ±0%
85.71%
🟰 ±0%
83.78%
🟰 ±0%
115-124, 195, 199-203, 266-267, 276, 286, 297-301, 308, 318, 321, 353-355, 362-367, 377, 396, 424-427, 468-472, 475-479, 498-502, 506-510, 529, 542, 550, 565-569, 572-576, 587-590
src/backend/services/fs/FSService.ts 46.74%
🟰 ±0%
39.39%
🟰 ±0%
52.38%
🟰 ±0%
46.94%
🟰 ±0%
76-78, 155-168, 192, 200, 203, 260-262, 265-269, 275, 278, 286-288, 298-300, 312-314, 319-321, 354-374, 403, 419-424, 436-458, 463-467, 470-474, 520, 523, 533, 538-544, 560, 565-567, 577, 587, 599-628, 633-635, 679-683, 706-708, 712, 719, 746-752, 757-774, 779-784, 789-795, 812-973, 990, 1085-1508, 1544-1548, 1574-1576, 1613-1615, 1658-1661, 1696-1698, 1739-1741, 1762-1769, 1788-1790, 1796-1798, 1845-1847, 1853-1855, 1868-1871, 1878-1880, 1896-2112, 2129-2133, 2151-2153, 2161-2165, 2168-2169, 2186-2192, 2200-2232, 2241-2247, 2252-2268, 2284-2286, 2309-2311, 2320-2356, 2377, 2417-2419, 2423-2428, 2459-2538, 2547-2549, 2625-2627, 2631-2635, 2651-2686, 2702, 2722-2739, 2754-2756, 2759-2761, 2801-2814, 2834-2851, 2858-2860, 2886-2890, 2908-2910, 2912-2914, 2915, 2924-2926, 2970-2977, 3013-3017, 3026-3028, 3035-3037, 3099-3126, 3143-3154, 3158-3160, 3214, 3242-3246, 3249-3251, 3257-3259, 3270-3282, 3295, 3297, 3350-3352, 3359-3363, 3374-3386, 3396-3402, 3425, 3433-3459, 3475-3586, 3598-3600, 3642-3644
src/backend/services/homepage/PuterHomepageService.ts 69.56%
🟰 ±0%
59.37%
🟰 ±0%
63.63%
🟰 ±0%
72.3%
🟰 ±0%
86, 96-110, 130-139, 205, 251, 347-361, 371, 379-387
src/backend/services/metering/MeteringService.ts 89.11%
🟰 ±0%
86.55%
🟰 ±0%
87.5%
🟰 ±0%
89.4%
🟰 ±0%
78-79, 278-298, 439-457, 703, 825-827, 856, 863, 930-966
src/backend/services/notification/NotificationService.ts 15.68%
🟰 ±0%
0%
🟰 ±0%
16.66%
🟰 ±0%
18.18%
🟰 ±0%
11-24, 33-88, 121-150
src/backend/services/permission/PermissionService.ts 72.59%
🟰 ±0%
63.77%
🟰 ±0%
64.4%
🟰 ±0%
74.86%
🟰 ±0%
50-67, 127, 129-130, 140, 145, 156, 210-211, 290-304, 324, 337-343, 348, 381, 387-401, 413-422, 427, 431-440, 446-463, 467-485, 499, 513-521, 526, 534-535, 538, 557, 567, 572-573, 576, 612-614, 646-648, 675-677, 712-714, 716-718, 744-746, 769-771, 793-814, 818-820, 826-838, 846-863, 871-883, 902-935, 939-943
src/backend/services/permission/permissionUtil.ts 86%
🟰 ±0%
71.42%
🟰 ±0%
77.77%
🟰 ±0%
88.37%
🟰 ±0%
59, 62-65, 104-109, 134, 150
src/backend/services/socket/SocketService.ts 40.57%
🟰 ±0%
31.39%
🟰 ±0%
42.85%
🟰 ±0%
43.75%
🟰 ±0%
46-56, 72, 76-78, 88, 94-134, 139, 142-144, 147-181, 186, 188-212, 220, 227, 233, 259-273, 285
src/backend/stores/app/AppStore.js 58.4%
🟰 ±0%
40.19%
🟰 ±0%
68.47%
🟰 ±0%
59.31%
🟰 ±0%
155-157, 165, 184, 202-250, 273-274, 277-278, 288-290, 327, 334, 349, 388-390, 401, 454, 474, 487, 534-535, 549-550, 562, 579-587, 617, 634-636, 657, 718, 734, 738, 741, 746, 748, 752, 759, 764, 784, 790, 817, 819, 832, 851, 870, 923-931, 976-997, 1004, 1008-1027, 1041-1044, 1050-1335, 1365-1375, 1386-1387, 1392-1411, 1424
src/backend/stores/fs/FSEntryStore.ts 72.17%
🟰 ±0%
53.15%
🟰 ±0%
83.67%
🟰 ±0%
74%
🟰 ±0%
103, 108, 113, 117, 122, 129, 174-176, 182, 185, 193, 204, 270, 324, 339-349, 354, 373-374, 398, 412-415, 425, 434, 441, 462, 472, 514, 545, 582, 633-635, 643, 648, 655, 667-669, 672-676, 727-731, 734-738, 753-757, 760-764, 785-789, 795-799, 803-805, 850, 860-878, 881-885, 893, 905, 909, 920-926, 968, 970, 1022-1123, 1142-1146, 1152, 1165, 1191, 1233-1234, 1255-1256, 1307, 1336-1390, 1422, 1429-1432, 1455-1458, 1478-1482, 1485-1489, 1504-1508, 1519-1522, 1528-1530, 1555-1559, 1562-1566, 1583, 1593, 1600-1602, 1609-1613, 1618-1622, 1645-1649, 1696-1698, 1706-1710, 1713-1717, 1797, 1824-1826, 1839, 1847-1849, 1924, 1969-2074, 2084, 2102-2104, 2112-2114, 2124-2128, 2135, 2164, 2175-2218, 2225, 2337-2339, 2358-2389, 2415-2419, 2464-2466, 2473-2487, 2517, 2576, 2577, 2579-2582, 2584, 2586, 2587, 2588, 2589, 2590, 2591, 2596-2601, 2615-2617, 2637, 2653, 2710-2714, 2716, 2742-2758, 2763, 2801, 2809, 2827
src/backend/stores/group/GroupStore.ts 47.82%
🟰 ±0%
35.71%
🟰 ±0%
54.16%
🟰 ±0%
53.57%
🟰 ±0%
74-78, 95-142, 169-175, 188, 201, 216, 221, 222, 226, 230, 234
src/backend/stores/notification/NotificationStore.js 65.51%
🟰 ±0%
50%
🟰 ±0%
75%
🟰 ±0%
68.62%
🟰 ±0%
51, 68-90, 96, 129-135
src/backend/stores/oidc/OIDCStore.js 40%
🟰 ±0%
25%
🟰 ±0%
75%
🟰 ±0%
46.15%
🟰 ±0%
58-83
src/backend/stores/permission/PermissionStore.ts 65.68%
🟰 ±0%
52%
🟰 ±0%
62.5%
🟰 ±0%
72.66%
🟰 ±0%
108, 160, 244-247, 339-347, 379-389, 426, 436-505, 521-557, 577, 619, 627, 631, 632, 642, 731-751, 759, 761, 762, 766
src/backend/stores/session/SessionStore.js 77.82%
🟰 ±0%
73.36%
🟰 ±0%
68.88%
🟰 ±0%
79.89%
🟰 ±0%
91, 242, 306, 348-350, 400, 418-420, 457, 469-471, 503-536, 597, 603, 609, 661-662, 671, 678-695, 699, 713, 718, 791
src/backend/stores/share/ShareStore.js 0%
🟰 ±0%
0%
🟰 ±0%
0%
🟰 ±0%
0%
🟰 ±0%
37-105
src/backend/stores/subdomain/SubdomainStore.js 84.87%
🟰 ±0%
68.96%
🟰 ±0%
78.26%
🟰 ±0%
90.47%
🟰 ±0%
79, 100-102, 125-129, 149-160, 164, 169-172, 195, 232, 257-260, 325, 343, 345, 354, 360, 363
src/backend/stores/systemKv/SystemKVStore.ts 96.64%
🟰 ±0%
82.1%
🟰 ±0%
100%
🟰 ±0%
98.76%
🟰 ±0%
126, 128, 160, 165, 172, 173, 211, 469-470, 734, 912, 932
src/backend/stores/user/UserStore.ts 75%
🟰 ±0%
73.72%
🟰 ±0%
83.87%
🟰 ±0%
77.37%
🟰 ±0%
8, 22-26, 79-82, 85-101, 114, 115, 122, 139, 206, 208, 220, 232-245, 293, 298, 313, 330, 332-334, 337, 339, 341, 345
Generated in workflow #251 for commit f6a9386 by the Vitest Coverage Report Action

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates auth/session flows to preserve temporary accounts across forced re-login and migrates hosted-asset cookies to v2 tokens (including a stable auth_id claim), while also standardizing comment section dividers per AGENTS.md.

Changes:

  • Add auth_id-based reauth enforcement and temp-user preservation logic during login/signup flows, including per-IP rate limiting for auth_id paths.
  • Introduce v2 hosted-asset cookie names and extend hosted-asset tokens to carry auth_id, plus verification hardening around revoked session binding.
  • Replace box-drawing section dividers with ASCII -- across many backend modules and document the convention in AGENTS.md.

Reviewed changes

Copilot reviewed 75 out of 75 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/gui/src/UI/UIWindowManageSessions.js Stop sending cookies on revoke-session; rely on bearer auth + anti-CSRF token.
src/backend/types.ts Comment divider style updates.
src/backend/stores/user/UserStore.ts Comment divider style updates.
src/backend/stores/systemKv/SystemKVStore.ts Comment divider style updates.
src/backend/stores/subdomain/SubdomainStore.js Comment divider style updates.
src/backend/stores/share/ShareStore.js Comment divider style updates.
src/backend/stores/session/SessionStore.js Comment divider style updates.
src/backend/stores/permission/PermissionStore.ts Comment divider style updates.
src/backend/stores/oidc/OIDCStore.js Comment divider style updates.
src/backend/stores/notification/NotificationStore.js Comment divider style updates.
src/backend/stores/group/GroupStore.ts Comment divider style updates.
src/backend/stores/fs/FSEntryStore.ts Comment divider style updates.
src/backend/stores/app/AppStore.js Comment divider style updates.
src/backend/services/socket/SocketService.ts Comment divider style updates.
src/backend/services/permission/permissionUtil.ts Comment divider style updates.
src/backend/services/permission/PermissionService.ts Comment divider style updates.
src/backend/services/notification/NotificationService.ts Comment divider style updates.
src/backend/services/metering/MeteringService.ts Comment divider style updates.
src/backend/services/homepage/PuterHomepageService.ts Comment divider style updates.
src/backend/services/fs/FSService.ts Comment divider style updates.
src/backend/services/broadcast/BroadcastService.ts Comment divider style updates.
src/backend/services/auth/types.ts Comment divider style updates.
src/backend/services/auth/TokenService.ts Add hosted-asset auth_id claim compression; comment divider style updates.
src/backend/services/auth/OIDCService.ts Comment divider style updates.
src/backend/services/auth/AuthService.ts Add v2 cookie names, mint/verify hosted-asset tokens with auth_id, and revoke-cascade checks; comment divider style updates.
src/backend/services/auth/AuthService.test.ts Update for async verify + add tests for v2 cookie/token behavior and revocation cascade.
src/backend/services/apps/SuggestedAppsService.ts Comment divider style updates.
src/backend/services/apps/AppPermissionService.ts Comment divider style updates.
src/backend/services/appIcon/AppIconService.ts Comment divider style updates.
src/backend/services/acl/ACLService.ts Comment divider style updates.
src/backend/server.ts Comment divider style updates.
src/backend/extensions.ts Comment divider style updates.
src/backend/drivers/workers/WorkerDriver.ts Comment divider style updates.
src/backend/drivers/util/aiLimits.ts Comment divider style updates.
src/backend/drivers/subdomain/SubdomainDriver.ts Comment divider style updates.
src/backend/drivers/notification/NotificationDriver.ts Comment divider style updates.
src/backend/drivers/meta.ts Comment divider style updates.
src/backend/drivers/apps/AppDriver.js Comment divider style updates.
src/backend/drivers/ai-tts/TTSDriver.ts Comment divider style updates.
src/backend/drivers/ai-ocr/OCRDriver.ts Comment divider style updates.
src/backend/drivers/ai-chat/providers/moonshot/models.ts Comment divider style updates.
src/backend/drivers/ai-chat/providers/alibaba/models.ts Comment divider style updates.
src/backend/drivers/ai-chat/ChatCompletionDriver.ts Comment divider style updates.
src/backend/core/http/types.ts Comment divider style updates.
src/backend/core/http/PuterRouter.ts Comment divider style updates.
src/backend/core/http/middleware/userProtected.ts Add createWebSessionActorGate for session-management routes; comment divider style updates.
src/backend/core/http/middleware/rateLimit.js Comment divider style updates.
src/backend/core/http/middleware/puterSiteConfig.ts Comment divider style updates.
src/backend/core/http/middleware/puterSite.ts Write v2 hosted-asset cookies (private + public) instead of legacy names.
src/backend/core/http/middleware/privateAppGate.ts Read v2 cookie names first + async public-token verify; legacy fallback behavior.
src/backend/core/http/middleware/captcha.js Comment divider style updates.
src/backend/core/http/middleware/antiCsrf.js Comment divider style updates.
src/backend/core/http/decorators.ts Comment divider style updates.
src/backend/core/context.ts Comment divider style updates.
src/backend/controllers/webdav/WebDAVController.ts Comment divider style updates.
src/backend/controllers/webdav/locks.ts Comment divider style updates.
src/backend/controllers/system/SystemController.js Comment divider style updates.
src/backend/controllers/static/StaticPagesController.ts Comment divider style updates.
src/backend/controllers/share/ShareController.ts Comment divider style updates (commented-out routes section).
src/backend/controllers/puterai/PuterAIController.ts Comment divider style updates.
src/backend/controllers/oidc/OIDCController.ts Comment divider style updates.
src/backend/controllers/hosting/HostingController.js Comment divider style updates.
src/backend/controllers/homepage/HomepageController.ts Comment divider style updates.
src/backend/controllers/fs/legacyFsHelpers.ts Comment divider style updates.
src/backend/controllers/fs/LegacyFSController.ts Comment divider style updates.
src/backend/controllers/fs/FSController.ts Comment divider style updates.
src/backend/controllers/drivers/DriverController.ts Comment divider style updates.
src/backend/controllers/desktop/DesktopController.js Comment divider style updates.
src/backend/controllers/auth/AuthController.ts Add auth_id preservation/reauth logic + session-management gate change + rate limiting; comment divider style updates.
src/backend/controllers/auth/AuthController.test.ts Add tests for auth_id preservation and rate limiting behavior.
src/backend/controllers/apps/AppController.js Comment divider style updates.
src/backend/clients/email/EmailClient.ts Comment divider style updates.
src/backend/clients/alarm/AlarmClient.ts Comment divider style updates.
extensions/thumbnails.ts Comment divider style updates.
AGENTS.md Document “no tickets in comments” and ASCII-only divider guidance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/backend/core/http/middleware/privateAppGate.ts Outdated
Comment thread src/backend/controllers/auth/AuthController.ts Outdated
Comment thread src/backend/controllers/auth/AuthController.ts
@Salazareo Salazareo force-pushed the DS/put-1016-put-1020 branch from a3a1df0 to f6a9386 Compare May 27, 2026 06:34
@Salazareo Salazareo merged commit b188942 into main May 27, 2026
2 checks passed
@Salazareo Salazareo deleted the DS/put-1016-put-1020 branch May 27, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants