Zach
b221632615
fix: wipe user secrets when user is soft-deleted ( #24985 )
...
Extend the delete_deleted_user_resources() trigger so that secrets
belonging to a soft-deleted user are removed in the same transaction as
the existing api_keys and user_links cleanup.
user_secrets.user_id has ON DELETE CASCADE, but Coder soft-deletes users
by flipping users.deleted rather than removing the row, so the foreign key
cascade never fires and secrets would otherwise survive deletion.
Assisted by Coder Agents.
2026-05-11 09:07:30 -06:00
..
2026-05-11 09:48:55 -04:00
2026-03-24 12:03:20 +02:00
2026-02-17 15:43:02 +01:00
2026-04-30 09:19:32 +01:00
2026-05-07 15:35:46 +01:00
2026-05-11 10:59:26 +02:00
2026-05-11 11:03:38 +02:00
2026-01-23 12:56:36 -05:00
2026-02-16 12:16:08 +11:00
2025-12-15 11:26:41 -06:00
2026-01-08 15:24:11 +04:00
2023-11-08 14:54:48 +00:00
2025-09-22 17:14:07 +04:00
2026-01-08 15:24:11 +04:00
2025-09-22 17:14:07 +04:00
2026-01-08 15:24:11 +04:00
2025-09-22 17:14:07 +04:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2026-03-11 09:45:00 -06:00
2026-03-11 09:45:00 -06:00
2024-03-17 09:45:26 -05:00
2024-03-15 11:24:38 -05:00
2025-12-03 11:32:59 +02:00
2025-04-04 14:04:20 -04:00
2026-02-13 08:19:07 -06:00
2024-11-13 13:44:21 -06:00
2026-02-19 09:02:19 +00:00
2026-01-08 15:24:11 +04:00
2025-01-20 17:24:22 +00:00
2025-01-20 17:24:22 +00:00
2025-10-02 11:43:13 -06:00
2026-01-08 15:24:11 +04:00
2025-12-03 11:32:59 +02:00
2025-12-03 11:32:59 +02:00
2024-03-17 09:45:26 -05:00
2026-05-11 08:41:17 -06:00
2026-01-08 15:24:11 +04:00
2024-03-17 09:45:26 -05:00
2024-03-15 11:24:38 -05:00
2026-01-23 12:56:36 -05:00
2026-05-11 09:07:30 -06:00
2026-01-08 15:24:11 +04:00
2025-10-02 11:43:13 -06:00
2026-04-15 07:59:37 +00:00
2026-02-23 08:30:32 -08:00
2026-02-24 19:51:48 -05:00
2024-09-27 14:06:16 -05:00
2025-08-12 11:37:44 -05:00
2024-09-27 14:06:16 -05:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00