Repository navigation
Add P8 lakehouse workflow (S3, Iceberg, Athena) — OIDC assume blocked - #9
nightmoose wants to merge 1 commit into
Conversation
Runs only on aws/p8-lakehouse via GitHub OIDC as nmb-terraform-deploy, because the bot box cannot create S3 buckets. The job validates 10k Stripe-shaped charges with contractgate, writes passed and quarantined rows to Iceberg, runs Athena drift queries, and always tears the stack down. Never runs on main.
|
Superseded by contractgate PR (P8 run from a branch there, where OIDC already works). The assume failure here is explained by this repo's Actions OIDC subject customization: {"use_default":true,"use_immutable_subject":true,"sub_claim_prefix":"repo:nightmoose@91439862/schemasmith@1451682729"}With Closing this PR. The lakehouse example itself now lives in |
|
Closed as superseded: P8 ran successfully from contractgate, where the OIDC subject matches the role trust. |
What
Project 8 of the AWS learning plan, in this private repo so it never touches ContractGate main or prod.
examples/aws-lakehouse/plus a branch-scoped workflow (.github/workflows/aws-p8-lakehouse.yml) that runs only on push toaws/p8-lakehouse(andworkflow_dispatch), never onmain.The job is meant to assume
nmb-terraform-deployvia GitHub OIDC, create a private Iceberg lakehouse on S3 + Glue + Athena, validate 10k Stripe-shaped charges with in-processcontractgate(stripe_charges_raw), quarantine failures, run Athena drift queries, and tear everything down in analways()step.This is on GitHub Actions because the bot box VPC endpoint policy denies
s3:CreateBucket.OIDC result — stopped here
Run: https://github.com/nightmoose/schemasmith/actions/runs/43013979948
aws-actions/configure-aws-credentials@v4failed with:Audience was
sts.amazonaws.com, rolearn:aws:iam::065614567889:role/nmb-terraform-deploy, sessiongha-p8-lakehouse, branchaws/p8-lakehouse. The GitHubsubclaim for this push is:No AWS resources were created. The teardown step then failed with
NoCredentialsError(expected; nothing to delete). Spend is $0.The documented trust in
nmb-chief/aws/iam/nmb-terraform-deploy-trust.jsonusesStringLikeontoken.actions.githubusercontent.com:subforrepo:nightmoose/schemasmith:*, which should have allowed this run. LiveGetRoleonnmb-terraform-deployis denied for bothnightmoose-botsand the deploy role itself, so I could not confirm the live document. I did not change the IAM trust.The same role does work for ContractGate: the Terraform AWS plan workflow assumed it successfully on contractgate PR #411 today (run 43013009689).
Do not merge this for an apply until the trust allows
repo:nightmoose/schemasmith:ref:refs/heads/aws/p8-lakehouse(orrepo:nightmoose/schemasmith:*as already written in the documented policy).