Skip to content

Commit 84a10ab

Browse files
authored
feat(verification): option to verify bundle server side in WorkflowRun/View endpoint (#1813)
Signed-off-by: Jose I. Paris <[email protected]>
1 parent fe7efe0 commit 84a10ab

16 files changed

+608
-216
lines changed

app/controlplane/api/controlplane/v1/workflow_run.pb.go

Lines changed: 300 additions & 197 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/controlplane/v1/workflow_run.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ message WorkflowRunServiceViewRequest {
215215
string id = 1 [(buf.validate.field).string.uuid = true];
216216
string digest = 2 [(buf.validate.field).string = {min_len: 1}];
217217
}
218+
// run verification
219+
bool verify = 3;
218220
}
219221

220222
message WorkflowRunServiceViewResponse {
@@ -223,6 +225,15 @@ message WorkflowRunServiceViewResponse {
223225
message Result {
224226
WorkflowRunItem workflow_run = 1;
225227
AttestationItem attestation = 2;
228+
// It will be nil if the verification is not possible (old or non-keyless attestations)
229+
VerificationResult verification = 3;
230+
}
231+
232+
message VerificationResult {
233+
// if it can be verified this will hold the result of the verification
234+
bool verified = 1;
235+
// why it couldn't be verified, or the failure reason
236+
string failure_reason = 2;
226237
}
227238
}
228239

app/controlplane/api/gen/frontend/controlplane/v1/workflow_run.ts

Lines changed: 126 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/controlplane.v1.WorkflowRunServiceViewRequest.jsonschema.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/controlplane.v1.WorkflowRunServiceViewRequest.schema.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/controlplane.v1.WorkflowRunServiceViewResponse.Result.jsonschema.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/controlplane.v1.WorkflowRunServiceViewResponse.Result.schema.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/controlplane.v1.WorkflowRunServiceViewResponse.VerificationResult.jsonschema.json

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/controlplane.v1.WorkflowRunServiceViewResponse.VerificationResult.schema.json

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/cmd/wire_gen.go

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)