Skip to content

Commit 5baeb8f

Browse files
no V002 workaround
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
1 parent c546aea commit 5baeb8f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

sigstore/_internal/rekor/client_v2.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,7 @@ def create_entry(self, request: v2.CreateEntryRequest) -> LogEntry:
7979
# Or it is an issue with the proto `json_value`.
8080
# See https://github.com/sigstore/rekor-tiles/blob/bd5893730de581629a5f475923c663f776793496/api/proto/rekor_service.proto#L66.
8181
payload = request.to_dict()
82-
if "hashedRekordRequestV002" in payload:
83-
payload["hashedRekordRequestV0_0_2"] = payload.pop(
84-
"hashedRekordRequestV002"
85-
)
86-
if "dsseRequestV002" in payload:
87-
payload["dsseRequestV0_0_2"] = payload.pop("dsseRequestV002")
88-
_logger.debug(f"request: {json.dumps(payload)}")
82+
_logger.debug(f"proposed: {json.dumps(payload)}")
8983
resp = self.session.post(
9084
f"{self.url}/log/entries",
9185
json=payload,

0 commit comments

Comments
 (0)