Skip to content

Commit 9fc97de

Browse files
authored
attest: force https for rekor client (#610)
For some reason this defaults to http, which results in the server terminating the request (my guess is this was previously redirecting http->https before). This changes forces the https scheme (hopefully this isn't disruptive for non-public good instances, but we can revisit other changes later if we need to). Signed-off-by: Billy Lynch <[email protected]>
1 parent 050c60f commit 9fc97de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/attest/attest.go

+1
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ func (a *Attestor) signPayload(ctx context.Context, sha plumbing.Hash, b []byte,
251251
tc := &rekorclient.TransportConfig{
252252
Host: rekorHost,
253253
BasePath: rekorBasePath,
254+
Schemes: []string{"https"},
254255
}
255256
rcfg := rekorclient.NewHTTPClientWithConfig(strfmt.Default, tc)
256257

0 commit comments

Comments
 (0)