Chris Lu
99a2e79efc
fix: authenticate before parsing form in IAM API ( #7803 )
...
fix: authenticate before parsing form in IAM API (#7802 )
The AuthIam middleware was calling ParseForm() before AuthSignatureOnly(),
which consumed the request body before signature verification could hash it.
For IAM requests (service != 's3'), the signature verification needs to hash
the request body. When ParseForm() was called first, the body was already
consumed, resulting in an empty body hash and SignatureDoesNotMatch error.
The fix moves authentication before form parsing. The streamHashRequestBody
function preserves the body after reading, so ParseForm() works correctly
after authentication.
Fixes #7802
2025-12-17 01:06:43 -08:00
..
2025-12-13 14:33:46 -08:00
2024-10-03 09:03:17 -07:00
2025-12-09 09:48:13 -08:00
2025-12-14 11:18:23 -08:00
2025-12-13 19:04:12 -08:00
2025-02-01 14:11:57 -08:00
2025-11-26 12:07:54 -08:00
2024-07-04 11:00:41 -07:00
2025-12-16 12:41:04 -08:00
2025-11-12 22:14:50 -08:00
2025-12-14 18:48:39 -08:00
2025-11-26 12:24:02 -08:00
2025-11-27 22:44:35 -08:00
2025-10-30 21:06:00 -07:00
2025-12-04 14:51:37 -08:00
2025-12-14 18:48:39 -08:00
2023-09-25 08:34:12 -07:00
2025-12-16 12:41:04 -08:00
2025-12-15 19:23:25 -08:00
2025-08-11 10:31:01 -07:00
2025-12-04 14:51:37 -08:00
2025-12-04 14:51:37 -08:00
2025-11-18 23:18:35 -08:00
2025-12-14 11:18:23 -08:00
2025-12-14 11:18:23 -08:00
2025-05-22 09:46:49 -07:00
2025-11-18 23:18:35 -08:00
2025-12-13 13:41:25 -08:00
2025-11-18 23:18:35 -08:00
2025-11-18 23:18:35 -08:00
2024-07-04 11:00:41 -07:00
2025-11-13 16:10:46 -08:00
2025-12-13 14:33:46 -08:00
2025-12-12 13:37:31 -08:00
2025-08-22 01:15:42 -07:00
2025-12-09 09:48:13 -08:00
2025-11-13 16:10:46 -08:00
2025-11-18 23:18:35 -08:00
2025-08-30 11:15:48 -07:00
2025-11-13 16:10:46 -08:00
2025-11-12 22:14:50 -08:00
2025-11-13 16:10:46 -08:00
2025-11-21 14:46:32 -08:00
2025-11-13 16:10:46 -08:00
2025-11-18 23:18:35 -08:00
2025-11-12 22:14:50 -08:00
2025-11-12 22:14:50 -08:00
2025-11-12 22:14:50 -08:00
2025-11-12 22:14:50 -08:00
2025-08-21 08:28:07 -07:00
2025-10-23 20:10:12 -07:00
2025-08-21 08:28:07 -07:00
2025-11-18 23:18:35 -08:00
2025-10-23 20:10:12 -07:00
2025-11-18 23:18:35 -08:00
2025-08-22 01:15:42 -07:00
2025-08-21 08:28:07 -07:00
2025-08-21 08:28:07 -07:00
2025-08-22 01:15:42 -07:00
2025-11-18 23:18:35 -08:00
2025-08-21 08:28:07 -07:00
2025-10-23 20:10:12 -07:00
2025-10-08 23:12:03 -07:00
2025-10-27 23:04:55 -07:00
2025-11-18 23:18:35 -08:00
2025-11-28 13:28:17 -08:00
2025-11-28 13:28:17 -08:00
2025-10-23 20:10:12 -07:00
2025-11-18 23:18:35 -08:00
2025-08-30 11:15:48 -07:00
2025-10-27 23:04:55 -07:00
2023-09-25 08:34:12 -07:00
2025-10-13 18:05:17 -07:00
2023-09-25 08:34:12 -07:00
2025-12-04 14:51:37 -08:00
2025-12-13 14:33:46 -08:00
2025-10-29 13:43:27 -07:00
2025-11-20 11:42:22 -08:00
2025-12-17 00:09:13 -08:00
2025-12-17 00:09:13 -08:00
2025-08-21 08:28:07 -07:00
2025-11-18 23:18:35 -08:00
2025-12-09 09:48:13 -08:00
2025-11-18 23:18:35 -08:00
2025-08-21 08:28:07 -07:00
2022-07-29 00:17:28 -07:00
2025-11-26 15:51:38 -08:00
2025-10-29 12:27:25 -07:00
2025-08-22 01:15:42 -07:00
2025-08-21 08:28:07 -07:00
2025-10-24 01:45:22 -07:00
2025-12-17 01:06:43 -08:00
2025-12-17 01:06:43 -08:00
2025-11-25 09:56:20 -08:00
2025-07-13 16:21:36 -07:00
2025-11-26 11:29:55 -08:00
2025-11-18 23:18:35 -08:00
2025-11-25 09:56:20 -08:00
2025-11-10 20:30:21 -08:00
2025-11-28 13:28:17 -08:00
2025-12-02 09:24:31 -08:00
2025-12-14 21:56:07 -08:00
2025-12-06 21:37:25 -08:00
2025-07-19 00:49:56 -07:00
2025-07-28 02:39:41 -07:00
2025-12-12 23:21:51 -08:00
2025-11-26 11:29:55 -08:00
2025-12-10 23:42:58 -08:00
2025-12-10 23:42:58 -08:00
2025-11-21 14:48:41 -08:00
2025-12-15 12:43:33 -08:00
2025-07-19 00:49:56 -07:00
2024-04-29 05:33:56 -07:00
2025-11-26 11:29:55 -08:00
2025-12-16 12:41:04 -08:00
2025-07-18 02:19:50 -07:00
2025-07-18 22:25:58 -07:00
2025-11-20 11:42:22 -08:00
2025-12-06 21:37:25 -08:00
2025-12-16 09:53:29 -08:00
2024-04-27 07:39:22 -07:00
2025-11-18 23:18:35 -08:00
2025-07-02 18:03:17 -07:00
2025-12-09 10:24:35 -08:00
2022-07-29 00:17:28 -07:00
2025-12-16 12:41:04 -08:00
2025-11-18 23:18:35 -08:00
2025-11-18 23:18:35 -08:00
2025-11-18 23:18:35 -08:00
2022-07-29 00:17:28 -07:00
2025-12-02 09:24:31 -08:00
2022-07-29 00:17:28 -07:00
2024-07-04 11:00:41 -07:00
2025-08-14 20:38:03 -07:00
2025-09-17 19:04:51 -07:00
2025-07-28 02:49:43 -07:00
2025-07-28 02:49:43 -07:00