Commit 2ba83b0
committed
Render the co-pilot Secret only when there is a credential to protect
The gate asked whether the chart could render a complete storage config, not
whether that config held anything secret. So S3 with authType=iam, GCS (whose
json key the chart hardcodes empty), and Azure without a key all got a Secret
and a projected volume on every task pod to protect a region and an endpoint.
Gate on the credential instead: S3 accesskey with a literal secretKey, Azure
with a key, or an operator-supplied Secret. Ambient auth stays on the command
line, where nothing sensitive travels.
configuration.inline.storage also qualifies, whatever it holds. The chart
cannot see whether an operator put a session token or a service-account key in
there, and config-secret.yaml merges it into the Secret, so the safe default is
the Secret. secretKeyPath is unchanged: it is credential-bearing but unreadable
at template time, so it stays on the command line.
Verified the Secret and the plugin key appear or vanish together for every
combination, since a mismatch strands task pods in ContainerCreating.
Signed-off-by: Kevin Su <pingsutw@apache.org>1 parent 8090f29 commit 2ba83b0
1 file changed
Lines changed: 19 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
210 | 215 | | |
211 | 216 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
216 | 225 | | |
217 | 226 | | |
| 227 | + | |
218 | 228 | | |
219 | 229 | | |
220 | 230 | | |
221 | | - | |
| 231 | + | |
222 | 232 | | |
223 | | - | |
| 233 | + | |
224 | 234 | | |
225 | | - | |
| 235 | + | |
226 | 236 | | |
227 | 237 | | |
228 | 238 | | |
| |||
0 commit comments