Skip to content

feat(ssm-deploy): accept EIF parent mode - #22

Merged
Kartik4152 merged 1 commit into
mainfrom
feat/ssm-deploy-parent-mode
Nov 10, 2026
Merged

Kartik4152 merged 1 commit into
mainfrom
feat/ssm-deploy-parent-mode

Conversation

@Kartik4152

Copy link
Copy Markdown
Contributor

Summary

PR 5 of 6 for the attestation parent-upgrade path (host side: zkp2p/peer-infra#152, #153, #154).

ssm-deploy.yml gains mode: parent, which forwards a signed attestation parent bundle (cred-server, vsock-tls-proxy, nginx vhost and upstreams, parent units) to the host's SSM document.

  • Validation, before checkout, CI dispatch or AWS access: parent mode requires artifact-kind: eif, the existing SSM_DEPLOY_EIF_ENABLED=true opt-in, allow-key-removal: false and image-id = parent:<64 hex>.
  • Normalization: the artifact key must be exactly zkp2p/attestation-service/[prod/]parent/<manifest-sha256>/parent-bundle.tar.gz for the resolved environment, so the key is bound to the manifest digest. A parent key is rejected in image mode, and an EIF key in parent mode.
  • CI gate: runs for parent mode as it does for image mode.
  • The workflow only forwards the request. The host bridge verifies the bundle's KMS signature against its pinned public key.

Not changed

Image and config modes. Existing callers pin this workflow by SHA and are unaffected until they re-pin. A differential check against 0fba55ce matched 68 existing Docker/EIF image and config cases exactly: exit codes, output, SSM parameter JSON bytes and file permissions.

Test Plan

  • python3 scripts/test-ssm-deploy.py: 54 passed (was 43). New: parent mode accepts an EIF parent id, rejects Docker, rejects a pcr0: id, runs the CI gate, normalizes the SSM parameters, requires the EIF opt-in, rejects key removal, rejects invalid artifact keys, manifests and sources; image mode unchanged.
  • One existing assertion updated: the CI-gate condition now includes parent.
  • actionlint clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_012KwNzf9Br2b9cPAsKu9AZZ

Add mode `parent` for attestation parent bundles. It needs
artifact-kind eif, the existing EIF opt-in, a `parent:<fp>` identity
and the exact environment-scoped bundle key bound to the manifest
digest. The CI gate also runs for parent mode. Image and config modes
are unchanged: 68 existing cases match the previous workflow's exit
codes, output and SSM parameter bytes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012KwNzf9Br2b9cPAsKu9AZZ
@Kartik4152
Kartik4152 merged commit 7d4dce3 into main Nov 10, 2026
2 checks passed
@Kartik4152
Kartik4152 deleted the feat/ssm-deploy-parent-mode branch November 10, 2026 22:32
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