Skip to content

fix(deploy): repair CI auth and sync units with PDM mTLS - #140

Merged
prdai merged 5 commits into
mainfrom
fix/github-actions-failure
Nov 26, 2026
Merged

prdai merged 5 commits into
mainfrom
fix/github-actions-failure

Conversation

@prdai

@prdai prdai commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

what changed

  • Drop the GHCR login from .github/workflows/deploy.yml; ghcr.io/secure-rads/nsjail-docker is anonymously pullable (verified 200).
  • Pass SERVERLESS_ACCESS_KEY to the deploy step so Serverless Framework v4 runs unattended.
  • Sync scripts/lib/units.sh with the PDM mTLS count endpoint: secure PDM gets mtlsDomainName/mtlsCertificateArn, stores its client cert in SSM, uploads the truststore, and passes the version on a second deploy.
  • Remove the stale pdmTable param and PersonalDataTableName lookup from the rads execution-service unit.
  • Fix the secure PDM count route Target, which used Fn::Join with a scalar and made the CloudFormation template invalid.
  • Add PDM_MTLS_HOST, the PDM client cert/key secrets, and matching docs.

why

The workflow_dispatch deploy failed at configure-aws-credentials because no AWS_DEPLOY_ROLE_ARN variable existed. With auth fixed, the same run exposed drift from #139: the deploy script still passed the old params, read a removed stack output, and the new PDM template did not validate.

verification

  • OIDC provider and deploy role created in the deploy account; repo variables and secrets populated.
  • scripts/cloudflare-dns.sh pdm-mtls.sr.secure-rads.org <regional-domain> created the DNS-only CNAME.
  • Full deploy workflow on fix/github-actions-failure passes: https://github.com/Secure-RADS/st-dp/actions/runs/45757682269
  • aws cloudformation validate-template passes on the packaged secure PDM template.

notes

  • The role uses AdministratorAccess because the deploy creates IAM roles. Scope it down if the account policy allows.
  • SERVERLESS_ACCESS_KEY is required for CI only; local deploys still use serverless login.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

prdai and others added 4 commits November 26, 2026 09:53
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
@prdai
prdai merged commit b2ca916 into main Nov 26, 2026
6 checks passed
@prdai
prdai deleted the fix/github-actions-failure branch November 26, 2026 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant