Skip to content

Commit 08e67ad

Browse files
authored
fix: return digest from attestation state save for OCC support (#2909)
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
1 parent c1f98ed commit 08e67ad

19 files changed

Lines changed: 1294 additions & 53 deletions
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
all: false
2+
formatter: goimports
3+
include-auto-generated: false
4+
log-level: info
5+
recursive: false
6+
require-template-schema-exists: true
7+
template: testify
8+
template-schema: "{{.Template}}.schema.json"
9+
packages:
10+
github.com/chainloop-dev/chainloop/app/controlplane/api/controlplane/v1:
11+
config:
12+
dir: "{{.InterfaceDir}}/mocks"
13+
filename: "{{.InterfaceName}}.go"
14+
pkgname: mocks
15+
structname: "{{.InterfaceName}}"
16+
interfaces:
17+
AttestationStateServiceClient:

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

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

app/controlplane/api/controlplane/v1/attestation_state.proto

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright 2024 The Chainloop Authors.
2+
// Copyright 2024-2026 The Chainloop Authors.
33
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
@@ -53,7 +53,10 @@ message AttestationStateServiceSaveRequest {
5353
string base_digest = 3;
5454
}
5555

56-
message AttestationStateServiceSaveResponse {}
56+
message AttestationStateServiceSaveResponse {
57+
// digest of the newly saved attestation state for Optimistic Concurrency Control
58+
string digest = 1;
59+
}
5760

5861
message AttestationStateServiceReadRequest {
5962
string workflow_run_id = 1 [(buf.validate.field).string = {min_len: 1}];

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

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)