Commit ac32931
committed
Wire OIDC + iceberg env vars on k8s-integration-tests job
Three additions to the k8s-integration-tests job, all of which start
working the moment cloud-infra PR #8124 applies:
1. permissions: id-token: write — lets the job mint an OIDC token
against GitHub's IdP. Falls back to the existing top-level
contents: read since per-job permissions override.
2. New "Configure AWS credentials via OIDC" step. Trades the OIDC
token for STS credentials via aws-actions/configure-aws-credentials,
assuming the new github-duckgres-iceberg-test-role in mw-dev (role
trust policy: repo:PostHog/duckgres:*, scoped IAM policy on the
two test buckets only). Action pinned to the same commit SHA
cloud-infra workflows use.
3. Three iceberg env vars hardcoded in the job's env block — the
bucket ARN, region, and data bucket name. AWS_ACCESS_KEY_ID /
AWS_SECRET_ACCESS_KEY / AWS_SESSION_TOKEN are populated by
configure-aws-credentials, picked up by iceberg_test.go via
os.Getenv. Hardcoding the bucket coordinates matches the
cloud-infra workflow convention; the buckets are persistent
fixtures with stable names.
Until cloud-infra #8124 applies the role and buckets don't exist yet,
so this job will fail on every PR until then. That's the fail-openly
behavior we just landed for iceberg_test.go — when the role appears,
the next run goes green automatically.1 parent dc2690e commit ac32931
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
254 | 263 | | |
255 | 264 | | |
256 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
257 | 274 | | |
258 | 275 | | |
259 | 276 | | |
| |||
301 | 318 | | |
302 | 319 | | |
303 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
304 | 332 | | |
305 | 333 | | |
0 commit comments