Repository navigation
Replay a recomputed authorization, on verified-cli v0.1.5 - #10
Merged
Merged
Conversation
replayDerivation computes a presented recomputed authorization again from its evidence, under the caller's trust registry, and compares. A draft, proposed in RFC 0005 and not part of the protocol. Every rule is upstream's verified-derivation crate; nothing here prepares, decides or compares anything. The pin moves to v0.1.5. The module now links the Cedar policy engine and grows from about 0.5 MB to 3.7 MB; two licences join the allowed ones and the notices are regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ByMeGbW8csxqgxHZM89s4c
A licence text in Cedar's graph has CRLF line ends, which the repository's line-end normalisation rewrote, so the committed notices differed from what CI generates. The file is now stored as generated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ByMeGbW8csxqgxHZM89s4c
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.
The TypeScript half of dekrops/verified-python#20: the pin moves to
verified-cliv0.1.5, and one function is added over its new crate. The two SDKs stay level.What is added
replayDerivation(pack, trust): DerivationReplayA replay package carries a contract, signed statements and the result a first verifier arrived at for a Cedar-backed authorization. The function computes that result again from the evidence, under your trust registry, and compares. Nothing presented is believed.
A
DerivationReplayreports:outcome:reproducedornot-reproduced, withstage,codeanddetailwhen not;authorizations: for each work event the outcome (ALLOW,DENY,UNDETERMINED), the failed guards, andengineDecision, which is what Cedar itself returned and is never the outcome;decision: the contract's;bindings: which contract requirements depend on which derivations.This is a draft outside the protocol. It is proposed in RFC 0005 of
dekrops/wvp, which no specification defines yet. The comments, the changelog anddocs/protocol-compatibility.mdsay so,draftis alwaystrue, and the function may change or be removed.Every rule is upstream's
verified-derivation. The Rust side is one call; the TypeScript side is types.For review
ZlibandApache-2.0 WITH LLVM-exceptionare added to the allowed list (two crates in Cedar's graph, the second build-time only), andTHIRD-PARTY-LICENSES.mdis regenerated.verified-cli's synthetic example packages and their registry are copied byte for byte intotests/fixtures/derivation, and excluded from the formatter so they stay that way.Checks run locally
biome check,tsc --noEmit,vitest(136 passed, 1 skipped; the conformance file does not load here because the corpus submodule is not checked out, as before this change),cargo fmt --check,cargo clippyforwasm32-unknown-unknownwith warnings denied,cargo deny check, notices regenerated.🤖 Generated with Claude Code
https://claude.ai/code/session_01ByMeGbW8csxqgxHZM89s4c