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
..
2025-01-20 17:25:31 +00:00
2026-05-06 16:43:35 +02:00
2026-05-08 16:45:14 -04:00
2026-04-17 00:07:30 +10:00
2026-05-01 13:29:33 +01:00
2026-05-08 16:45:14 -04:00
2026-05-08 16:45:14 -04:00
2026-05-05 22:37:13 +02:00
2026-01-08 15:24:11 +04:00
2026-01-08 15:24:11 +04:00
2025-01-16 17:34:53 +02:00
2026-03-05 11:58:10 +00:00
2026-03-17 12:46:24 -04:00
2026-05-11 09:07:30 -06:00
2024-07-11 11:26:47 -05:00
2026-04-17 22:58:33 -04:00
2026-05-11 09:07:30 -06:00
2026-02-03 17:52:07 +00:00
2026-05-08 16:45:14 -04:00
2024-08-26 15:04:04 +00:00
2026-05-10 11:04:55 -04:00
2026-04-30 10:27:53 -07:00
2026-04-30 10:27:53 -07:00
2026-05-11 09:07:30 -06:00
2025-08-07 11:00:31 +10:00
2026-04-22 19:34:34 +10:00
2026-03-05 22:32:18 +02:00
2026-02-06 09:52:17 -07:00
2025-12-09 08:13:09 -08:00
2026-04-20 13:19:59 +03:00
2026-04-13 15:06:06 +02:00
2026-05-06 16:43:35 +02:00
2026-05-08 16:45:14 -04:00
2025-05-22 19:48:23 +10:00
2025-07-09 09:46:31 +02:00
2025-03-26 01:56:39 -05:00
2026-05-11 09:07:30 -06:00
2026-05-11 09:07:30 -06:00
2026-05-11 09:07:30 -06:00
2026-04-07 12:05:29 +01:00
2024-10-25 12:14:15 -04:00
2024-10-25 12:14:15 -04:00
2025-12-15 08:42:08 -08:00
2026-05-08 16:45:14 -04:00