Jonny Stoten
aed959f858
fix: use a client pointing at Docker's TUF by default ( #104 )
...
`policy.Options` now contains the arguments to `tuf.Client`'s constructor rather than an actual Client. If these arguments are not provided, defaults pointing at Docker's TUF repo will be used. An actual TUF client can be passed in on the context (which is useful for testing). If this is not provided `attest.Verify` will create a TUF client using the options on `policy.Options`.
---------
Co-authored-by: Joel Kamp <joel.kamp@docker.com >
2024-08-23 09:33:30 +01:00
mrjoelkamp
059ee8926c
refactor: move fullURL only needed for DefaultFetcher
2024-08-14 15:27:02 -05:00
mrjoelkamp
cb47507650
chore: pr comments
2024-08-14 15:01:01 -05:00
mrjoelkamp
2bf7dec72e
feat: add policy.downloadLocation
2024-08-14 12:52:36 -05:00
mrjoelkamp
d2a8348ae8
feat: generate vsa policy value from file
2024-08-14 10:57:15 -05:00
James Carnegie
9582e69968
fix: standardize casing of initialisms ( #112 )
...
* fix: standardize casing of initialisms
* fix: rename intoto -> inToto and Intoto to InToto
* fix: fix all linting errors
2024-08-01 15:35:15 +01:00
Jonny Stoten
008c14e3f3
chore: reformat with gofumpt ( #109 )
...
* Reformat with gofumpt
* Suppress issue about laxer perms than 0600
---------
Co-authored-by: Joel Kamp <joel.kamp@docker.com >
2024-07-31 15:48:00 +01:00
mrjoelkamp
da310234a4
feat: export embedded root names
2024-07-11 09:55:00 -05:00
mrjoelkamp
0330ea4755
feat: add EmbeddedRoot type
2024-07-10 17:30:35 -05:00
mrjoelkamp
1cb3e4a281
feat: add production tuf root
2024-07-10 14:29:59 -05:00
Jonny Stoten
6397dcede8
Check version of attest against constraints in TUF ( #19 )
...
* Check version of attest against constraints in TUF
* Add link to semver lib constraints docs
2024-05-22 17:02:25 +01:00
mrjoelkamp
33a1996b2b
fix: no such directory error
2024-05-15 14:47:20 -05:00
Jonny Stoten
e3d02ab2e1
Simplify and rename hash functions
2024-05-08 13:09:25 +01:00
mrjoelkamp
c1035c951e
feat: combine tuf code
2024-04-15 15:37:31 -05:00