Chris Lu
1ea6b0c0d9
cleanup: deduplicate environment variable credential loading
...
Previously, `weed mini` logic duplicated the credential loading process
by creating a temporary IAM config file from environment variables.
`auth_credentials.go` also had fallback logic to load these variables.
This change:
1. Updates `auth_credentials.go` to *always* check for and merge
AWS environment variable credentials (`AWS_ACCESS_KEY_ID`, etc.)
into the identity list. This ensures they are available regardless
of whether other configurations (static file or filer) are loaded.
2. Removes the redundant file creation logic from `weed/command/mini.go`.
3. Updates `weed mini` user messages to accurately reflect that
credentials are loaded from environment variables in-memory.
This results in a cleaner implementation where `weed/s3api` manages
all credential loading logic, and `weed mini` simply relies on it.
2026-01-08 20:35:37 -08:00
..
2025-12-13 14:33:46 -08:00
2026-01-07 13:06:08 -08:00
2025-12-24 10:29:30 -08:00
2026-01-07 13:06:08 -08:00
2025-12-13 19:04:12 -08:00
2026-01-07 13:06:08 -08:00
2026-01-04 11:24:43 -08:00
2024-07-04 11:00:41 -07:00
2026-01-08 19:29:54 -08:00
2025-11-12 22:14:50 -08:00
2026-01-08 20:35:37 -08:00
2026-01-03 22:08:34 -08:00
2025-11-26 12:24:02 -08:00
2025-12-29 20:17:23 -08:00
2026-01-08 19:29:54 -08:00
2025-10-30 21:06:00 -07:00
2026-01-08 19:29:54 -08:00
2026-01-07 13:01:26 -08:00
2026-01-03 10:09:59 -08:00
2025-12-14 18:48:39 -08:00
2026-01-07 13:06:08 -08:00
2025-12-16 12:41:04 -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
2025-11-18 23:18:35 -08:00
2026-01-07 13:06:08 -08:00
2025-12-18 17:44:27 -08:00
2026-01-07 13:06:08 -08:00
2025-11-18 23:18:35 -08:00
2025-12-22 23:19:50 -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-27 12:25:33 -08:00
2026-01-05 15:55:24 -08:00
2025-08-22 01:15:42 -07:00
2026-01-07 13:06:08 -08:00
2025-11-13 16:10:46 -08:00
2026-01-08 17:06:56 -08:00
2025-08-30 11:15:48 -07:00
2025-12-23 14:48:50 -08:00
2026-01-05 15:55:24 -08:00
2025-11-13 16:10:46 -08:00
2025-12-26 13:21:15 -08:00
2026-01-05 15:55:24 -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
2026-01-05 15:55:24 -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-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
2025-12-13 14:33:46 -08:00
2025-10-29 13:43:27 -07:00
2026-01-07 13:06:08 -08:00
2025-12-17 00:09:13 -08:00
2025-12-28 14:07:58 -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
2026-01-07 13:06:08 -08:00
2026-01-07 13:06:08 -08:00
2025-12-24 19:07:08 -08: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-29 20:17:23 -08:00
2025-12-29 20:17:23 -08:00
2026-01-07 13:06:08 -08:00
2025-07-13 16:21:36 -07:00
2026-01-07 13:06:08 -08:00
2025-11-18 23:18:35 -08:00
2025-12-27 00:09:14 -08:00
2026-01-07 13:06:08 -08:00
2025-12-24 19:07:08 -08:00
2025-11-28 13:28:17 -08:00
2025-12-02 09:24:31 -08:00
2025-12-27 00:09:14 -08:00
2025-12-24 19:07:08 -08:00
2025-07-19 00:49:56 -07:00
2026-01-02 15:52:37 -08:00
2025-12-22 15:50:13 -08:00
2025-12-30 14:54:37 -08:00
2026-01-02 15:52:37 -08:00
2025-12-26 13:21:15 -08:00
2025-12-24 19:07:08 -08:00
2025-12-24 19:07:08 -08:00
2025-11-21 14:48:41 -08:00
2026-01-04 11:24:43 -08:00
2025-07-19 00:49:56 -07:00
2025-12-24 19:07:08 -08:00
2025-11-26 11:29:55 -08:00
2026-01-08 10:00:22 -08: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
2025-12-06 21:37:25 -08:00
2026-01-08 14:02:19 -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
2025-12-18 21:19:44 -08:00
2026-01-07 13:06:08 -08:00
2025-12-30 16:34:05 -08:00
2025-12-30 16:34:05 -08:00
2025-12-28 14:07:58 -08:00
2025-12-28 14:07:58 -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-01-07 13:06:08 -08:00
2025-12-29 20:17:23 -08:00
2026-01-07 13:06:08 -08:00
2026-01-07 13:06:08 -08:00
2025-12-24 19:07:08 -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
2025-07-28 02:49:43 -07:00
2025-07-28 02:49:43 -07:00