Skip to content

Commit

Permalink
attest: force https for rekor client (#610)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
wlynch authored Jan 3, 2025
1 parent 050c60f commit 9fc97de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/attest/attest.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ func (a *Attestor) signPayload(ctx context.Context, sha plumbing.Hash, b []byte,
tc := &rekorclient.TransportConfig{
Host: rekorHost,
BasePath: rekorBasePath,
Schemes: []string{"https"},
}
rcfg := rekorclient.NewHTTPClientWithConfig(strfmt.Default, tc)

Expand Down

0 comments on commit 9fc97de

Please sign in to comment.