feat: add production tuf root

This commit is contained in:
mrjoelkamp
2024-07-10 09:46:47 -05:00
parent a4fe4eb4bd
commit 84a7b26e2c
6 changed files with 172 additions and 10 deletions

View File

@@ -66,6 +66,10 @@ func (h *validateHandler) createTUFClient() (*tuf.TufClient, error) {
rootBytes = embed.DevRoot
case "staging":
rootBytes = embed.StagingRoot
case "prod":
rootBytes = embed.ProdRoot
case "":
rootBytes = embed.DefaultRoot
default:
return nil, fmt.Errorf("invalid tuf root: %s", h.opts.TUFRoot)
}