From 1d0f1569d70fe7510087e75e714d2e32ced81ce2 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Fri, 9 Feb 2024 11:34:37 -0500 Subject: [PATCH] Use 0 days for default CacheValidity Signed-off-by: Cody Soyland --- pkg/tuf/options.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/tuf/options.go b/pkg/tuf/options.go index 60f44736..a675600b 100644 --- a/pkg/tuf/options.go +++ b/pkg/tuf/options.go @@ -29,7 +29,7 @@ const DefaultMirror = "https://tuf-repo-cdn.sigstore.dev" // Options represent the various options for a Sigstore TUF Client type Options struct { - // CacheValidity period in days (default 1) + // CacheValidity period in days (default 0) CacheValidity int // ForceCache controls if the cache should be used without update // as long as the metadata is valid @@ -110,7 +110,6 @@ func DefaultOptions() *Options { // Fall back to using a TUF repository in the temp location home = os.TempDir() } - opts.CacheValidity = 1 opts.CachePath = filepath.Join(home, ".sigstore", "root") opts.RepositoryBaseURL = DefaultMirror