Repository navigation
fix(deploy): repair CI auth and sync units with PDM mTLS - #140
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
what changed
.github/workflows/deploy.yml;ghcr.io/secure-rads/nsjail-dockeris anonymously pullable (verified 200).SERVERLESS_ACCESS_KEYto the deploy step so Serverless Framework v4 runs unattended.scripts/lib/units.shwith the PDM mTLS count endpoint: secure PDM getsmtlsDomainName/mtlsCertificateArn, stores its client cert in SSM, uploads the truststore, and passes the version on a second deploy.pdmTableparam andPersonalDataTableNamelookup from the rads execution-service unit.Target, which usedFn::Joinwith a scalar and made the CloudFormation template invalid.PDM_MTLS_HOST, the PDM client cert/key secrets, and matching docs.why
The
workflow_dispatchdeploy failed atconfigure-aws-credentialsbecause noAWS_DEPLOY_ROLE_ARNvariable 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
scripts/cloudflare-dns.sh pdm-mtls.sr.secure-rads.org <regional-domain>created the DNS-only CNAME.deployworkflow onfix/github-actions-failurepasses: https://github.com/Secure-RADS/st-dp/actions/runs/45757682269aws cloudformation validate-templatepasses on the packaged secure PDM template.notes
AdministratorAccessbecause the deploy creates IAM roles. Scope it down if the account policy allows.SERVERLESS_ACCESS_KEYis required for CI only; local deploys still useserverless login.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.