Skip to content

Commit

Permalink
feat(verification): option to verify bundle server side in WorkflowRu…
Browse files Browse the repository at this point in the history
…n/View endpoint (chainloop-dev#1813)

Signed-off-by: Jose I. Paris <[email protected]>
  • Loading branch information
jiparis authored Feb 17, 2025
1 parent fe7efe0 commit 84a10ab
Show file tree
Hide file tree
Showing 16 changed files with 608 additions and 216 deletions.
497 changes: 300 additions & 197 deletions app/controlplane/api/controlplane/v1/workflow_run.pb.go

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions app/controlplane/api/controlplane/v1/workflow_run.proto
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ message WorkflowRunServiceViewRequest {
string id = 1 [(buf.validate.field).string.uuid = true];
string digest = 2 [(buf.validate.field).string = {min_len: 1}];
}
// run verification
bool verify = 3;
}

message WorkflowRunServiceViewResponse {
Expand All @@ -223,6 +225,15 @@ message WorkflowRunServiceViewResponse {
message Result {
WorkflowRunItem workflow_run = 1;
AttestationItem attestation = 2;
// It will be nil if the verification is not possible (old or non-keyless attestations)
VerificationResult verification = 3;
}

message VerificationResult {
// if it can be verified this will hold the result of the verification
bool verified = 1;
// why it couldn't be verified, or the failure reason
string failure_reason = 2;
}
}

Expand Down
129 changes: 126 additions & 3 deletions app/controlplane/api/gen/frontend/controlplane/v1/workflow_run.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions app/controlplane/cmd/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 84a10ab

Please sign in to comment.