Description
Re: slsa-framework/slsa-verifier#791 (comment)
I'm proposing that we change NewLiveTrustedRoot to accept an existing client, instead of making a new client for each fetch.
Or, we add a new function NewLiveTrustedRootWithClient() that does the same.
My use case is for my library slsa-verifer, where a user may pass in their existing client with custom opts, which slsa-verifier then uses for retrieving a TrustedRoot. Client.opts is private, so my library wouldn't be able to simply pass along the opts.
Description
Re: slsa-framework/slsa-verifier#791 (comment)
I'm proposing that we change
NewLiveTrustedRootto accept an existing client, instead of making a new client for each fetch.Or, we add a new function
NewLiveTrustedRootWithClient()that does the same.My use case is for my library slsa-verifer, where a user may pass in their existing client with custom
opts, which slsa-verifier then uses for retrieving a TrustedRoot.Client.optsis private, so my library wouldn't be able to simply pass along theopts.