Lunny Xiao
f9b7b65371
fix(security): enforce wiki git writes and LFS token access at request time ( #37695 )
...
This PR fixes two permission-checking gaps in Git and LFS request
handling.
## What it changes
- keep wiki Git HTTP pushes on the normal write-permission path, even
when proc-receive support is enabled
- revalidate LFS bearer token requests against the current user state
and current repository permissions before allowing access
- add regression coverage for unauthorized wiki HTTP pushes
- add LFS tests for blocked users, revoked repository access, read-only
upload attempts, and valid write access
## Why
- wiki repositories should not inherit the relaxed refs/for handling
used for normal code repositories
- LFS authorization tokens should not remain usable after a user is
disabled or loses repository access
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2026-05-15 08:12:59 +00:00
..
2026-05-13 07:30:22 +00:00
2026-05-07 16:19:45 +02:00
2026-04-26 20:18:28 +00:00
2026-04-08 01:17:05 +08:00
2026-05-07 16:19:45 +02:00
2026-04-26 20:18:28 +00:00
2025-03-28 21:04:40 -07:00
2026-05-07 16:19:45 +02:00
2026-03-29 09:21:14 +00:00
2026-05-07 16:19:45 +02:00
2026-05-07 16:19:45 +02:00
2025-01-20 07:43:49 +00:00
2026-03-26 00:37:48 +08:00
2026-03-31 21:50:45 +00:00
2026-05-07 16:19:45 +02:00
2026-04-12 10:17:25 +08:00
2025-06-22 12:43:43 +00:00
2026-02-10 03:29:28 +00:00
2025-08-27 16:31:21 +00:00
2025-10-21 15:07:11 +00:00
2026-03-31 21:50:45 +00:00
2026-03-31 21:50:45 +00:00
2025-06-22 12:43:43 +00:00
2025-03-31 01:53:48 -04:00
2026-05-15 08:12:59 +00:00
2025-02-16 22:13:17 -08:00
2026-04-26 20:18:28 +00:00
2026-04-26 20:18:28 +00:00
2026-03-29 09:21:14 +00:00
2025-06-07 11:25:08 +03:00
2025-06-07 11:25:08 +03:00
2026-04-30 22:38:05 +08:00
2025-04-21 00:43:43 +00:00
2026-04-30 22:38:05 +08:00
2026-04-30 22:38:05 +08:00
2025-02-17 11:28:37 -08:00
2026-03-04 21:23:17 +08:00
2025-06-25 07:22:58 +08:00
2026-04-26 20:18:28 +00:00
2022-11-27 18:20:29 +00:00
2026-04-26 20:18:28 +00:00
2026-05-04 20:13:38 +00:00
2026-04-26 20:18:28 +00:00
2026-04-26 20:18:28 +00:00
2023-09-28 01:38:53 +00:00
2026-03-07 12:37:37 -08:00
2026-01-09 04:37:16 +00:00
2026-04-29 18:32:46 +00:00
2026-02-27 12:38:44 +00:00
2026-04-30 22:38:05 +08:00
2026-04-26 20:18:28 +00:00
2024-12-24 13:47:45 +00:00
2026-04-30 22:38:05 +08:00
2026-05-04 20:13:38 +00:00
2026-05-04 20:13:38 +00:00
2026-01-24 05:11:49 +00:00
2026-04-29 18:32:46 +00:00
2026-05-05 15:54:07 +00:00
2025-03-28 21:04:40 -07:00
2026-04-26 20:18:28 +00:00
2026-04-26 20:18:28 +00:00
2026-04-28 00:34:17 +00:00
2026-04-26 20:18:28 +00:00
2026-03-08 14:35:50 +00:00
2026-04-27 17:33:10 +00:00
2024-02-27 08:12:22 +01:00
2026-04-19 17:57:51 +00:00
2025-12-04 19:47:23 +01:00
2025-11-05 17:48:38 +00:00
2026-04-28 00:34:17 +00:00
2025-07-31 09:34:51 +08:00
2026-05-13 17:06:53 +00:00
2026-03-01 05:33:08 +00:00
2026-04-28 00:34:17 +00:00
2022-11-27 18:20:29 +00:00
2026-04-26 20:18:28 +00:00
2026-04-27 17:33:10 +00:00
2025-01-31 02:36:18 +00:00
2025-09-01 11:12:58 -07:00
2026-04-29 18:32:46 +00:00