Repository navigation
feat(seal): pin Cloud Seal keys (person-confirmed TOFU), verify Seals, seal Cloud-connected runs - #70
Merged
Merged
Conversation
…als, seal Cloud-connected runs - openadapt-agent seal keys pin: fetches /api/public/seal-keys and pins a key only after a person types its id back (or --confirm KEY_ID after an out-of-band check). Rotation adds new keys only with confirmation, applies revocations, refuses un-revocation, keeps keys Cloud stops listing. Verification never fetches keys. - openadapt-agent seal verify <file|url|->: offline verdict with closed reasons for a receipt, run report, or webhook body. - Pinned keys default to ~/.openadapt/seal-keys.json (OPENADAPT_SEAL_KEYS_PATH still wins). - FlowRunner.run(cloud_execution_id=...) passes --cloud-execution-id so Flow attaches Cloud's signed receipt after a VERIFIED outcome; a receipt bound to the report's cloud_execution_id seals the run. - End-to-end test: VERIFIED run, fake Cloud signs with a throwaway key, Flow writes the receipt, agent reports sealed:true; tampered receipt or no pinned keys reads sealed:false. Signed-off-by: Richard Abrich <richard.abrich@mldsai.com>
Signed-off-by: Richard Abrich <richard.abrich@mldsai.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.
Makes sealed:true reachable and checkable.
openadapt-agent seal keys pin: fetches /api/public/seal-keys; a key is trusted only after a person types its key id back at a terminal (or--confirm KEY_IDafter an out-of-band fingerprint check). Rotation: new keys need the same confirmation; Cloud revocations are applied; un-revocation is refused; keys Cloud stops listing stay pinned. Verification never fetches keys. Default file ~/.openadapt/seal-keys.json (OPENADAPT_SEAL_KEYS_PATH still wins).openadapt-agent seal verify <file|url|->: offline verdict (receipt, run report, or webhook body) with closed reasons; exit 0 only for a genuine Seal over a verified outcome.FlowRunner.run(cloud_execution_id=...)passes--cloud-execution-id(needs openadapt-flow with attach support, OpenAdaptAI/openadapt-flow feat/cloud-seal-attach). A receipt bound to the report'scloud_execution_idseals the run; any other execution does not.