This repository was archived by the owner on Sep 23, 2025. It is now read-only.
Commit 60096f2
committed
Add func to retrieve TrustedRoot from TUF
Signed-off-by: Cody Soyland <[email protected]>
Sync TUF cache used for sigstore bundle verification (#166)
* sync tuf cache used for sigstore bundle verification
Signed-off-by: Meredith Lancaster <[email protected]>
* remove singleton err
Signed-off-by: Meredith Lancaster <[email protected]>
* start adding lock
Signed-off-by: Meredith Lancaster <[email protected]>
* Use RWMutex
Signed-off-by: Meredith Lancaster <[email protected]>
* pr feedback
Signed-off-by: Meredith Lancaster <[email protected]>
---------
Signed-off-by: Meredith Lancaster <[email protected]>
Fix shadowed trustedroot (#178)
* Fix shadowed variable bug
This code caused the singleton `trustedRoot` to be returned as nil on subsequent calls. The singleton was shadowed when the variable was redeclared in the `if` block.
Signed-off-by: Cody Soyland <[email protected]>
* Remove unused singleton
`singletonRootError` was never returned without being overwritten, so it was essentially unused. I think it's wise to always retry the TUF call on future invocations in case of network errors.
Signed-off-by: Cody Soyland <[email protected]>
---------
Signed-off-by: Cody Soyland <[email protected]>
Update go.mod
Signed-off-by: Cody Soyland <[email protected]>1 parent 7845832 commit 60096f2
2 files changed
+44
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
231 | | - | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
294 | 297 | | |
295 | 298 | | |
296 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
0 commit comments