Repository navigation
feat(ssm-deploy): accept EIF parent mode - #22
Merged
Merged
Conversation
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
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.
Summary
PR 5 of 6 for the attestation parent-upgrade path (host side: zkp2p/peer-infra#152, #153, #154).
ssm-deploy.ymlgainsmode: 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.artifact-kind: eif, the existingSSM_DEPLOY_EIF_ENABLED=trueopt-in,allow-key-removal: falseandimage-id=parent:<64 hex>.zkp2p/attestation-service/[prod/]parent/<manifest-sha256>/parent-bundle.tar.gzfor 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.Not changed
Image and config modes. Existing callers pin this workflow by SHA and are unaffected until they re-pin. A differential check against
0fba55cematched 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 apcr0: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.parent.actionlintclean.🤖 Generated with Claude Code
https://claude.ai/code/session_012KwNzf9Br2b9cPAsKu9AZZ