Chris Lu
efbed39e25
S3: map canned ACL to file permissions and add configurable default file mode ( #8886 )
...
* S3: map canned ACL to file permissions and add configurable default file mode
S3 uploads were hardcoded to 0660 regardless of ACL headers. Now the
X-Amz-Acl header maps to Unix file permissions per-object:
- public-read, authenticated-read, bucket-owner-read → 0644
- public-read-write → 0666
- private, bucket-owner-full-control → 0660
Also adds -defaultFileMode / -s3.defaultFileMode flag to set a
server-wide default when no ACL header is present.
Closes #8874
* Address review feedback for S3 file mode feature
- Extract hardcoded 0660 to defaultFileMode constant
- Change parseDefaultFileMode to return error instead of calling Fatalf
- Add -s3.defaultFileMode flag to filer.go and mini.go (was missing)
- Add doc comment to S3Options about updating all four flag sites
- Add TestResolveFileMode with 10 test cases covering ACL mapping,
server default, and priority ordering
2026-04-02 11:51:54 -07:00
..
2026-01-28 14:34:07 -08:00
2026-03-24 17:08:22 -07:00
2026-01-07 13:06:08 -08:00
2026-03-27 23:15:01 -07:00
2026-03-24 13:35:28 -07:00
2026-03-07 09:19:40 -08:00
2026-01-07 13:06:08 -08:00
2026-03-27 19:22:26 -07:00
2026-03-28 13:50:33 -07:00
2026-03-16 12:33:32 -07:00
2024-07-04 11:00:41 -07:00
2026-02-20 18:40:47 -08:00
2026-03-23 19:33:20 -07:00
2026-03-16 12:58:26 -07:00
2026-01-12 10:45:24 -08:00
2026-03-19 18:10:20 -07:00
2026-02-26 16:36:24 -08:00
2026-02-26 16:36:24 -08:00
2025-11-26 12:24:02 -08:00
2026-02-03 11:55:12 -08:00
2026-02-16 13:59:13 -08:00
2026-02-27 13:41:45 -08:00
2026-02-27 13:41:45 -08:00
2026-02-16 13:59:13 -08:00
2026-01-03 10:09:59 -08:00
2026-03-30 09:43:33 -07:00
2026-01-07 13:06:08 -08:00
2026-02-26 16:36:24 -08:00
2026-02-26 16:36:24 -08:00
2025-12-20 15:25:47 -08:00
2025-08-11 10:31:01 -07:00
2025-12-29 20:17:23 -08:00
2025-12-04 14:51:37 -08:00
2026-03-07 11:10:02 -08:00
2025-11-18 23:18:35 -08:00
2026-03-27 19:22:26 -07:00
2026-03-27 19:22:26 -07:00
2026-03-23 13:35:16 -07:00
2026-01-07 13:06:08 -08:00
2026-03-28 13:24:11 -07:00
2026-02-18 18:20:03 -08:00
2026-03-19 18:10:20 -07:00
2026-02-19 22:52:05 -08:00
2025-12-22 23:19:50 -08:00
2024-07-04 11:00:41 -07:00
2026-03-04 12:52:09 -08:00
2026-03-04 12:52:09 -08:00
2026-03-28 13:24:11 -07:00
2025-12-27 12:25:33 -08:00
2026-01-12 10:45:24 -08:00
2026-03-28 13:24:11 -07:00
2026-01-07 13:06:08 -08:00
2025-11-13 16:10:46 -08:00
2026-03-28 13:24:11 -07:00
2025-08-30 11:15:48 -07:00
2026-03-06 12:35:08 -08:00
2026-03-30 09:43:33 -07:00
2025-11-13 16:10:46 -08:00
2025-12-26 13:21:15 -08:00
2026-02-25 12:31:04 -08:00
2026-02-25 12:31:04 -08:00
2025-11-12 22:14:50 -08:00
2025-11-12 22:14:50 -08:00
2026-03-06 12:35:08 -08:00
2026-03-06 12:35:08 -08:00
2025-08-21 08:28:07 -07:00
2025-08-21 08:28:07 -07:00
2026-04-01 23:23:56 -07: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
2026-02-04 22:57:41 -08:00
2025-10-27 23:04:55 -07:00
2025-11-18 23:18:35 -08:00
2026-03-30 09:43:33 -07:00
2026-03-24 17:08:22 -07:00
2025-10-23 20:10:12 -07:00
2025-11-18 23:18:35 -08:00
2025-12-23 14:48:50 -08:00
2025-10-27 23:04:55 -07:00
2026-01-07 13:06:08 -08:00
2025-10-13 18:05:17 -07:00
2026-01-07 13:06:08 -08:00
2025-12-30 12:40:59 -08:00
2026-03-27 22:50:02 -07:00
2026-03-27 22:50:02 -07:00
2025-10-29 13:43:27 -07:00
2026-02-12 16:46:05 -08:00
2026-02-07 13:27:47 -08:00
2026-03-06 12:35:08 -08:00
2026-03-29 00:05:53 -07:00
2026-03-27 22:50:02 -07:00
2026-03-29 00:05:53 -07:00
2025-08-21 08:28:07 -07:00
2026-02-12 23:11:41 -08:00
2026-03-27 23:15:01 -07:00
2026-03-16 12:58:26 -07:00
2025-08-21 08:28:07 -07:00
2026-01-07 13:06:08 -08:00
2026-03-06 12:35:08 -08:00
2026-03-27 19:22:26 -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
2026-03-16 12:58:26 -07:00
2026-03-16 12:58:26 -07:00
2026-01-07 13:06:08 -08:00
2026-02-06 21:54:43 -08:00
2026-02-03 11:55:12 -08:00
2026-03-27 22:50:02 -07:00
2026-02-07 13:27:47 -08:00
2026-03-28 13:24:11 -07:00
2026-01-07 13:06:08 -08:00
2026-01-22 16:56:35 -08:00
2026-02-08 20:06:32 -08:00
2026-03-04 12:52:09 -08:00
2026-03-27 19:22:26 -07:00
2026-02-07 13:27:47 -08:00
2026-03-28 13:24:11 -07:00
2026-03-27 19:22:26 -07:00
2026-03-27 19:22:26 -07:00
2026-01-17 18:40:48 -08:00
2026-01-02 15:52:37 -08:00
2026-03-11 02:28:34 -07:00
2026-03-09 12:37:59 -07:00
2026-03-28 13:24:11 -07:00
2026-03-27 23:15:01 -07:00
2025-12-24 19:07:08 -08:00
2026-03-27 19:22:26 -07:00
2026-04-02 11:51:54 -07:00
2026-04-02 11:51:54 -07:00
2025-07-19 00:49:56 -07:00
2026-02-08 20:06:32 -08:00
2026-03-30 09:43:33 -07:00
2026-03-30 12:11:30 -07:00
2025-07-18 02:19:50 -07:00
2025-07-18 22:25:58 -07:00
2025-12-29 23:54:00 -08:00
2025-11-20 11:42:22 -08:00
2026-03-28 13:24:11 -07:00
2026-03-28 13:24:11 -07:00
2026-03-28 19:39:21 -07:00
2026-03-28 11:10:31 -07:00
2026-03-28 13:24:11 -07:00
2026-02-16 13:59:13 -08:00
2025-12-09 10:24:35 -08:00
2025-12-18 21:19:44 -08:00
2026-03-09 11:54:32 -07:00
2026-02-16 13:59:13 -08:00
2026-04-02 11:51:54 -07:00
2025-12-28 14:07:58 -08:00
2026-02-07 13:27:47 -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
2026-01-07 13:06:08 -08:00
2026-03-30 12:11:30 -07:00
2026-01-07 13:06:08 -08:00
2026-02-23 22:59:53 -08:00
2026-03-06 15:22:39 -08:00
2026-02-10 17:57:08 -08:00
2026-02-19 22:52:05 -08:00
2026-01-07 13:06:08 -08:00
2026-01-07 13:06:08 -08:00
2026-02-07 13:27:47 -08: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
2026-03-06 15:22:39 -08:00
2025-07-28 02:49:43 -07:00
2026-01-30 22:57:05 -08:00