Commit 635d2ed
feat(cubestore): support AWS Web Identity Token File in S3RemoteFs
When CUBESTORE_AWS_ACCESS_KEY_ID is not set and AWS_WEB_IDENTITY_TOKEN_FILE
is present, the credential provider chain falls through to STS
AssumeRoleWithWebIdentity — reading the JWT from the token file and
exchanging it for temporary session credentials.
The refresh loop now polls the token file mtime every 30 seconds in web
identity mode (vs 3-hour default for static credentials). Credentials are
only re-exchanged when the file actually changes, keeping STS calls minimal.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 34a78f4 commit 635d2ed
1 file changed
Lines changed: 48 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
99 | 122 | | |
100 | 123 | | |
101 | 124 | | |
102 | 125 | | |
103 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
104 | 131 | | |
105 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
106 | 136 | | |
107 | 137 | | |
108 | 138 | | |
| |||
112 | 142 | | |
113 | 143 | | |
114 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
115 | 160 | | |
116 | 161 | | |
117 | 162 | | |
| |||
0 commit comments