Commit 6ae464b
authored
Use trust config everywhere (#1363)
* cli: Get OIDC url from trust config
* trust: Provide methods to load TrustConfig from tuf
We have previously done this for TrustedRoot but doing this for the whole
TrustConfig makes sense.
The only complication is that production instance does not have the
SigningConfig component yet so we need to provide a fallback for that.
* Use TrustConfig to initialize components
This change makes almost all code paths now use TrustConfig to choose
the sigstore instance (urls, keys, validity periods, etc).
* Remove tuf methods from TrustedRoot
* Update staging assets, refactor TUF asset lookup
* Update the embedded data in sigstore/_store and the test assets in test/assets
* refactor the embedded asset lookup: use the URL to build the
asset dir. This means less code duplication and easier to make this
work with non-Public Good Instance TUF repos
* Make the tuf module work with non-PGI instances: if the local TUF
metadata is initialized out of band, tuf module just works with it.
If a root.json is provided in _store, it is still always used to
initialize the client
Signed-off-by: Jussi Kukkonen <[email protected]>1 parent d4295dc commit 6ae464b
File tree
43 files changed
+692
-830
lines changed- sigstore
- _internal
- fulcio
- _store
- https%3A%2F%2Ftuf-repo-cdn.sigstage.dev
- https%3A%2F%2Ftuf-repo-cdn.sigstore.dev
- staging
- verify
- test
- assets/staging-tuf
- targets
- registry.npmjs.org
- unit
- internal
- oidc
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+692
-830
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
43 | 60 | | |
44 | 61 | | |
45 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
126 | 125 | | |
127 | 126 | | |
128 | 127 | | |
| |||
185 | 184 | | |
186 | 185 | | |
187 | 186 | | |
188 | | - | |
189 | | - | |
| 187 | + | |
190 | 188 | | |
191 | 189 | | |
192 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
229 | 228 | | |
230 | 229 | | |
231 | 230 | | |
232 | | - | |
233 | | - | |
| 231 | + | |
| 232 | + | |
234 | 233 | | |
235 | 234 | | |
236 | 235 | | |
| |||
614 | 613 | | |
615 | 614 | | |
616 | 615 | | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
| 616 | + | |
622 | 617 | | |
623 | 618 | | |
624 | 619 | | |
| |||
630 | 625 | | |
631 | 626 | | |
632 | 627 | | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
633 | 639 | | |
634 | 640 | | |
635 | 641 | | |
| |||
643 | 649 | | |
644 | 650 | | |
645 | 651 | | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
| 652 | + | |
| 653 | + | |
657 | 654 | | |
658 | 655 | | |
659 | 656 | | |
| |||
664 | 661 | | |
665 | 662 | | |
666 | 663 | | |
667 | | - | |
| 664 | + | |
668 | 665 | | |
669 | 666 | | |
670 | 667 | | |
| |||
1009 | 1006 | | |
1010 | 1007 | | |
1011 | 1008 | | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
| 1009 | + | |
| 1010 | + | |
1020 | 1011 | | |
1021 | 1012 | | |
1022 | 1013 | | |
| |||
1167 | 1158 | | |
1168 | 1159 | | |
1169 | 1160 | | |
1170 | | - | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
1171 | 1182 | | |
1172 | 1183 | | |
1173 | 1184 | | |
| |||
1176 | 1187 | | |
1177 | 1188 | | |
1178 | 1189 | | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
| 1190 | + | |
1184 | 1191 | | |
| 1192 | + | |
| 1193 | + | |
1185 | 1194 | | |
1186 | 1195 | | |
1187 | 1196 | | |
| |||
1198 | 1207 | | |
1199 | 1208 | | |
1200 | 1209 | | |
| 1210 | + | |
1201 | 1211 | | |
1202 | 1212 | | |
1203 | 1213 | | |
| |||
1234 | 1244 | | |
1235 | 1245 | | |
1236 | 1246 | | |
1237 | | - | |
| 1247 | + | |
1238 | 1248 | | |
1239 | | - | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
1243 | 1249 | | |
| 1250 | + | |
1244 | 1251 | | |
1245 | | - | |
| 1252 | + | |
1246 | 1253 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
163 | 161 | | |
164 | 162 | | |
165 | 163 | | |
166 | | - | |
| 164 | + | |
167 | 165 | | |
168 | 166 | | |
169 | 167 | | |
| |||
180 | 178 | | |
181 | 179 | | |
182 | 180 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 181 | | |
198 | 182 | | |
199 | 183 | | |
| |||
0 commit comments