-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(localMeta): Ignore deleted delegated targets
Signed-off-by: Baptiste Foy <[email protected]>
- Loading branch information
1 parent
9774d79
commit 766e2ed
Showing
87 changed files
with
3,120 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
...testdata/php-tuf-fixtures/TUFTestFixture2LevelDelegation/client/metadata/current/1.a.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"signatures": [ | ||
{ | ||
"keyid": "05e17c1501d627b2597322f80d33aacec6f30a507552d3326a88913422b0e30b", | ||
"sig": "72b215c194090407abc8b7c513d69fd340abbe63037d26cbc2e4dd88c095a14da8d6e4aae0561f265e97d5c658b0260be2031af73c26e157e5f062c5f4aceb00" | ||
} | ||
], | ||
"signed": { | ||
"_type": "targets", | ||
"delegations": { | ||
"keys": { | ||
"718fedad390b4d0d470b890781eb8c94e5a7e975aebe65fc0862246c945fce68": { | ||
"keyid_hash_algorithms": [ | ||
"sha256", | ||
"sha512" | ||
], | ||
"keytype": "ed25519", | ||
"keyval": { | ||
"public": "82f52e4503dbb364fabe8e5567f1cf909d4175d45468a021dfe75653db9ac98c" | ||
}, | ||
"scheme": "ed25519" | ||
}, | ||
"9ca81f7ff17f6218246474a51b47eb035741bc472557ef5ac493e279f446b85b": { | ||
"keyid_hash_algorithms": [ | ||
"sha256", | ||
"sha512" | ||
], | ||
"keytype": "ed25519", | ||
"keyval": { | ||
"public": "06e4dee0de7826c8d539a6112940b7459892b4ecaf696e67dc064aea0923f95c" | ||
}, | ||
"scheme": "ed25519" | ||
} | ||
}, | ||
"roles": [ | ||
{ | ||
"keyids": [ | ||
"718fedad390b4d0d470b890781eb8c94e5a7e975aebe65fc0862246c945fce68" | ||
], | ||
"name": "b", | ||
"paths": [ | ||
"*.txt" | ||
], | ||
"terminating": false, | ||
"threshold": 1 | ||
}, | ||
{ | ||
"keyids": [ | ||
"9ca81f7ff17f6218246474a51b47eb035741bc472557ef5ac493e279f446b85b" | ||
], | ||
"name": "c", | ||
"paths": [ | ||
"*.txt" | ||
], | ||
"terminating": false, | ||
"threshold": 1 | ||
} | ||
] | ||
}, | ||
"expires": "2020-04-01T07:27:10Z", | ||
"spec_version": "1.0.0", | ||
"targets": { | ||
"a.txt": { | ||
"custom": {}, | ||
"hashes": { | ||
"sha256": "3f90cedf303207851bbdc5f857e018daf93b4c0083306cef17df547b42e4e985", | ||
"sha512": "f4631ef7ea7b015d7b88e411842fafeb78a72f0181bec72ea9754604ede74ea0e491bf8411659aabc96304fc764d0131ce49ba86066ab5f7b7480dde719e0bfd" | ||
}, | ||
"length": 15 | ||
} | ||
}, | ||
"version": 1 | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...testdata/php-tuf-fixtures/TUFTestFixture2LevelDelegation/client/metadata/current/1.b.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"signatures": [ | ||
{ | ||
"keyid": "718fedad390b4d0d470b890781eb8c94e5a7e975aebe65fc0862246c945fce68", | ||
"sig": "6a4f4bb63d7b6db4b6c09ce081fd229052ca087c98d25653c8d187de04dbedfc219aa9482774b939d84eb404fd51cfe383f9ea65e19a1d3cc79b642701bcff0d" | ||
} | ||
], | ||
"signed": { | ||
"_type": "targets", | ||
"delegations": { | ||
"keys": {}, | ||
"roles": [] | ||
}, | ||
"expires": "2020-04-01T07:27:10Z", | ||
"spec_version": "1.0.0", | ||
"targets": { | ||
"b.txt": { | ||
"custom": {}, | ||
"hashes": { | ||
"sha256": "949c6a4318dabe8bbd140cef99ea669ba031919ccf9bce0f5b4d0b61d1c0aa2e", | ||
"sha512": "f4cc9ce5c73b37e2a6707af7a0ea614ea5fa428bd2509e3af4528a5d330ce98a09c4dd98c859ad9b27b8aba24e1eacbf1af8393fdbfed899cecb995c87a11e3c" | ||
}, | ||
"length": 15 | ||
} | ||
}, | ||
"version": 1 | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...testdata/php-tuf-fixtures/TUFTestFixture2LevelDelegation/client/metadata/current/1.c.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"signatures": [ | ||
{ | ||
"keyid": "9ca81f7ff17f6218246474a51b47eb035741bc472557ef5ac493e279f446b85b", | ||
"sig": "9f0c5ef7e0a11012256c4a47ed757f9e90e930238f6a6e5c758a014f1b768519acb2b7d9aa9bd0456d71ba09b032598086e42d832830391e307c926c16f5b303" | ||
} | ||
], | ||
"signed": { | ||
"_type": "targets", | ||
"delegations": { | ||
"keys": {}, | ||
"roles": [] | ||
}, | ||
"expires": "2020-04-01T07:27:10Z", | ||
"spec_version": "1.0.0", | ||
"targets": { | ||
"c.txt": { | ||
"custom": {}, | ||
"hashes": { | ||
"sha256": "946e2ea9180de673891ae09ce0edfb207966bc32bd6324ebdad2c50c82075ffd", | ||
"sha512": "ddb5fb256a368d778b5fdd03d497ad79944c766245f3cccfc8b098b14c488ec424a68b86a6a2add36db4ef0f0214f15dbe0d63fbc5ca7a9619fb4c39544d78a9" | ||
}, | ||
"length": 15 | ||
} | ||
}, | ||
"version": 1 | ||
} | ||
} |
87 changes: 87 additions & 0 deletions
87
...tdata/php-tuf-fixtures/TUFTestFixture2LevelDelegation/client/metadata/current/1.root.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"signatures": [ | ||
{ | ||
"keyid": "d4dab4b4d68b91665a6d0dac5b4e64677aa6d853fc787669168b4b4ba9822129", | ||
"sig": "d0bf76a5cfc0aee1b8a1b1bf0ed8ca646a1a6d5f205945c515e8546bfd3c1e6b5e07cc0b93836bd030dd05ba68f177aecb05f6bf90c6702fd178e53310022506" | ||
} | ||
], | ||
"signed": { | ||
"_type": "root", | ||
"consistent_snapshot": true, | ||
"expires": "2020-12-31T05:48:20Z", | ||
"keys": { | ||
"3a05831328273e4b821c3bbe1fed0c5332749d8e071675879af26a401a5c85ae": { | ||
"keyid_hash_algorithms": [ | ||
"sha256", | ||
"sha512" | ||
], | ||
"keytype": "ed25519", | ||
"keyval": { | ||
"public": "6bac59b8d9e1aae02fae6fba6e7fe3fc9fe5b4a9fe98c3fca255d8c8ec3e5b35" | ||
}, | ||
"scheme": "ed25519" | ||
}, | ||
"77dfdca206c0fe1b8e55d67d21dd0e195a0998a9d2b56c6d3ee8f68d04c21e93": { | ||
"keyid_hash_algorithms": [ | ||
"sha256", | ||
"sha512" | ||
], | ||
"keytype": "ed25519", | ||
"keyval": { | ||
"public": "6400d770c7c1bce4b3d59ce0079ed686e843b6500bbea77d869a1ae7df4565a1" | ||
}, | ||
"scheme": "ed25519" | ||
}, | ||
"d4dab4b4d68b91665a6d0dac5b4e64677aa6d853fc787669168b4b4ba9822129": { | ||
"keyid_hash_algorithms": [ | ||
"sha256", | ||
"sha512" | ||
], | ||
"keytype": "ed25519", | ||
"keyval": { | ||
"public": "28bf74baa87ed923f8fa27e3292684f8ec4730ce0bdc65150ed58199206ce089" | ||
}, | ||
"scheme": "ed25519" | ||
}, | ||
"e4dae3872d28d29f7624a702bfd25f68453544d597229ee9e0a8569d1f940cf4": { | ||
"keyid_hash_algorithms": [ | ||
"sha256", | ||
"sha512" | ||
], | ||
"keytype": "ed25519", | ||
"keyval": { | ||
"public": "e6ae9d3b67d7b3ce274130291dd90287f32b8fd72bfb4ac5430859ebd1c28a46" | ||
}, | ||
"scheme": "ed25519" | ||
} | ||
}, | ||
"roles": { | ||
"root": { | ||
"keyids": [ | ||
"d4dab4b4d68b91665a6d0dac5b4e64677aa6d853fc787669168b4b4ba9822129" | ||
], | ||
"threshold": 1 | ||
}, | ||
"snapshot": { | ||
"keyids": [ | ||
"77dfdca206c0fe1b8e55d67d21dd0e195a0998a9d2b56c6d3ee8f68d04c21e93" | ||
], | ||
"threshold": 1 | ||
}, | ||
"targets": { | ||
"keyids": [ | ||
"e4dae3872d28d29f7624a702bfd25f68453544d597229ee9e0a8569d1f940cf4" | ||
], | ||
"threshold": 1 | ||
}, | ||
"timestamp": { | ||
"keyids": [ | ||
"3a05831328273e4b821c3bbe1fed0c5332749d8e071675879af26a401a5c85ae" | ||
], | ||
"threshold": 1 | ||
} | ||
}, | ||
"spec_version": "1.0.0", | ||
"version": 1 | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...a/php-tuf-fixtures/TUFTestFixture2LevelDelegation/client/metadata/current/1.snapshot.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"signatures": [ | ||
{ | ||
"keyid": "77dfdca206c0fe1b8e55d67d21dd0e195a0998a9d2b56c6d3ee8f68d04c21e93", | ||
"sig": "61db8765350398f7f750853337d9a55c5d6e790812d29146b5b45d5fd43d2a42c474a7a9fab263c3a50a28114a82f79dbf24ff1f99ae737a8d06f332f9f7d103" | ||
} | ||
], | ||
"signed": { | ||
"_type": "snapshot", | ||
"expires": "2020-01-08T00:00:00Z", | ||
"meta": { | ||
"targets.json": { | ||
"version": 1 | ||
} | ||
}, | ||
"spec_version": "1.0.0", | ||
"version": 1 | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...ta/php-tuf-fixtures/TUFTestFixture2LevelDelegation/client/metadata/current/1.targets.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"signatures": [ | ||
{ | ||
"keyid": "e4dae3872d28d29f7624a702bfd25f68453544d597229ee9e0a8569d1f940cf4", | ||
"sig": "c150e8ed5d352f366a979f4c4b9d556350c414c2da7ef1279045aaed3438c60872142d0dfe5ddbb627fec2d8fb7c5d8e692e04a87230b78d74714c5db035620a" | ||
} | ||
], | ||
"signed": { | ||
"_type": "targets", | ||
"delegations": { | ||
"keys": {}, | ||
"roles": [] | ||
}, | ||
"expires": "2020-04-01T07:27:10Z", | ||
"spec_version": "1.0.0", | ||
"targets": {}, | ||
"version": 1 | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
.../php-tuf-fixtures/TUFTestFixture2LevelDelegation/client/metadata/current/1.timestamp.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"signatures": [ | ||
{ | ||
"keyid": "3a05831328273e4b821c3bbe1fed0c5332749d8e071675879af26a401a5c85ae", | ||
"sig": "1d668531c7a0960cf90825faa684106a8aef0799c1b47e72301bac45d87f2dd42c14f1a3ac7db862323ca5177dd4fd686573ea92aea99638f17414dde561c00b" | ||
} | ||
], | ||
"signed": { | ||
"_type": "timestamp", | ||
"expires": "2020-01-02T00:00:00Z", | ||
"meta": { | ||
"snapshot.json": { | ||
"hashes": { | ||
"sha256": "f4ca389c2c9fbc592d91d4e693c31113b8803a11bcb5ecd973581fa0e3d34ce0", | ||
"sha512": "92a0989e44c0e9f16d3e56268a3b8dd4e4416ee2ac91a4c871a405f1e426062651ec4effa0078fc4409c8b0422ccad9b1aa197db58f178406f398562b2e98195" | ||
}, | ||
"length": 431, | ||
"version": 1 | ||
} | ||
}, | ||
"spec_version": "1.0.0", | ||
"version": 1 | ||
} | ||
} |
Oops, something went wrong.