Commit fb0914d
feat: S3 credential resolution via APOS_S3_SECRET or AWS default chain (#256)
feat: S3 credential resolution via APOS_S3_SECRET or AWS default chain
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
Refactors S3 credential configuration in the uploadfs module by
introducing a centralized uploadfsOptions object populated from
environment variables. It sets HTTPS flag, CDN settings,
bucket/region/endpoint/style, and conditionally adds secret and key when
APOS_S3_SECRET is present. Credentials otherwise rely on the AWS default
credential chain via omission of inline keys for uploads.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Ihor Masechko <ihormasechko@Ihors-MacBook-Air.local>1 parent 97c04d9 commit fb0914d
1 file changed
Lines changed: 22 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
3 | 24 | | |
4 | 25 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
0 commit comments