Matheus Oliveira
60b8fd2037
fix(s3): honor bucket-policy grants on presigned POST uploads ( #4278 )
...
A presigned POST was authorized against the signing principal's identity
policies alone, so a same-account caller that only the bucket policy named was
denied. The IAM filter now resolves the applicable resource policies on that
path too, letting either policy provide the grant while an explicit deny in
either still wins and cross-account access still requires both.
That resolution now also carries the global condition keys
(aws:PrincipalAccount, aws:ResourceAccount, aws:RequestedRegion) filter()
already supplies for every other enforcement path, instead of only
aws:PrincipalArn, so a conditional bucket-policy statement is judged
consistently between the two enforcement paths.
Per-action, header-derived keys (s3:RequestObjectTag/* from x-amz-tagging)
are deliberately not resolved here: a presigned POST's outer HTTP headers are
not covered by its signed policy document and do not correspond to any tag
S3Controller actually applies to the object, so trusting one would let a
caller satisfy a tag-scoped grant condition without the object ever carrying
that tag.
Closes #4243
Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com >
2026-09-26 16:32:47 -05:00
..
2026-09-06 10:55:17 -04:00
2026-09-06 15:49:12 -05:00
2026-09-09 22:03:21 -04:00
2026-09-09 22:23:07 -04:00
2026-09-23 17:08:11 -04:00
2026-09-19 07:15:28 -04:00
2026-09-11 17:55:48 -04:00
2026-08-30 14:40:40 -05:00
2026-09-25 11:13:45 -04:00
2026-09-17 10:54:20 -04:00
2026-09-12 18:37:36 -05:00
2026-09-25 18:43:33 -04:00
2026-09-24 07:04:27 -04:00
2026-05-15 22:55:11 -05:00
2026-09-12 11:31:20 -04:00
2026-09-15 07:44:22 -04:00
2026-09-05 15:17:39 -04:00
2026-09-11 20:36:45 -04:00
2026-09-06 23:54:37 -04:00
2026-09-24 08:20:17 -04:00
2026-09-06 15:28:43 -05:00
2026-09-26 16:23:44 -05:00
2026-09-23 13:59:53 -04:00
2026-08-17 00:00:49 -05:00
2026-09-25 11:11:28 -04:00
2026-09-08 19:38:13 -05:00
2026-09-17 13:53:35 -04:00
2026-09-23 00:08:45 -04:00
2026-09-25 07:40:58 -05:00
2026-05-10 11:53:31 -05:00
2026-05-10 11:53:31 -05:00
2026-08-30 14:44:08 -05:00
2026-09-24 17:37:36 -05:00
2026-09-26 16:10:19 -05:00
2026-09-04 12:16:18 -04:00
2026-08-30 14:44:12 -05:00
2026-09-15 14:48:11 -04:00
2026-08-30 15:15:49 -04:00
2026-09-07 21:49:39 -05:00
2026-09-05 20:19:56 -04:00
2026-05-15 22:55:11 -05:00
2026-09-11 22:30:02 -04:00
2026-09-07 18:31:48 -04:00
2026-09-24 15:08:34 -04:00
2026-09-21 19:45:01 -04:00
2026-08-28 17:55:30 -04:00
2026-09-26 16:24:03 -05:00
2026-09-24 21:10:55 -04:00
2026-09-24 15:38:19 -04:00
2026-09-25 11:11:28 -04:00
2026-09-01 10:00:34 -04:00
2026-09-25 11:01:57 -04:00
2026-06-25 19:16:51 -05:00
2026-09-22 22:26:15 -04:00
2026-08-31 19:05:07 -04:00
2026-09-23 00:39:31 -05:00
2026-08-20 00:08:21 -04:00
2026-07-06 21:02:04 -05:00
2026-09-20 11:36:26 -04:00
2026-09-13 00:09:47 -04:00
2026-08-21 00:09:04 -04:00
2026-09-11 16:53:22 -04:00
2026-09-25 23:14:51 -04:00
2026-09-05 12:29:30 -04:00
2026-09-25 17:39:15 -05:00
2026-09-10 16:34:41 -04:00
2026-09-25 07:40:58 -05:00
2026-09-07 22:54:52 -05:00
2026-09-25 22:27:02 -04:00
2026-09-23 14:05:10 -04:00
2026-09-22 16:16:34 -04:00
2026-09-26 16:23:53 -05:00
2026-09-04 09:14:52 -04:00
2026-08-10 23:10:48 -05:00
2026-09-26 01:08:45 -05:00
2026-07-10 20:43:42 -05:00
2026-09-15 22:27:31 -05:00
2026-09-09 22:22:26 -05:00
2026-09-13 00:16:50 -04:00
2026-07-06 21:02:04 -05:00
2026-08-26 23:17:03 -04:00
2026-09-12 11:11:23 -05:00
2026-09-04 09:45:29 -04:00
2026-08-27 09:23:52 -04:00
2026-09-12 08:59:21 -04:00
2026-08-15 18:31:50 -04:00
2026-08-28 08:55:50 -04:00
2026-09-26 01:08:45 -05:00
2026-05-13 01:34:19 -05:00
2026-09-08 22:30:08 -05:00
2026-09-22 15:01:41 -04:00
2026-09-26 01:34:59 -05:00
2026-09-13 20:08:25 -04:00
2026-09-23 10:13:24 -04:00
2026-09-26 01:08:45 -05:00
2026-08-30 14:44:12 -05:00
2026-08-25 21:05:52 -05:00
2026-05-21 18:20:50 -05:00
2026-09-19 10:20:53 -04:00
2026-09-23 11:20:50 -04:00
2026-08-01 15:28:54 -05:00
2026-09-26 16:32:47 -05:00
2026-08-15 12:48:27 -04:00
2026-08-19 23:17:36 -05:00
2026-09-20 17:56:43 -04:00
2026-09-21 15:14:53 -04:00
2026-09-16 15:13:57 -04:00
2026-09-08 19:40:01 -05:00
2026-08-26 23:04:29 -04:00
2026-09-05 13:52:22 -04:00
2026-09-24 22:54:36 -04:00
2026-09-26 13:59:29 -04:00
2026-09-14 15:57:18 -04:00
2026-09-23 12:00:12 -04:00
2026-09-10 16:34:41 -04:00
2026-09-10 16:34:41 -04:00
2026-09-10 16:34:41 -04:00
2026-09-25 17:22:31 -05:00
2026-09-25 20:29:14 -04:00
2026-08-14 11:16:21 -04:00
2026-09-21 14:11:16 -04:00
2026-09-18 09:09:51 -04:00
2026-05-21 18:20:09 -05:00
2026-09-07 08:54:03 -04:00
2026-09-01 14:47:33 -04:00
2026-09-17 09:16:20 -04:00
2026-09-22 08:07:29 -04:00